public class BuiltinLeafInfoImpl<TypeT,ClassDeclT> extends Object implements BuiltinLeafInfo<TypeT,ClassDeclT>
ANYTYPE_NAME| Modifier | Constructor and Description |
|---|---|
protected |
BuiltinLeafInfoImpl(TypeT type,
QName... typeNames) |
| Modifier and Type | Method and Description |
|---|---|
Element<TypeT,ClassDeclT> |
asElement()
Deprecated.
always return null at this level.
|
boolean |
canBeReferencedByIDREF()
Deprecated.
why are you calling a method whose return value is always known?
|
static <TypeT,ClassDeclT> |
createLeaves(Navigator<TypeT,ClassDeclT,?,?> nav)
Creates all the
BuiltinLeafInfoImpls as specified in the spec. |
QName |
getElementName()
Deprecated.
always return null at this level.
|
Location |
getLocation()
Gets the location object that this object points to.
|
TypeT |
getType()
A reference to the representation of the type.
|
QName |
getTypeName()
Gets the primary XML type ANYTYPE_NAME of the class.
|
QName[] |
getTypeNames()
Returns all the type names recognized by this bean info.
|
Locatable |
getUpstream()
Gets the upstream
Location information. |
boolean |
isElement()
Deprecated.
always return false at this level.
|
boolean |
isSimpleType()
Returns true if this
NonElement maps to text in XML,
without any attribute nor child elements. |
String |
toString()
Returns a human-readable string that represents this position.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTypeNameisSimpleTypecanBeReferencedByIDREF, getTypegetLocation, getUpstreampublic final QName[] getTypeNames()
public final boolean isElement()
MaybeElementNote that when this is true, the class is bound to both an element and a type.
isElement in interface MaybeElement<TypeT,ClassDeclT>public final QName getElementName()
MaybeElementgetElementName in interface MaybeElement<TypeT,ClassDeclT>MaybeElement.isElement().public final Element<TypeT,ClassDeclT> asElement()
MaybeElementasElement in interface MaybeElement<TypeT,ClassDeclT>MaybeElement.isElement()==false, non-null if MaybeElement.isElement()==true.public static <TypeT,ClassDeclT> Map<TypeT,BuiltinLeafInfoImpl<TypeT,ClassDeclT>> createLeaves(Navigator<TypeT,ClassDeclT,?,?> nav)
BuiltinLeafInfoImpls as specified in the spec.
LeafInfos are all defined by the spec.public TypeT getType()
public final boolean canBeReferencedByIDREF()
canBeReferencedByIDREF in interface TypeInfo<TypeT,ClassDeclT>public QName getTypeName()
NonElementA Java type can be mapped to multiple XML types, but one of them is considered "primary" and used when we generate a schema.
getTypeName in interface NonElement<TypeT,ClassDeclT>public Locatable getUpstream()
LocatableLocation information.getUpstream in interface Locatablepublic Location getLocation()
LocatablegetLocation in interface Locatablepublic boolean isSimpleType()
NonElementNonElement maps to text in XML,
without any attribute nor child elements.isSimpleType in interface NonElement<TypeT,ClassDeclT>Copyright © 2018 JBoss by Red Hat. All rights reserved.