|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
net.sf.jelly.apt.decorations.declaration.DecoratedMemberDeclaration
net.sf.jelly.apt.decorations.declaration.DecoratedTypeDeclaration
net.sf.jelly.apt.decorations.declaration.DecoratedClassDeclaration
org.codehaus.enunciate.contract.jaxb.TypeDefinition
public abstract class TypeDefinition
A xml type definition.
| Field Summary |
|---|
| Fields inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration |
|---|
delegate, javaDoc |
| Constructor Summary | |
|---|---|
protected |
TypeDefinition(com.sun.mirror.declaration.ClassDeclaration delegate)
|
| Method Summary | ||
|---|---|---|
abstract ValidationResult |
accept(BaseValidator validator)
Accept a validator. |
|
protected
|
addOrReplace(M memberDeclaration,
java.util.List<M> memberDeclarations)
Add the specified member declaration, or if it is already in the list (by name), replace it. |
|
protected void |
aggregatePotentialAccessors(java.util.List<com.sun.mirror.declaration.FieldDeclaration> fields,
java.util.List<net.sf.jelly.apt.decorations.declaration.PropertyDeclaration> properties,
net.sf.jelly.apt.decorations.declaration.DecoratedClassDeclaration clazz,
AccessorFilter filter)
Aggregate the potential accessor into their separate buckets for the given class declaration, recursively including transient superclasses. |
|
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 class. |
|
com.sun.mirror.type.TypeMirror |
getAnyAttributeQNameEnumRef()
The enum type containing the known qnames for attributes of the 'any' attribute definition. |
|
AnyElement |
getAnyElement()
The "anyElement" element. |
|
java.util.Collection<Attribute> |
getAttributes()
The attributes of this type definition. |
|
abstract XmlType |
getBaseType()
The base type of this type definition. |
|
java.lang.String |
getClientSimpleName()
The simple name for client-side code generation. |
|
java.util.SortedSet<Element> |
getElements()
The elements of this type definition. |
|
protected javax.xml.bind.annotation.XmlAccessType |
getInheritedAccessType(com.sun.mirror.declaration.ClassDeclaration declaration)
Get the inherited accessor type of the given class, or null if none is found. |
|
java.lang.String |
getName()
The name of the xml type element. |
|
java.lang.String |
getNamespace()
The namespace of the xml type element. |
|
Schema |
getPackage()
|
|
java.lang.String[] |
getPropertyOrder()
The property order of this xml type. |
|
javax.xml.namespace.QName |
getQname()
The qname of this type definition. |
|
java.util.Set<java.lang.String> |
getReferencedFrom()
Set of (human-readable) locations that this type definition is referenced from. |
|
Schema |
getSchema()
The schema for this complex type. |
|
java.util.Collection<com.sun.mirror.type.TypeMirror> |
getSeeAlsos()
|
|
Value |
getValue()
The value of this type definition. |
|
Accessor |
getXmlID()
The accessor that is the xml id of this type definition, or null if none. |
|
boolean |
isAnonymous()
Whether this xml type is anonymous. |
|
protected boolean |
isAnyAttribute(com.sun.mirror.declaration.MemberDeclaration declaration)
Whether the member declaration is XmlAnyAttribute. |
|
protected boolean |
isAnyElement(com.sun.mirror.declaration.MemberDeclaration declaration)
Whether the member declaration is XmlAnyElement. |
|
protected boolean |
isAttribute(com.sun.mirror.declaration.MemberDeclaration declaration)
Whether a declaration is an xml attribute. |
|
boolean |
isBaseObject()
Whether this type definition is a base object (i.e. |
|
boolean |
isComplex()
Whether this is a complex type. |
|
protected boolean |
isElementRef(com.sun.mirror.declaration.MemberDeclaration declaration)
Whether a declaration is an xml element ref. |
|
boolean |
isEnum()
Whether this is a enum type. |
|
boolean |
isHasAnyAttribute()
Whether this type definition has an "anyAttribute" definition. |
|
boolean |
isSimple()
Whether this is a simple type. |
|
protected boolean |
isUnsupported(com.sun.mirror.declaration.MemberDeclaration declaration)
Whether a declaration is an xml-mixed property. |
|
protected boolean |
isValue(com.sun.mirror.declaration.MemberDeclaration declaration)
Whether a declaration is an xml value. |
|
protected boolean |
isXmlTransient(com.sun.mirror.declaration.Declaration declaration)
Whether a declaration is xml transient. |
|
protected java.util.List<com.sun.mirror.declaration.MemberDeclaration> |
loadPotentialAccessors(AccessorFilter filter)
Load the potential accessors for this type definition. |
|
protected boolean |
overrides(net.sf.jelly.apt.decorations.declaration.DecoratedMethodDeclaration method)
Whether the given method declaration overrides any method. |
|
protected
|
remove(M memberDeclaration,
java.util.List<M> memberDeclarations)
Remove specified member declaration from the specified list, if it exists.. |
|
| 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 |
|---|
protected TypeDefinition(com.sun.mirror.declaration.ClassDeclaration delegate)
| Method Detail |
|---|
protected java.util.List<com.sun.mirror.declaration.MemberDeclaration> loadPotentialAccessors(AccessorFilter filter)
filter - The filter.
protected void aggregatePotentialAccessors(java.util.List<com.sun.mirror.declaration.FieldDeclaration> fields,
java.util.List<net.sf.jelly.apt.decorations.declaration.PropertyDeclaration> properties,
net.sf.jelly.apt.decorations.declaration.DecoratedClassDeclaration clazz,
AccessorFilter filter)
fields - The fields.properties - The properties.clazz - The class.filter - The filter.protected boolean overrides(net.sf.jelly.apt.decorations.declaration.DecoratedMethodDeclaration method)
method - The method declaration.
protected <M extends com.sun.mirror.declaration.MemberDeclaration> void addOrReplace(M memberDeclaration,
java.util.List<M> memberDeclarations)
memberDeclaration - The member to add/replace.memberDeclarations - The other members.
protected <M extends com.sun.mirror.declaration.MemberDeclaration> void remove(M memberDeclaration,
java.util.List<M> memberDeclarations)
memberDeclaration - The member to remove.memberDeclarations - The other members.protected boolean isAttribute(com.sun.mirror.declaration.MemberDeclaration declaration)
declaration - The declaration to check.
protected boolean isValue(com.sun.mirror.declaration.MemberDeclaration declaration)
declaration - The declaration to check.
protected boolean isElementRef(com.sun.mirror.declaration.MemberDeclaration declaration)
declaration - The declaration to check.
protected boolean isAnyAttribute(com.sun.mirror.declaration.MemberDeclaration declaration)
declaration - The declaration.
protected boolean isAnyElement(com.sun.mirror.declaration.MemberDeclaration declaration)
declaration - The declaration.
protected boolean isUnsupported(com.sun.mirror.declaration.MemberDeclaration declaration)
declaration - The declaration to check.
public java.lang.String getName()
public java.lang.String getNamespace()
public java.lang.String getClientSimpleName()
public javax.xml.namespace.QName getQname()
public javax.xml.bind.annotation.XmlAccessType getAccessType()
protected javax.xml.bind.annotation.XmlAccessType getInheritedAccessType(com.sun.mirror.declaration.ClassDeclaration declaration)
declaration - The inherited accessor type.
public java.lang.String[] getPropertyOrder()
public javax.xml.bind.annotation.XmlAccessOrder getAccessorOrder()
public java.util.Collection<com.sun.mirror.type.TypeMirror> getSeeAlsos()
public boolean isHasAnyAttribute()
public com.sun.mirror.type.TypeMirror getAnyAttributeQNameEnumRef()
null if none.
null if none.public AnyElement getAnyElement()
public java.util.SortedSet<Element> getElements()
public java.util.Collection<Attribute> getAttributes()
public Value getValue()
public Accessor getXmlID()
protected boolean isXmlTransient(com.sun.mirror.declaration.Declaration declaration)
declaration - The declaration on which to determine xml transience.
public boolean isAnonymous()
public Schema getSchema()
public Schema getPackage()
getPackage in interface com.sun.mirror.declaration.TypeDeclarationgetPackage in class net.sf.jelly.apt.decorations.declaration.DecoratedTypeDeclarationpublic boolean isComplex()
public boolean isEnum()
isEnum in class net.sf.jelly.apt.decorations.declaration.DecoratedTypeDeclarationpublic boolean isSimple()
public boolean isBaseObject()
public java.util.Set<java.lang.String> getReferencedFrom()
public abstract ValidationResult accept(BaseValidator validator)
validator - The validator to accept.
public abstract XmlType getBaseType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||