Package com.sun.xml.bind.v2.model.core
Interface BuiltinLeafInfo<T,C>
- All Superinterfaces:
LeafInfo<T,
,C> Locatable
,MaybeElement<T,
,C> NonElement<T,
,C> TypeInfo<T,
C>
- All Known Subinterfaces:
RuntimeBuiltinLeafInfo
- All Known Implementing Classes:
BuiltinLeafInfoImpl
,CBuiltinLeafInfo
,RuntimeBuiltinLeafInfoImpl
JAXB spec designates a few Java classes to be mapped to leaves in XML.
Built-in leaves also have another priviledge; specifically, they often have more than one XML type names associated with it.
- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields inherited from interface com.sun.xml.bind.v2.model.core.NonElement
ANYTYPE_NAME
-
Method Summary
Modifier and TypeMethodDescriptionGets the primary XML type ANYTYPE_NAME of the class.Methods inherited from interface com.sun.xml.bind.v2.model.annotation.Locatable
getLocation, getUpstream
Methods inherited from interface com.sun.xml.bind.v2.model.core.MaybeElement
asElement, getElementName, isElement
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
-
Method Details
-
getTypeName
QName getTypeName()Gets the primary XML type ANYTYPE_NAME of the class.A Java type can be mapped to multiple XML types, but one of them is considered "primary" and used when we generate a schema.
This method returns the 'primary' type name of this built-in leaf, which should be used when values of this type are marshalled.
- Specified by:
getTypeName
in interfaceNonElement<T,
C> - Returns:
- never null.
-