Locatable
, NonElement<T,C>
, TypeInfo<T,C>
BuiltinLeafInfo<T,C>
, ClassInfo<T,C>
, EnumLeafInfo<T,C>
, LeafInfo<T,C>
, RuntimeBuiltinLeafInfo
, RuntimeClassInfo
, RuntimeEnumLeafInfo
, RuntimeLeafInfo
BuiltinLeafInfoImpl
, CBuiltinLeafInfo
, CClassInfo
, CEnumLeafInfo
, ClassInfoImpl
, RuntimeBuiltinLeafInfoImpl
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() |
|
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, getUpstream
getTypeName, isSimpleType
canBeReferencedByIDREF, getType
boolean isElement()
Note that when this is true, the class is bound to both an element and a type.
QName getElementName()
isElement()
.Element<T,C> asElement()
isElement()
==false, non-null if isElement()
==true.Copyright © 2018 Oracle Corporation. All rights reserved.