|
|||||||||
| 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
org.codehaus.enunciate.contract.jaxb.Accessor
org.codehaus.enunciate.contract.jaxb.Element
public class Element
An accessor that is marshalled in xml to an xml element.
| Field Summary |
|---|
| Fields inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration |
|---|
delegate, javaDoc |
| Constructor Summary | |
|---|---|
|
Element(com.sun.mirror.declaration.MemberDeclaration delegate,
TypeDefinition typedef)
|
protected |
Element(com.sun.mirror.declaration.MemberDeclaration delegate,
TypeDefinition typedef,
javax.xml.bind.annotation.XmlElement xmlElement)
Construct an element accessor with a specific element annotation. |
| Method Summary | |
|---|---|
com.sun.mirror.type.TypeMirror |
getAccessorType()
The type of an element accessor can be specified by an annotation. |
protected com.sun.mirror.type.TypeMirror |
getAccessorType(java.lang.Class clazz)
Get the accessor type for the specified class. |
XmlType |
getBaseType()
The base type of an element accessor can be specified by an annotation. |
java.util.Collection<? extends Element> |
getChoices()
The choices for this element. |
java.lang.String |
getDefaultValue()
The default value, or null if none exists. |
javax.xml.bind.annotation.XmlNsForm |
getForm()
The form of this element. |
java.lang.String |
getJsonMemberName()
Get the name for the JSON member to which this element will be serialized. |
java.lang.String |
getMaxOccurs()
The max occurs of this element. |
int |
getMinOccurs()
The min occurs of this element. |
java.lang.String |
getName()
The name of the accessor. |
java.lang.String |
getNamespace()
The namespace of the accessor. |
javax.xml.namespace.QName |
getRef()
The qname for the referenced element, if this element is a reference to a global element, or null if this element is not a reference element. |
java.lang.String |
getWrapperName()
The name of the wrapper element. |
java.lang.String |
getWrapperNamespace()
The namespace of the wrapper element. |
boolean |
isElementRefs()
Whether this is a choice of multiple element refs. |
boolean |
isNillable()
Whether this element is nillable. |
boolean |
isRequired()
Whether this element is required. |
boolean |
isWrapped()
Whether this xml element is wrapped. |
boolean |
isWrapperNillable()
Whether the wrapper is nillable. |
| Methods inherited from class org.codehaus.enunciate.contract.jaxb.Accessor |
|---|
getAccessorForXmlID, getAdapterType, getBareAccessorType, getClientSimpleName, getCollectionItemType, getMimeType, getQNameEnumRef, getReferencedFrom, getSeeAlsos, getTypeDefinition, isAdapted, isAttribute, isBinaryData, isCollectionType, isElementRef, isMTOMAttachment, isQNameType, isReferencesQNameEnum, isSwaRef, isValue, isXmlID, isXmlIDREF, isXmlList |
| Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedMemberDeclaration |
|---|
accept, getDeclaringType |
| 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 |
|---|
public Element(com.sun.mirror.declaration.MemberDeclaration delegate,
TypeDefinition typedef)
protected Element(com.sun.mirror.declaration.MemberDeclaration delegate,
TypeDefinition typedef,
javax.xml.bind.annotation.XmlElement xmlElement)
delegate - The delegate.typedef - The type definition.xmlElement - The specific element annotation.| Method Detail |
|---|
public java.lang.String getName()
Accessor
getName in class Accessorpublic java.lang.String getNamespace()
Accessor
getNamespace in class Accessorpublic javax.xml.bind.annotation.XmlNsForm getForm()
public javax.xml.namespace.QName getRef()
getRef in class Accessorpublic com.sun.mirror.type.TypeMirror getAccessorType()
getAccessorType in class Accessorprotected com.sun.mirror.type.TypeMirror getAccessorType(java.lang.Class clazz)
clazz - The class.
public XmlType getBaseType()
getBaseType in class Accessorpublic boolean isNillable()
public boolean isRequired()
public int getMinOccurs()
public java.lang.String getMaxOccurs()
public java.lang.String getDefaultValue()
public java.util.Collection<? extends Element> getChoices()
public boolean isWrapped()
public java.lang.String getWrapperName()
public java.lang.String getWrapperNamespace()
public boolean isWrapperNillable()
public boolean isElementRefs()
public java.lang.String getJsonMemberName()
Accessor
getJsonMemberName in class Accessor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||