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