org.codehaus.enunciate.contract.jaxb
Class QNameEnumTypeDefinition

java.lang.Object
  extended by net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
      extended by net.sf.jelly.apt.decorations.declaration.DecoratedMemberDeclaration
          extended by net.sf.jelly.apt.decorations.declaration.DecoratedTypeDeclaration
              extended by net.sf.jelly.apt.decorations.declaration.DecoratedClassDeclaration
                  extended by org.codehaus.enunciate.contract.jaxb.TypeDefinition
                      extended by org.codehaus.enunciate.contract.jaxb.SimpleTypeDefinition
                          extended by org.codehaus.enunciate.contract.jaxb.EnumTypeDefinition
                              extended by org.codehaus.enunciate.contract.jaxb.QNameEnumTypeDefinition
All Implemented Interfaces:
com.sun.mirror.declaration.ClassDeclaration, com.sun.mirror.declaration.Declaration, com.sun.mirror.declaration.MemberDeclaration, com.sun.mirror.declaration.TypeDeclaration

public class QNameEnumTypeDefinition
extends EnumTypeDefinition

A qname enum type definition.

Author:
Ryan Heaton

Field Summary
 
Fields inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
delegate, javaDoc
 
Constructor Summary
QNameEnumTypeDefinition(com.sun.mirror.declaration.EnumDeclaration delegate)
           
 
Method Summary
 ValidationResult accept(BaseValidator validator)
          Accept a validator.
 XmlType getBaseType()
          The base type for this simple type, or null if none exists.
 com.sun.mirror.type.TypeMirror getEnumBaseClass()
          The enum base class.
 java.lang.String getNamespace()
          The namespace of the xml type element.
 boolean isEnum()
          Whether this is a enum type.
 boolean isQNameEnum()
           
 boolean isSimple()
          Whether this is a simple type.
 boolean isUriBaseType()
           
protected  java.util.Map<java.lang.String,java.lang.Object> loadEnumValues()
           
 
Methods inherited from class org.codehaus.enunciate.contract.jaxb.EnumTypeDefinition
getEnumBaseClass, getEnumConstants, getEnumValues, getEnv
 
Methods inherited from class org.codehaus.enunciate.contract.jaxb.TypeDefinition
addOrReplace, aggregatePotentialAccessors, getAccessorOrder, getAccessType, getAnyAttributeQNameEnumRef, getAnyElement, getAttributes, getClientSimpleName, getElements, getInheritedAccessType, getName, getPackage, getPropertyOrder, getQname, getReferencedFrom, getSchema, getSeeAlsos, getValue, getXmlID, isAnonymous, isAnyAttribute, isAnyElement, isAttribute, isBaseObject, isComplex, isElementRef, isHasAnyAttribute, isUnsupported, isValue, isXmlTransient, loadPotentialAccessors, overrides, remove
 
Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedClassDeclaration
accept, getAnnotation, getConstructors, getMethods, getSuperclass, isClass
 
Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedTypeDeclaration
getFields, getFormalTypeParameters, getNestedTypes, getProperties, getQualifiedName, getSuperinterfaces, isAnnotatedType, isInterface, isPaired
 
Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedMemberDeclaration
getDeclaringType
 
Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
constructJavaDoc, equals, getAnnotationMirrors, getAnnotations, getDelegate, getDocComment, getDocValue, getJavaDoc, getModifiers, getPosition, getSimpleName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.mirror.declaration.TypeDeclaration
getFields, getFormalTypeParameters, getNestedTypes, getQualifiedName, getSuperinterfaces
 
Methods inherited from interface com.sun.mirror.declaration.MemberDeclaration
getDeclaringType
 
Methods inherited from interface com.sun.mirror.declaration.Declaration
equals, getAnnotationMirrors, getDocComment, getModifiers, getPosition, getSimpleName
 

Constructor Detail

QNameEnumTypeDefinition

public QNameEnumTypeDefinition(com.sun.mirror.declaration.EnumDeclaration delegate)
Method Detail

loadEnumValues

protected java.util.Map<java.lang.String,java.lang.Object> loadEnumValues()
Overrides:
loadEnumValues in class EnumTypeDefinition

getNamespace

public java.lang.String getNamespace()
Description copied from class: TypeDefinition
The namespace of the xml type element.

Overrides:
getNamespace in class TypeDefinition
Returns:
The namespace of the xml type element.

getBaseType

public XmlType getBaseType()
Description copied from class: SimpleTypeDefinition
The base type for this simple type, or null if none exists.

Overrides:
getBaseType in class EnumTypeDefinition
Returns:
The base type for this simple type.

isUriBaseType

public boolean isUriBaseType()

getEnumBaseClass

public com.sun.mirror.type.TypeMirror getEnumBaseClass()
Description copied from class: EnumTypeDefinition
The enum base class.

Overrides:
getEnumBaseClass in class EnumTypeDefinition
Returns:
The enum base class.

isSimple

public boolean isSimple()
Description copied from class: TypeDefinition
Whether this is a simple type.

Overrides:
isSimple in class EnumTypeDefinition
Returns:
Whether this is a simple type.

isEnum

public boolean isEnum()
Description copied from class: TypeDefinition
Whether this is a enum type.

Overrides:
isEnum in class EnumTypeDefinition
Returns:
Whether this is a enum type.

isQNameEnum

public boolean isQNameEnum()

accept

public ValidationResult accept(BaseValidator validator)
Description copied from class: TypeDefinition
Accept a validator.

Overrides:
accept in class EnumTypeDefinition
Parameters:
validator - The validator to accept.
Returns:
The validation results.