|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.bind.v2.model.impl.BuiltinLeafInfoImpl<TypeT,ClassDeclT>
public class BuiltinLeafInfoImpl<TypeT,ClassDeclT>
JAXB spec designates a few Java classes to be mapped to XML types in a way that ignores restrictions placed on user-defined beans.
Field Summary |
---|
Fields inherited from interface com.sun.xml.bind.v2.model.core.NonElement |
---|
ANYTYPE_NAME |
Method Summary | ||
---|---|---|
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
|
createLeaves(Navigator<TypeT,ClassDeclT,?,?> nav)
Creates all the BuiltinLeafInfoImpl s as specified in the spec. |
|
javax.xml.namespace.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. |
|
javax.xml.namespace.QName |
getTypeName()
Gets the primary XML type ANYTYPE_NAME of the class. |
|
javax.xml.namespace.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. |
|
java.lang.String |
toString()
Returns a human-readable string that represents this position. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.sun.xml.bind.v2.model.core.BuiltinLeafInfo |
---|
getTypeName |
Methods inherited from interface com.sun.xml.bind.v2.model.core.NonElement |
---|
isSimpleType |
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 |
---|
public final javax.xml.namespace.QName[] getTypeNames()
public final boolean isElement()
MaybeElement
Note that when this is true, the class is bound to both an element and a type.
isElement
in interface MaybeElement<TypeT,ClassDeclT>
public final javax.xml.namespace.QName getElementName()
MaybeElement
getElementName
in interface MaybeElement<TypeT,ClassDeclT>
MaybeElement.isElement()
.public final Element<TypeT,ClassDeclT> asElement()
MaybeElement
Element
aspect of this ClassInfo
.
asElement
in interface MaybeElement<TypeT,ClassDeclT>
MaybeElement.isElement()
==false, non-null if MaybeElement.isElement()
==true.public static <TypeT,ClassDeclT> java.util.Map<TypeT,BuiltinLeafInfoImpl<TypeT,ClassDeclT>> createLeaves(Navigator<TypeT,ClassDeclT,?,?> nav)
BuiltinLeafInfoImpl
s as specified in the spec.
LeafInfo
s are all defined by the spec.
public TypeT getType()
getType
in interface TypeInfo<TypeT,ClassDeclT>
public final boolean canBeReferencedByIDREF()
canBeReferencedByIDREF
in interface TypeInfo<TypeT,ClassDeclT>
public javax.xml.namespace.QName getTypeName()
NonElement
A 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()
Locatable
Location
information.
getUpstream
in interface Locatable
public Location getLocation()
Locatable
getLocation
in interface Locatable
public boolean isSimpleType()
NonElement
NonElement
maps to text in XML,
without any attribute nor child elements.
isSimpleType
in interface NonElement<TypeT,ClassDeclT>
public java.lang.String toString()
Location
toString
in interface Location
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |