org.codehaus.enunciate.contract.jaxb
Class Schema

java.lang.Object
  extended by net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
      extended by net.sf.jelly.apt.decorations.declaration.DecoratedPackageDeclaration
          extended by org.codehaus.enunciate.contract.jaxb.Schema
All Implemented Interfaces:
com.sun.mirror.declaration.Declaration, com.sun.mirror.declaration.PackageDeclaration, java.lang.Comparable<Schema>

public class Schema
extends net.sf.jelly.apt.decorations.declaration.DecoratedPackageDeclaration
implements java.lang.Comparable<Schema>

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

Author:
Ryan Heaton
See Also:
"The JAXB 2.0 Specification", XML Schema Part 1: Structures Second Edition

Field Summary
 
Fields inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
delegate, javaDoc
 
Constructor Summary
Schema(com.sun.mirror.declaration.PackageDeclaration delegate, java.lang.Package pckg)
           
 
Method Summary
 int compareTo(Schema schema)
          Two "schemas" are equal if they decorate the same package.
 javax.xml.bind.annotation.XmlAccessOrder getAccessorOrder()
          The default accessor order of the beans in this package.
 javax.xml.bind.annotation.XmlAccessType getAccessType()
          The default access type for the beans in this package.
 javax.xml.bind.annotation.XmlNsForm getAttributeFormDefault()
          The attribute form default of this namespace.
 javax.xml.bind.annotation.XmlNsForm getElementFormDefault()
          The element form default of this namespace.
 java.lang.String getNamespace()
          The namespace of this package, or null if none.
 java.util.Map<java.lang.String,java.lang.String> getSpecifiedNamespacePrefixes()
          Gets the specified namespace prefixes for this package.
 
Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedPackageDeclaration
accept, getAnnotationTypes, getClasses, getEnums, getInterfaces, getQualifiedName
 
Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
constructJavaDoc, equals, getAnnotation, 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
equals, getAnnotation, getAnnotationMirrors, getDocComment, getModifiers, getPosition, getSimpleName
 

Constructor Detail

Schema

public Schema(com.sun.mirror.declaration.PackageDeclaration delegate,
              java.lang.Package pckg)
Method Detail

getNamespace

public java.lang.String getNamespace()
The namespace of this package, or null if none.

Returns:
The namespace of this package.

getElementFormDefault

public javax.xml.bind.annotation.XmlNsForm getElementFormDefault()
The element form default of this namespace.

Returns:
The element form default of this namespace.

getAttributeFormDefault

public javax.xml.bind.annotation.XmlNsForm getAttributeFormDefault()
The attribute form default of this namespace.

Returns:
The attribute form default of this namespace.

getAccessType

public javax.xml.bind.annotation.XmlAccessType getAccessType()
The default access type for the beans in this package.

Returns:
The default access type for the beans in this package.

getAccessorOrder

public javax.xml.bind.annotation.XmlAccessOrder getAccessorOrder()
The default accessor order of the beans in this package.

Returns:
The default accessor order of the beans in this package.

getSpecifiedNamespacePrefixes

public java.util.Map<java.lang.String,java.lang.String> getSpecifiedNamespacePrefixes()
Gets the specified namespace prefixes for this package.

Returns:
The specified namespace prefixes for this package.

compareTo

public int compareTo(Schema schema)
Two "schemas" are equal if they decorate the same package.

Specified by:
compareTo in interface java.lang.Comparable<Schema>
Parameters:
schema - The schema to which to compare this schema.
Returns:
The comparison.