com.sun.xml.bind.v2.model.impl
Class RuntimeElementInfoImpl

java.lang.Object
  extended by com.sun.xml.bind.v2.model.impl.TypeInfoImpl<T,C,F,M>
      extended by com.sun.xml.bind.v2.model.impl.ElementInfoImpl<Type,Class,Field,Method>
          extended by 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


Nested Class Summary
(package private)  class RuntimeElementInfoImpl.RuntimePropertyImpl
           
 
Nested classes/interfaces inherited from class com.sun.xml.bind.v2.model.impl.ElementInfoImpl
ElementInfoImpl.PropertyImpl
 
Field Summary
 
Fields inherited from class com.sun.xml.bind.v2.model.impl.TypeInfoImpl
builder, owner
 
Constructor Summary
RuntimeElementInfoImpl(RuntimeModelBuilder modelBuilder, RegistryInfoImpl registry, Method method)
           
 
Method Summary
protected  ElementInfoImpl.PropertyImpl createPropertyImpl()
           
 RuntimeNonElement getContentType()
          Short for getProperty().ref().get(0).
 RuntimeElementPropertyInfo getProperty()
          Gets the object that represents the value property.
 RuntimeClassInfo getScope()
          If non-null, this element is only active inside the given scope.
 Class<? extends JAXBElement> getType()
          Returns the representation for JAXBElement<contentInMemoryType>.
 
Methods inherited from class com.sun.xml.bind.v2.model.impl.ElementInfoImpl
canBeReferencedByIDREF, getContentInMemoryType, getElementName, getLocation, getSubstitutionHead, getSubstitutionMembers, link, parseElementName
 
Methods inherited from class com.sun.xml.bind.v2.model.impl.TypeInfoImpl
getUpstream, nav, parseElementName, parseTypeName, parseTypeName, reader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.xml.bind.v2.model.core.ElementInfo
getContentInMemoryType, getSubstitutionHead, getSubstitutionMembers
 
Methods inherited from interface com.sun.xml.bind.v2.model.core.Element
getElementName
 
Methods inherited from interface com.sun.xml.bind.v2.model.core.TypeInfo
canBeReferencedByIDREF
 
Methods inherited from interface com.sun.xml.bind.v2.model.annotation.Locatable
getLocation, getUpstream
 

Constructor Detail

RuntimeElementInfoImpl

public RuntimeElementInfoImpl(RuntimeModelBuilder modelBuilder,
                              RegistryInfoImpl registry,
                              Method method)
                       throws IllegalAnnotationException
Throws:
IllegalAnnotationException
Method Detail

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()