Top Description Methods
org.glassfish.jaxb.core.v2.model.core

public Interface ElementInfo<T, C>

extends Element<T, C>
Known Direct Subinterfaces
org.glassfish.jaxb.runtime.v2.model.runtime.RuntimeElementInfo
Known Direct Implementers
org.glassfish.jaxb.runtime.v2.model.impl.ElementInfoImpl, com.sun.tools.xjc.model.CElementInfo
Imports
java.util.Collection, jakarta.xml.bind.JAXBElement

A particular use (specialization) of JAXBElement.

Todo

is ElementInfo adaptable?

Author
Kohsuke Kawaguchi

Method Summary

Modifier and TypeMethod and Description
public T
getContentInMemoryType()

T of JAXBElement<T>.

public NonElement<T, C>
getContentType()

Short for getProperty().ref().get(0).

public ElementPropertyInfo<T, C>

Returns:

non-null.
getProperty
()

Gets the object that represents the value property.

public ElementInfo<T, C>
getSubstitutionHead()

Redeclares org.glassfish.jaxb.core.v2.model.core.Element.getSubstitutionHead.

If this element can substitute another element, return that element.

public Collection<? extends ElementInfo<T, C>>

Returns:

can be empty but never null.
getSubstitutionMembers
()

All the s whose getSubstitutionHead() points to this object.

public T
getType()

Redeclares org.glassfish.jaxb.core.v2.model.core.TypeInfo.getType.

Returns the representation for JAXBElement<contentInMemoryType>.

Inherited from org.glassfish.jaxb.core.v2.model.core.Element:
getElementNamegetScope

Method Detail

getContentInMemoryTypeback to summary
public T getContentInMemoryType()

T of JAXBElement<T>.

This is tied to the in-memory representation.

See Also
getContentType()
getContentTypeback to summary
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 JAXBElement<T>. 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()
getPropertyback to summary
public ElementPropertyInfo<T, C> getProperty()

Gets the object that represents the value property.

Returns:ElementPropertyInfo<T, C>

non-null.

getSubstitutionHeadback to summary
public ElementInfo<T, C> getSubstitutionHead()

Redeclares org.glassfish.jaxb.core.v2.model.core.Element.getSubstitutionHead.

Doc from org.glassfish.jaxb.core.v2.model.core.Element.getSubstitutionHead.

If this element can substitute another element, return that element.

Substitutability of elements are transitive. can only substitute .

Annotations
@Override
getSubstitutionMembersback to summary
public Collection<? extends ElementInfo<T, C>> getSubstitutionMembers()

All the s whose getSubstitutionHead() points to this object.

Returns:Collection<? extends ElementInfo<T, C>>

can be empty but never null.

getTypeback to summary
public T getType()

Redeclares org.glassfish.jaxb.core.v2.model.core.TypeInfo.getType.

Returns the representation for JAXBElement<contentInMemoryType>.

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

Annotations
@Override