Locatable, NonElement<T,C>, TypeInfo<T,C>BuiltinLeafInfo<T,C>, ClassInfo<T,C>, EnumLeafInfo<T,C>, LeafInfo<T,C>public interface MaybeElement<T,C> extends NonElement<T,C>
NonElement can optionally be an Element.
This interface captures such characteristics.ANYTYPE_NAME| Modifier and Type | Method | Description |
|---|---|---|
Element<T,C> |
asElement() |
|
javax.xml.namespace.QName |
getElementName() |
Gets the element name of the class, if the class is bound
to an element.
|
boolean |
isElement() |
If the class is bound to an element, return true.
|
getLocation, getUpstreamgetTypeName, isSimpleTypecanBeReferencedByIDREF, getTypeboolean isElement()
Note that when this is true, the class is bound to both an element and a type.
javax.xml.namespace.QName getElementName()
isElement().Element<T,C> asElement()
isElement()==false, non-null if isElement()==true.Copyright © 2018 Oracle Corporation. All rights reserved.