ElementInfo implementation.
| Modifier and Type | Class and Description |
|---|---|
| protected class | ElementInfoImpl.
Singleton instance of |
| Modifier and Type | Field and Description |
|---|---|
| private final Adapter | adapter
If the content type is adapter, return that adapter. |
| private final XmlElementDecl | anno
Annotation that controls the binding. |
| private final NonElement | |
| private final T | |
| private final MimeType | |
| private final ID | |
| private final boolean | |
| private final boolean | |
| private final M | method
The factory method from which this mapping was created. |
| private final ElementInfoImpl | |
| private final QName | |
| private final ClassInfo | |
| private ElementInfoImpl | substitutionHead
If this element can substitute another element, the element name. |
| private FinalArrayList | substitutionMembers
Lazily constructed list of |
| private final QName | |
| private final T |
| Access | Constructor and Description |
|---|---|
| public | ElementInfoImpl(ModelBuilder<T, C, F, M> builder, RegistryInfoImpl<T, C, F, M> registry, M
The factory method on ObjectFactory that comes with m)XmlElementDecl.
|
| adapter | back to summary |
|---|---|
| private final Adapter<T, C> adapter If the content type is adapter, return that adapter. | |
| anno | back to summary |
|---|---|
| private final XmlElementDecl anno Annotation that controls the binding. | |
| contentType | back to summary |
|---|---|
| private final NonElement<T, C> contentType | |
| elementType | back to summary |
|---|---|
| private final T elementType | |
| expectedMimeType | back to summary |
|---|---|
| private final MimeType expectedMimeType | |
| id | back to summary |
|---|---|
| private final ID id | |
| inlineBinary | back to summary |
|---|---|
| private final boolean inlineBinary | |
| isCollection | back to summary |
|---|---|
| private final boolean isCollection | |
| method | back to summary |
|---|---|
| private final M method The factory method from which this mapping was created. | |
| property | back to summary |
|---|---|
| private final ElementInfoImpl<T, C, F, M>. | |
| schemaType | back to summary |
|---|---|
| private final QName schemaType | |
| scope | back to summary |
|---|---|
| private final ClassInfo<T, C> scope | |
| substitutionHead | back to summary |
|---|---|
| private ElementInfoImpl<T, C, F, M> substitutionHead If this element can substitute another element, the element name.
| |
| substitutionMembers | back to summary |
|---|---|
| private FinalArrayList<ElementInfoImpl<T, C, F, M>> substitutionMembers Lazily constructed list of
| |
| tagName | back to summary |
|---|---|
| private final QName tagName | |
| tOfJAXBElementT | back to summary |
|---|---|
| private final T tOfJAXBElementT | |
| ElementInfoImpl | back to summary |
|---|---|
public ElementInfoImpl(ModelBuilder<T, C, F, M> builder, RegistryInfoImpl<T, C, F, M> registry, M m) throws IllegalAnnotationException
| |
| addSubstitutionMember | back to summary |
|---|---|
| private void addSubstitutionMember(ElementInfoImpl<T, C, F, M> child) | |
| calcId | back to summary |
|---|---|
| private ID calcId() | |
| canBeReferencedByIDREF | back to summary |
|---|---|
| public final boolean canBeReferencedByIDREF() Implements org. Deprecated why are you calling a method whose return value is always known? Leaf-type cannot be referenced from IDREF.
| |
| createPropertyImpl | back to summary |
|---|---|
| protected ElementInfoImpl | |
| getContentInMemoryType | back to summary |
|---|---|
| public T getContentInMemoryType() Implements org. Doc from org. T of This is tied to the in-memory representation.
| |
| getContentType | back to summary |
|---|---|
| public NonElement Implements org. Doc from org. Short for
| |
| getElementName | back to summary |
|---|---|
| public QName getElementName() Implements org. Doc from org. Gets the element name of the class.
| |
| getLocation | back to summary |
|---|---|
| public Location getLocation() Implements org. Doc from org. Gets the location object that this object points to. This operation could be inefficient and costly.
| |
| getProperty | back to summary |
|---|---|
| public ElementPropertyInfo Implements org. Doc from org. Gets the object that represents the value property.
| |
| getScope | back to summary |
|---|---|
| public ClassInfo Implements org. Doc from org. If non-null, this element is only active inside the given scope.
| |
| getSubstitutionHead | back to summary |
|---|---|
| public ElementInfo Implements org. Doc from org. If this element can substitute another element, return that element. Substitutability of elements are transitive. can only substitute .
| |
| getSubstitutionMembers | back to summary |
|---|---|
| public Collection Implements org. Doc from org. All the s whose
| |
| getType | back to summary |
|---|---|
| public T getType() Implements org. Doc from org. Returns the representation for This returns the signature in Java and thus isn't affected by the adapter.
| |
| link | back to summary |
|---|---|
| pack-priv void link() Overrides org. Called after all the
| |
| parseElementName | back to summary |
|---|---|
| pack-priv final QName parseElementName(XmlElementDecl e) Overrides org. Doc from org. Parses an | |
ElementPropertyInfo for this element.
| Access | Constructor and Description |
|---|---|
| protected |
| PropertyImpl | back to summary |
|---|---|
| protected PropertyImpl() | |
| displayName | back to summary |
|---|---|
| public String displayName() Implements org. Doc from org. Gets the display name of the property.
This is a convenience method for
| |
| getAdapter | back to summary |
|---|---|
| public Adapter Implements org.
| |
| getDefaultValue | back to summary |
|---|---|
| public String getDefaultValue() Implements org. Doc from org. The default value for this element if any. Otherwise null.
| |
| getExpectedMimeType | back to summary |
|---|---|
| public MimeType getExpectedMimeType() Implements org. Doc from org. Expected MIME type, if any.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Gets the name of the property. For example, "foo" or "bar". Generally, a property name is different from XML, (although they are often related, as a property name is often computed from tag names / attribute names.) In fact, property names do not directly affect XML. The property name uniquely identifies a property within a class.
| |
| getSchemaType | back to summary |
|---|---|
| public QName getSchemaType() Implements org. Doc from org. The effective value of
If the property doesn't have
Since a type name is a property of a Java type, not a Java property,
A schema type name of a Java type should be primarily obtained
by using
| |
| getSource | back to summary |
|---|---|
| public PropertyInfo Implements org. Doc from org. Gets the property which is the source of this reference.
| |
| getTagName | back to summary |
|---|---|
| public QName getTagName() Implements org. Doc from org. The associated element name.
| |
| getTarget | back to summary |
|---|---|
| public NonElement Implements org. Doc from org. Target of the reference.
| |
| getTypes | back to summary |
|---|---|
| public List Implements org. Doc from org. Returns the information about the types allowed in this property.
In a simple case like the following, an element property only has
one @XmlElement String abc; However, in a general case an element property can be heterogeneous, meaning you can put different types in it, each with a different tag name (and a few other settings.)
In this case this method returns a list of two
| |
| getXmlName | back to summary |
|---|---|
| public QName getXmlName() Implements org. Doc from org. Gets the wrapper element name.
| |
| hasAnnotation | back to summary |
|---|---|
| public boolean hasAnnotation(Class<? extends Annotation> annotationType) Implements org. Doc from org. Returns true if the property has the specified annotation.
Short for
| |
| id | back to summary |
|---|---|
| public ID id() Implements org. Doc from org. Returns the IDness of the value of this element.
| |
| inlineBinaryData | back to summary |
|---|---|
| public boolean inlineBinaryData() Implements org. Doc from org. If this is true and this property indeed represents a binary data, it should be always inlined.
| |
| isCollection | back to summary |
|---|---|
| public boolean isCollection() Implements org. Doc from org. Returns true if this is a multi-valued collection property. Otherwise false, in which case the property is a single value.
| |
| isCollectionNillable | back to summary |
|---|---|
| public boolean isCollectionNillable() Implements org. Doc from org. Returns true if this property is nillable (meaning the absence of the value is treated as nil='true') This method is only used when this property is a collection.
| |
| isCollectionRequired | back to summary |
|---|---|
| public boolean isCollectionRequired() Implements org. Doc from org. Checks if the wrapper element is required.
| |
| isNillable | back to summary |
|---|---|
| public boolean isNillable() Implements org. Doc from org. Returns true if this element is nillable.
| |
| isRequired | back to summary |
|---|---|
| public boolean isRequired() Implements org. Doc from org. Returns true if this element is mandatory. For collections, this property isn't used. Todo define the semantics when this is a collection
| |
| isValueList | back to summary |
|---|---|
| public boolean isValueList() Implements org. For
| |
| kind | back to summary |
|---|---|
| public PropertyKind kind() Implements org. Doc from org. Gets the kind of this property.
| |
| parent | back to summary |
|---|---|
| public ElementInfoImpl Implements org. Doc from org. Gets the
| |
| readAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A readAnnotation(Class<A> annotationType) Implements org. Doc from org. Gets the value of the specified annotation from the given property. When this method is used for a property that consists of a getter and setter, it returns the annotation on either of those methods. If both methods have the same annotation, it is an error.
| |
| ref | back to summary |
|---|---|
| public List Implements org. Doc from org. List of
| |