Top Description Methods
org.glassfish.jaxb.core.v2.model.core

public Interface Element<T, C>

extends TypeInfo<T, C>
Known Direct Subinterfaces
org.glassfish.jaxb.core.v2.model.core.ElementInfo, org.glassfish.jaxb.runtime.v2.model.runtime.RuntimeElement, com.sun.tools.xjc.model.CElement
Known Direct Implementers
org.glassfish.jaxb.runtime.v2.model.impl.ClassInfoImpl, org.glassfish.jaxb.runtime.v2.model.impl.EnumLeafInfoImpl
Imports
javax.xml.namespace.QName

TypeInfo that maps to an element. Either ElementInfo or ClassInfo.
Author
Kohsuke Kawaguchi

Method Summary

Modifier and TypeMethod and Description
public QName

Returns:

Always non-null.
getElementName
()

Gets the element name of the class.

public ClassInfo<T, C>
getScope()

If non-null, this element is only active inside the given scope.

public Element<T, C>

Returns:

null if no such element exists.
getSubstitutionHead
()

If this element can substitute another element, return that element.

Inherited from org.glassfish.jaxb.core.v2.model.core.TypeInfo:
canBeReferencedByIDREFgetType

Method Detail

getElementNameback to summary
public QName getElementName()

Gets the element name of the class.

Returns:QName

Always non-null.

getScopeback to summary
public ClassInfo<T, C> getScope()

If non-null, this element is only active inside the given scope.

getSubstitutionHeadback to summary
public Element<T, C> getSubstitutionHead()

If this element can substitute another element, return that element.

Substitutability of elements are transitive.

Returns:Element<T, C>

null if no such element exists.