public class XmlElementDeclPrism
extends java.lang.Object
@javax.xml.bind.annotation.XmlElementDecl annotation.| Modifier and Type | Class and Description |
|---|---|
static class |
XmlElementDeclPrism.Values
A class whose members corespond to those of javax.xml.bind.annotation.XmlElementDecl
but which each return the AnnotationValue corresponding to
that member in the model of the annotations.
|
| Modifier and Type | Field and Description |
|---|---|
boolean |
isValid
Determine whether the underlying AnnotationMirror has no errors.
|
javax.lang.model.element.AnnotationMirror |
mirror
The underlying AnnotationMirror of the annotation
represented by this Prism.
|
XmlElementDeclPrism.Values |
values
An instance of the Values inner class whose
methods return the AnnotationValues used to build this prism.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
defaultValue()
Returns a String representing the value of the
java.lang.String defaultValue() member of the Annotation. |
static XmlElementDeclPrism |
getInstance(javax.lang.model.element.AnnotationMirror mirror)
Return a prism of the
@javax.xml.bind.annotation.XmlElementDecl annotation whose mirror is mirror. |
static XmlElementDeclPrism |
getInstanceOn(javax.lang.model.element.Element e)
Return a prism representing the
@javax.xml.bind.annotation.XmlElementDecl annotation on 'e'. |
java.lang.String |
name()
Returns a String representing the value of the
java.lang.String name() member of the Annotation. |
java.lang.String |
namespace()
Returns a String representing the value of the
java.lang.String namespace() member of the Annotation. |
javax.lang.model.type.TypeMirror |
scope()
Returns a TypeMirror representing the value of the
java.lang.Class scope() member of the Annotation. |
java.lang.String |
substitutionHeadName()
Returns a String representing the value of the
java.lang.String substitutionHeadName() member of the Annotation. |
java.lang.String |
substitutionHeadNamespace()
Returns a String representing the value of the
java.lang.String substitutionHeadNamespace() member of the Annotation. |
public final XmlElementDeclPrism.Values values
public final boolean isValid
public final javax.lang.model.element.AnnotationMirror mirror
public static XmlElementDeclPrism getInstanceOn(javax.lang.model.element.Element e)
@javax.xml.bind.annotation.XmlElementDecl annotation on 'e'.
similar to e.getAnnotation(javax.xml.bind.annotation.XmlElementDecl.class) except that
an instance of this class rather than an instance of javax.xml.bind.annotation.XmlElementDecl
is returned.public static XmlElementDeclPrism getInstance(javax.lang.model.element.AnnotationMirror mirror)
@javax.xml.bind.annotation.XmlElementDecl annotation whose mirror is mirror.public javax.lang.model.type.TypeMirror scope()
java.lang.Class scope() member of the Annotation.XmlElementDecl.scope()public java.lang.String namespace()
java.lang.String namespace() member of the Annotation.XmlElementDecl.namespace()public java.lang.String name()
java.lang.String name() member of the Annotation.XmlElementDecl.name()public java.lang.String substitutionHeadNamespace()
java.lang.String substitutionHeadNamespace() member of the Annotation.XmlElementDecl.substitutionHeadNamespace()public java.lang.String substitutionHeadName()
java.lang.String substitutionHeadName() member of the Annotation.XmlElementDecl.substitutionHeadName()public java.lang.String defaultValue()
java.lang.String defaultValue() member of the Annotation.XmlElementDecl.defaultValue()Copyright © 2012-2014. All Rights Reserved.