org.codehaus.enunciate.contract.jaxb
Class RootElementDeclaration

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.RootElementDeclaration
All Implemented Interfaces:
com.sun.mirror.declaration.ClassDeclaration, com.sun.mirror.declaration.Declaration, com.sun.mirror.declaration.MemberDeclaration, com.sun.mirror.declaration.TypeDeclaration, ElementDeclaration

public class RootElementDeclaration
extends net.sf.jelly.apt.decorations.declaration.DecoratedClassDeclaration
implements ElementDeclaration

A class declaration decorated so as to be able to describe itself as an XML-Schema root element declaration.

Author:
Ryan Heaton

Field Summary
 
Fields inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
delegate, javaDoc
 
Constructor Summary
RootElementDeclaration(com.sun.mirror.declaration.ClassDeclaration delegate, TypeDefinition typeDefinition)
           
 
Method Summary
 java.lang.String getClientSimpleName()
          The simple name for client-side code generation.
 java.lang.String getName()
          The name of the xml element declaration.
 java.lang.String getNamespace()
          The namespace of the xml element.
 Schema getPackage()
           
 javax.xml.namespace.QName getQname()
          The qname of the element.
 Schema getSchema()
          The schema for this complex type.
 TypeDefinition getTypeDefinition()
          The type definition for this root element.
 
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, isEnum, 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.Declaration
accept, equals, getAnnotation, getAnnotationMirrors, getDocComment, getModifiers, getPosition, getSimpleName
 
Methods inherited from interface com.sun.mirror.declaration.TypeDeclaration
getFields, getFormalTypeParameters, getNestedTypes, getQualifiedName, getSuperinterfaces
 
Methods inherited from interface com.sun.mirror.declaration.MemberDeclaration
getDeclaringType
 

Constructor Detail

RootElementDeclaration

public RootElementDeclaration(com.sun.mirror.declaration.ClassDeclaration delegate,
                              TypeDefinition typeDefinition)
Method Detail

getTypeDefinition

public TypeDefinition getTypeDefinition()
The type definition for this root element. Note that the type definition may be unknown, in which case, return null.

Returns:
The type definition for this root element.

getName

public java.lang.String getName()
The name of the xml element declaration.

Specified by:
getName in interface ElementDeclaration
Returns:
The name of the xml element declaration.

getNamespace

public java.lang.String getNamespace()
The namespace of the xml element.

Specified by:
getNamespace in interface ElementDeclaration
Returns:
The namespace of the xml element.

getQname

public javax.xml.namespace.QName getQname()
The qname of the element.

Specified by:
getQname in interface ElementDeclaration
Returns:
The qname of the element.

getClientSimpleName

public java.lang.String getClientSimpleName()
The simple name for client-side code generation.

Returns:
The simple name for client-side code generation.

getSchema

public Schema getSchema()
The schema for this complex type.

Returns:
The schema for this complex type.

getPackage

public Schema getPackage()
Specified by:
getPackage in interface com.sun.mirror.declaration.TypeDeclaration
Overrides:
getPackage in class net.sf.jelly.apt.decorations.declaration.DecoratedTypeDeclaration