|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.bind.v2.model.impl.TypeInfoImpl<T,C,F,M>
com.sun.xml.bind.v2.model.impl.ElementInfoImpl<T,C,F,M>
class ElementInfoImpl<T,C,F,M>
ElementInfo
implementation.
Nested Class Summary | |
---|---|
protected class |
ElementInfoImpl.PropertyImpl
Singleton instance of ElementPropertyInfo for this element. |
Field Summary |
---|
Fields inherited from class com.sun.xml.bind.v2.model.impl.TypeInfoImpl |
---|
builder, owner |
Constructor Summary | |
---|---|
ElementInfoImpl(ModelBuilder<T,C,F,M> builder,
RegistryInfoImpl<T,C,F,M> registry,
M m)
|
Method Summary | |
---|---|
boolean |
canBeReferencedByIDREF()
Deprecated. why are you calling a method whose return value is always known? |
protected ElementInfoImpl.PropertyImpl |
createPropertyImpl()
|
T |
getContentInMemoryType()
T of JAXBElement<T> . |
NonElement<T,C> |
getContentType()
Short for getProperty().ref().get(0) . |
QName |
getElementName()
Gets the element name of the class. |
Location |
getLocation()
Gets the location object that this object points to. |
ElementPropertyInfo<T,C> |
getProperty()
Gets the object that represents the value property. |
ClassInfo<T,C> |
getScope()
If non-null, this element is only active inside the given scope. |
ElementInfo<T,C> |
getSubstitutionHead()
If this element can substitute another element, return that element. |
Collection<? extends ElementInfoImpl<T,C,F,M>> |
getSubstitutionMembers()
All the ElementInfo s whose ElementInfo.getSubstitutionHead() points
to this object. |
T |
getType()
Returns the representation for JAXBElement <contentInMemoryType>. |
(package private) void |
link()
Called after all the TypeInfo s are collected into the TypeInfoImpl.owner . |
(package private) QName |
parseElementName(XmlElementDecl e)
|
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.annotation.Locatable |
---|
getUpstream |
Constructor Detail |
---|
public ElementInfoImpl(ModelBuilder<T,C,F,M> builder, RegistryInfoImpl<T,C,F,M> registry, M m) throws IllegalAnnotationException
m
- The factory method on ObjectFactory that comes with XmlElementDecl
.
IllegalAnnotationException
Method Detail |
---|
final QName parseElementName(XmlElementDecl e)
protected ElementInfoImpl.PropertyImpl createPropertyImpl()
public ElementPropertyInfo<T,C> getProperty()
ElementInfo
getProperty
in interface ElementInfo<T,C>
public NonElement<T,C> getContentType()
ElementInfo
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.
getContentType
in interface ElementInfo<T,C>
ElementInfo.getContentInMemoryType()
public T getContentInMemoryType()
ElementInfo
JAXBElement<T>
.
This is tied to the in-memory representation.
getContentInMemoryType
in interface ElementInfo<T,C>
ElementInfo.getContentType()
public QName getElementName()
Element
getElementName
in interface Element<T,C>
public T getType()
ElementInfo
JAXBElement
<contentInMemoryType>.
This returns the signature in Java and thus isn't affected by the adapter.
getType
in interface ElementInfo<T,C>
getType
in interface TypeInfo<T,C>
public final boolean canBeReferencedByIDREF()
canBeReferencedByIDREF
in interface TypeInfo<T,C>
public ClassInfo<T,C> getScope()
Element
getScope
in interface Element<T,C>
public ElementInfo<T,C> getSubstitutionHead()
Element
Substitutability of elements are transitive.
getSubstitutionHead
in interface Element<T,C>
getSubstitutionHead
in interface ElementInfo<T,C>
public Collection<? extends ElementInfoImpl<T,C,F,M>> getSubstitutionMembers()
ElementInfo
ElementInfo
s whose ElementInfo.getSubstitutionHead()
points
to this object.
getSubstitutionMembers
in interface ElementInfo<T,C>
void link()
TypeInfo
s are collected into the TypeInfoImpl.owner
.
link
in class TypeInfoImpl<T,C,F,M>
public Location getLocation()
Locatable
getLocation
in interface Locatable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |