|
|||||||||
| 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
org.codehaus.enunciate.contract.jaxb.ElementRef
public class ElementRef
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 | |
|---|---|
|
ElementRef(com.sun.mirror.declaration.MemberDeclaration delegate,
TypeDefinition typedef)
|
protected |
ElementRef(com.sun.mirror.declaration.MemberDeclaration delegate,
TypeDefinition typedef,
javax.xml.bind.annotation.XmlElementRef xmlElementRef)
Construct an element accessor with a specific element ref annotation. |
| Method Summary | |
|---|---|
com.sun.mirror.type.TypeMirror |
getAccessorType()
The type of an element ref accessor can be specified by an annotation. |
XmlType |
getBaseType()
There is no base type for an element ref. |
java.util.Collection<ElementRef> |
getChoices()
The choices for this element. |
protected com.sun.mirror.apt.AnnotationProcessorEnvironment |
getEnv()
The current environment. |
java.lang.String |
getJsonMemberName()
Get the name for the JSON member to which this element will be serialized. |
int |
getMinOccurs()
The min occurs of an element ref is 0 |
java.lang.String |
getName()
The name of an element ref is the name of the element it references, unless the type is a JAXBElement, in which case the name is specified. |
java.lang.String |
getNamespace()
The namespace of an element ref is the namespace of the element it references, unless the type is a JAXBElement, in which case the namespace is specified. |
javax.xml.namespace.QName |
getRef()
The ref for this element ref. |
boolean |
isBinaryData()
An element ref is not binary data. |
boolean |
isElementRef()
Whether this accessor is an element ref. |
boolean |
isElementRefs()
Whether this is a choice of multiple element refs. |
protected boolean |
isInstanceOf(com.sun.mirror.declaration.ClassDeclaration classDeclaration,
java.lang.String fqn)
Determines whether the class declaration is an instance of the declared type of the given fully-qualified name. |
boolean |
isMTOMAttachment()
An element ref is not an MTOM attachment. |
boolean |
isNillable()
An element ref is not nillable. |
boolean |
isQNameType()
Whether this access is a QName type. |
boolean |
isRequired()
An element ref is not required. |
boolean |
isSwaRef()
An element ref is not a swa ref. |
protected javax.xml.namespace.QName |
loadRef()
Load the qname of the referenced root element declaration. |
| Methods inherited from class org.codehaus.enunciate.contract.jaxb.Element |
|---|
getAccessorType, getDefaultValue, getForm, getMaxOccurs, getWrapperName, getWrapperNamespace, isWrapped, isWrapperNillable |
| Methods inherited from class org.codehaus.enunciate.contract.jaxb.Accessor |
|---|
getAccessorForXmlID, getAdapterType, getBareAccessorType, getClientSimpleName, getCollectionItemType, getMimeType, getQNameEnumRef, getReferencedFrom, getSeeAlsos, getTypeDefinition, isAdapted, isAttribute, isCollectionType, isReferencesQNameEnum, 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 ElementRef(com.sun.mirror.declaration.MemberDeclaration delegate,
TypeDefinition typedef)
protected ElementRef(com.sun.mirror.declaration.MemberDeclaration delegate,
TypeDefinition typedef,
javax.xml.bind.annotation.XmlElementRef xmlElementRef)
delegate - The delegate.typedef - The type definition.xmlElementRef - The specific element ref annotation.| Method Detail |
|---|
protected boolean isInstanceOf(com.sun.mirror.declaration.ClassDeclaration classDeclaration,
java.lang.String fqn)
classDeclaration - The class declaration.fqn - The FQN.
protected javax.xml.namespace.QName loadRef()
public boolean isElementRefs()
isElementRefs in class Elementpublic java.lang.String getName()
getName in class Elementpublic java.lang.String getNamespace()
getNamespace in class Elementpublic javax.xml.namespace.QName getRef()
getRef in class Elementpublic XmlType getBaseType()
getBaseType in class Elementjava.lang.UnsupportedOperationException - Because there is no such things as a base type for an element ref.public boolean isQNameType()
Accessor
isQNameType in class Accessorpublic com.sun.mirror.type.TypeMirror getAccessorType()
getAccessorType in class Elementpublic boolean isBinaryData()
isBinaryData in class Accessorpublic boolean isSwaRef()
isSwaRef in class Accessorpublic boolean isMTOMAttachment()
isMTOMAttachment in class Accessorpublic boolean isNillable()
isNillable in class Elementpublic boolean isRequired()
isRequired in class Elementpublic int getMinOccurs()
getMinOccurs in class Elementpublic java.util.Collection<ElementRef> getChoices()
getChoices in class Elementprotected com.sun.mirror.apt.AnnotationProcessorEnvironment getEnv()
public boolean isElementRef()
Accessor
isElementRef in class Accessorpublic java.lang.String getJsonMemberName()
Accessor
getJsonMemberName in class Element
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||