com.sun.xml.bind.v2.model.core
Interface BuiltinLeafInfo<T,C>

All Superinterfaces:
LeafInfo<T,C>, MaybeElement<T,C>, NonElement<T,C>, TypeInfo<T,C>
All Known Subinterfaces:
RuntimeBuiltinLeafInfo
All Known Implementing Classes:
BuiltinLeafInfoImpl, CBuiltinLeafInfo, RuntimeBuiltinLeafInfoImpl

public interface BuiltinLeafInfo<T,C>
extends LeafInfo<T,C>

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.


Field Summary
 
Fields inherited from interface com.sun.xml.bind.v2.model.core.NonElement
ANYTYPE_NAME
 
Method Summary
 javax.xml.namespace.QName getTypeName()
          Gets the primary XML type ANYTYPE_NAME of the class.
 
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 Detail

getTypeName

javax.xml.namespace.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 interface NonElement<T,C>
Returns:
never null.