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, 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.
Method Summary |
javax.xml.namespace.QName |
getTypeName()
Gets the XML type name of the class. |
javax.xml.namespace.QName[] |
getTypeNames()
Returns all the type names recognized by this bean info. |
getTypeName
javax.xml.namespace.QName getTypeName()
- Gets the XML type name of the class.
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.
getTypeNames
javax.xml.namespace.QName[] getTypeNames()
- Returns all the type names recognized by this bean info.
- Returns:
- Always non-null. Do not modify the returned array.