com.sun.xml.bind.v2.model.impl
Class RuntimeElementInfoImpl
java.lang.Object
com.sun.xml.bind.v2.model.impl.TypeInfoImpl<T,C,F,M>
com.sun.xml.bind.v2.model.impl.ElementInfoImpl<Type,Class,Field,Method>
com.sun.xml.bind.v2.model.impl.RuntimeElementInfoImpl
- All Implemented Interfaces:
- Locatable, Element<Type,Class>, ElementInfo<Type,Class>, TypeInfo<Type,Class>, RuntimeElement, RuntimeElementInfo, RuntimeTypeInfo
final class RuntimeElementInfoImpl
- extends ElementInfoImpl<Type,Class,Field,Method>
- implements RuntimeElementInfo
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuntimeElementInfoImpl
public RuntimeElementInfoImpl(RuntimeModelBuilder modelBuilder,
RegistryInfoImpl registry,
Method method)
throws IllegalAnnotationException
- Throws:
IllegalAnnotationException
createPropertyImpl
protected ElementInfoImpl.PropertyImpl createPropertyImpl()
- Overrides:
createPropertyImpl
in class ElementInfoImpl<Type,Class,Field,Method>
getProperty
public RuntimeElementPropertyInfo getProperty()
- Description copied from interface:
ElementInfo
- Gets the object that represents the value property.
- Specified by:
getProperty
in interface ElementInfo<Type,Class>
- Specified by:
getProperty
in interface RuntimeElementInfo
- Overrides:
getProperty
in class ElementInfoImpl<Type,Class,Field,Method>
- Returns:
- non-null.
getType
public Class<? extends JAXBElement> getType()
- Description copied from interface:
ElementInfo
- Returns the representation for
JAXBElement
<contentInMemoryType>.
This returns the signature in Java and thus isn't affected by the adapter.
- Specified by:
getType
in interface ElementInfo<Type,Class>
- Specified by:
getType
in interface TypeInfo<Type,Class>
- Specified by:
getType
in interface RuntimeElementInfo
- Overrides:
getType
in class ElementInfoImpl<Type,Class,Field,Method>
- Returns:
- always non-null.
getScope
public 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>
- Specified by:
getScope
in interface RuntimeElementInfo
- Overrides:
getScope
in class ElementInfoImpl<Type,Class,Field,Method>
getContentType
public RuntimeNonElement getContentType()
- Description copied from interface:
ElementInfo
- 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>
- Specified by:
getContentType
in interface RuntimeElementInfo
- Overrides:
getContentType
in class ElementInfoImpl<Type,Class,Field,Method>
- See Also:
ElementInfo.getContentInMemoryType()