|
|||||||||
| 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(Validator validator)
Accept a validator. |
|
protected
|
addOrReplace(M memberDeclaration,
List<M> memberDeclarations)
Add the specified member declaration, or if it is already in the list (by name), replace it. |
|
protected void |
aggregatePotentialAccessors(List<com.sun.mirror.declaration.FieldDeclaration> fields,
List<PropertyDeclaration> properties,
DecoratedClassDeclaration clazz,
AccessorFilter filter)
Aggregate the potential accessor into their separate buckets for the given class declaration, recursively including transient superclasses. |
|
org.codehaus.jackson.node.ObjectNode |
generateExampleJson()
|
|
void |
generateExampleXml(org.jdom.Element parent)
Generate some example xml, appending to the specified node. |
|
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. |
|
AnyElement |
getAnyElement()
The "anyElement" element. |
|
Collection<Attribute> |
getAttributes()
The attributes of this type definition. |
|
abstract XmlType |
getBaseType()
The base type of this type definition. |
|
String |
getClientSimpleName()
The simple name for client-side code generation. |
|
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. |
|
String |
getName()
The name of the xml type element. |
|
String |
getNamespace()
The namespace of the xml type element. |
|
Schema |
getPackage()
|
|
String[] |
getPropertyOrder()
The property order of this xml type. |
|
QName |
getQname()
The qname of this type definition. |
|
Set<String> |
getReferencedFrom()
Set of (human-readable) locations that this type definition is referenced from. |
|
Schema |
getSchema()
The schema for this complex type. |
|
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 List<com.sun.mirror.declaration.MemberDeclaration> |
loadPotentialAccessors(AccessorFilter filter)
Load the potential accessors for this type definition. |
|
protected boolean |
overrides(DecoratedMethodDeclaration method)
Whether the given method declaration overrides any method. |
|
protected
|
remove(M memberDeclaration,
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 |
|---|
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 List<com.sun.mirror.declaration.MemberDeclaration> loadPotentialAccessors(AccessorFilter filter)
filter - The filter.
protected void aggregatePotentialAccessors(List<com.sun.mirror.declaration.FieldDeclaration> fields,
List<PropertyDeclaration> properties,
DecoratedClassDeclaration clazz,
AccessorFilter filter)
fields - The fields.properties - The properties.clazz - The class.filter - The filter.protected boolean overrides(DecoratedMethodDeclaration method)
method - The method declaration.
protected <M extends com.sun.mirror.declaration.MemberDeclaration> void addOrReplace(M memberDeclaration,
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,
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 String getName()
public String getNamespace()
public String getClientSimpleName()
public 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 String[] getPropertyOrder()
public javax.xml.bind.annotation.XmlAccessOrder getAccessorOrder()
public boolean isHasAnyAttribute()
public AnyElement getAnyElement()
public SortedSet<Element> getElements()
public 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 DecoratedTypeDeclarationpublic boolean isComplex()
public boolean isEnum()
isEnum in class DecoratedTypeDeclarationpublic boolean isSimple()
public boolean isBaseObject()
public Set<String> getReferencedFrom()
public abstract ValidationResult accept(Validator validator)
validator - The validator to accept.
public abstract XmlType getBaseType()
public void generateExampleXml(org.jdom.Element parent)
parent - The parent node.public org.codehaus.jackson.node.ObjectNode generateExampleJson()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||