com.sun.xml.bind.v2.model.core
Interface Element<T,C>

All Superinterfaces:
Locatable, TypeInfo<T,C>
All Known Subinterfaces:
CClass, CElement, ElementInfo<T,C>, RuntimeElement, RuntimeElementInfo
All Known Implementing Classes:
AbstractCElement, CClassInfo, CClassRef, CElementInfo, ClassInfoImpl, ElementInfoImpl, EnumLeafInfoImpl, RuntimeClassInfoImpl, RuntimeElementInfoImpl, RuntimeEnumLeafInfoImpl

public interface Element<T,C>
extends TypeInfo<T,C>

TypeInfo that maps to an element. Either ElementInfo or ClassInfo.


Method Summary
 QName getElementName()
          Gets the element name of the class.
 ClassInfo<T,C> getScope()
          If non-null, this element is only active inside the given scope.
 Element<T,C> getSubstitutionHead()
          If this element can substitute another element, return that element.
 
Methods inherited from interface com.sun.xml.bind.v2.model.core.TypeInfo
canBeReferencedByIDREF, getType
 
Methods inherited from interface com.sun.xml.bind.v2.model.annotation.Locatable
getLocation, getUpstream
 

Method Detail

getElementName

QName getElementName()
Gets the element name of the class.

Returns:
Always non-null.

getSubstitutionHead

Element<T,C> getSubstitutionHead()
If this element can substitute another element, return that element.

Substitutability of elements are transitive.

Returns:
null if no such element exists.

getScope

ClassInfo<T,C> getScope()
If non-null, this element is only active inside the given scope.