com.sun.xml.bind.v2.model.core

Interface ElementInfo<T,C>

public interface ElementInfo<T,C> extends Element<T,C>

A particular use (specialization) of JAXBElement. TODO: is ElementInfo adaptable?
Method Summary
TgetContentInMemoryType()
T of {@code JAXBElement}.
NonElement<T,C>getContentType()
Short for getProperty().ref().get(0).
ElementPropertyInfo<T,C>getProperty()
Gets the object that represents the value property.
ElementInfo<T,C>getSubstitutionHead()
Collection<? extends ElementInfo<T,C>>getSubstitutionMembers()
All the ElementInfos whose getSubstitutionHead points to this object.
TgetType()
Returns the representation for JAXBElement<contentInMemoryType>.

Method Detail

getContentInMemoryType

public T getContentInMemoryType()
T of {@code JAXBElement}.

This is tied to the in-memory representation.

See Also: getContentType

getContentType

public NonElement<T,C> getContentType()
Short for getProperty().ref().get(0). The type of the value this element holds. Normally, this is the T of {@code JAXBElement}. But if the property is adapted, this is the on-the-wire type. Or if the element has a list of values, then this field represents the type of the individual item.

See Also: getContentInMemoryType

getProperty

public ElementPropertyInfo<T,C> getProperty()
Gets the object that represents the value property.

Returns: non-null.

getSubstitutionHead

public ElementInfo<T,C> getSubstitutionHead()

UNKNOWN: ElementInfo can only substitute ElementInfo.

getSubstitutionMembers

public Collection<? extends ElementInfo<T,C>> getSubstitutionMembers()
All the ElementInfos whose getSubstitutionHead points to this object.

Returns: can be empty but never null.

getType

public T getType()
Returns the representation for JAXBElement<contentInMemoryType>.

This returns the signature in Java and thus isn't affected by the adapter.