com.sun.xml.bind.v2.model.runtime
Interface RuntimeElementInfo
- All Superinterfaces:
- Element<Type,Class>, ElementInfo<Type,Class>, Locatable, RuntimeElement, RuntimeTypeInfo, TypeInfo<Type,Class>
- All Known Implementing Classes:
- RuntimeElementInfoImpl
public interface RuntimeElementInfo
- extends ElementInfo<Type,Class>, RuntimeElement
getScope
RuntimeClassInfo getScope()
- Description copied from interface:
Element
- If non-null, this element is only active inside the given scope.
- Specified by:
getScope
in interface Element<Type,Class>
getProperty
RuntimeElementPropertyInfo getProperty()
- Description copied from interface:
ElementInfo
- Gets the object that represents the value property.
- Specified by:
getProperty
in interface ElementInfo<Type,Class>
- Returns:
- non-null.
getType
Class<? extends JAXBElement> getType()
- Returns the custom
JAXBElement
class tailored this element.
- Specified by:
getType
in interface ElementInfo<Type,Class>
- Specified by:
getType
in interface TypeInfo<Type,Class>
- Returns:
- always non-null.
getContentType
RuntimeNonElement 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.
- Specified by:
getContentType
in interface ElementInfo<Type,Class>
- See Also:
ElementInfo.getContentInMemoryType()