org.codehaus.enunciate.contract.jaxb.types
Class XmlClassType

java.lang.Object
  extended by org.codehaus.enunciate.contract.jaxb.types.XmlClassType
All Implemented Interfaces:
XmlType

public class XmlClassType
extends java.lang.Object
implements XmlType

Decorator for an xml class type.

Author:
Ryan Heaton

Constructor Summary
XmlClassType(TypeDefinition typeDef)
           
 
Method Summary
 java.lang.String getName()
          The name of a class type depends on its type definition.
 java.lang.String getNamespace()
          The namespace of a class type depends on its type definition.
 javax.xml.namespace.QName getQname()
          The qname.
 TypeDefinition getTypeDefinition()
          Get the type definition for this class type.
 boolean isAnonymous()
          Whether a class type is anonymous depends on its type definition.
 boolean isSimple()
          This type is simple if its type definition is simple.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlClassType

public XmlClassType(TypeDefinition typeDef)
Method Detail

getName

public java.lang.String getName()
The name of a class type depends on its type definition.

Specified by:
getName in interface XmlType
Returns:
The name of a class type depends on its type definition.

getNamespace

public java.lang.String getNamespace()
The namespace of a class type depends on its type definition.

Specified by:
getNamespace in interface XmlType
Returns:
The namespace of a class type depends on its type definition.

getQname

public javax.xml.namespace.QName getQname()
The qname.

Specified by:
getQname in interface XmlType
Returns:
The qname.

isAnonymous

public boolean isAnonymous()
Whether a class type is anonymous depends on its type definition.

Specified by:
isAnonymous in interface XmlType
Returns:
Whether this class type is anonymous.

isSimple

public boolean isSimple()
This type is simple if its type definition is simple.

Specified by:
isSimple in interface XmlType
Returns:
This type is simple if its type definition is simple.

getTypeDefinition

public TypeDefinition getTypeDefinition()
Get the type definition for this class type.

Returns:
The type definition for this class type.