org.codehaus.enunciate.contract.jaxb
Class Attribute
java.lang.Object
net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
net.sf.jelly.apt.decorations.declaration.DecoratedMemberDeclaration
org.codehaus.enunciate.contract.jaxb.Accessor
org.codehaus.enunciate.contract.jaxb.Attribute
- All Implemented Interfaces:
- com.sun.mirror.declaration.Declaration, com.sun.mirror.declaration.MemberDeclaration, Adaptable
public class Attribute
- extends Accessor
An accessor that is marshalled in xml to an xml attribute.
- Author:
- Ryan Heaton
|
Method Summary |
String |
getName()
The name of the accessor. |
String |
getNamespace()
The namespace of the accessor. |
QName |
getRef()
An attribute is a ref if its namespace differs from that of its type definition (JAXB spec 8.9.7.2). |
boolean |
isRequired()
Whether the attribute is required. |
| Methods inherited from class org.codehaus.enunciate.contract.jaxb.Accessor |
getAccessorForXmlID, getAccessorType, getAdapterType, getBareAccessorType, getBaseType, getCollectionItemType, getMimeType, getTypeDefinition, isAdapted, isBinaryData, isCollectionType, isMTOMAttachment, isSwaRef, isXmlID, isXmlIDREF, isXmlList |
| Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration |
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 interface com.sun.mirror.declaration.Declaration |
equals, getAnnotation, getAnnotationMirrors, getDocComment, getModifiers, getPosition, getSimpleName |
Attribute
public Attribute(com.sun.mirror.declaration.MemberDeclaration delegate,
TypeDefinition typedef)
getName
public String getName()
- Description copied from class:
Accessor
- The name of the accessor.
- Specified by:
getName in class Accessor
- Returns:
- The name of the accessor.
getNamespace
public String getNamespace()
- Description copied from class:
Accessor
- The namespace of the accessor.
- Specified by:
getNamespace in class Accessor
- Returns:
- The namespace of the accessor.
getRef
public QName getRef()
- An attribute is a ref if its namespace differs from that of its type definition (JAXB spec 8.9.7.2).
- Overrides:
getRef in class Accessor
- Returns:
- The ref or null.
isRequired
public boolean isRequired()
- Whether the attribute is required.
- Returns:
- Whether the attribute is required.