com.sun.xml.bind.v2.model.impl
Class BuiltinLeafInfoImpl<TypeT,ClassDeclT>

java.lang.Object
  extended by com.sun.xml.bind.v2.model.impl.LeafInfoImpl<TypeT,ClassDeclT>
      extended by com.sun.xml.bind.v2.model.impl.BuiltinLeafInfoImpl<TypeT,ClassDeclT>
All Implemented Interfaces:
Locatable, BuiltinLeafInfo<TypeT,ClassDeclT>, LeafInfo<TypeT,ClassDeclT>, MaybeElement<TypeT,ClassDeclT>, NonElement<TypeT,ClassDeclT>, TypeInfo<TypeT,ClassDeclT>, Location
Direct Known Subclasses:
CBuiltinLeafInfo, RuntimeBuiltinLeafInfoImpl

public class BuiltinLeafInfoImpl<TypeT,ClassDeclT>
extends LeafInfoImpl<TypeT,ClassDeclT>
implements BuiltinLeafInfo<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
 
Constructor Summary
protected BuiltinLeafInfoImpl(TypeT type, QName... typeNames)
           
 
Method Summary
 Element<TypeT,ClassDeclT> asElement()
          Deprecated. always return null at this level.
static
<TypeT,ClassDeclT>
Map<TypeT,BuiltinLeafInfoImpl<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.
 QName[] getTypeNames()
          Returns all the type names recognized by this bean info.
 boolean isElement()
          Deprecated. always return false at this level.
 
Methods inherited from class com.sun.xml.bind.v2.model.impl.LeafInfoImpl
canBeReferencedByIDREF, getLocation, getType, getTypeName, getUpstream, isSimpleType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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
 

Constructor Detail

BuiltinLeafInfoImpl

protected BuiltinLeafInfoImpl(TypeT type,
                              QName... typeNames)
Method Detail

getTypeNames

public final QName[] getTypeNames()
Returns all the type names recognized by this bean info.

Returns:
do not modify the returned array.

isElement

public final boolean isElement()
Deprecated. always return false at this level.

Description copied from interface: MaybeElement
If the class is bound to an element, return true.

Note that when this is true, the class is bound to both an element and a type.

Specified by:
isElement in interface MaybeElement<TypeT,ClassDeclT>

getElementName

public final QName getElementName()
Deprecated. always return null at this level.

Description copied from interface: MaybeElement
Gets the element name of the class, if the class is bound to an element.

Specified by:
getElementName in interface MaybeElement<TypeT,ClassDeclT>
Returns:
non-null iff MaybeElement.isElement().

asElement

public final Element<TypeT,ClassDeclT> asElement()
Deprecated. always return null at this level.

Description copied from interface: MaybeElement
Returns the Element aspect of this ClassInfo.

Specified by:
asElement in interface MaybeElement<TypeT,ClassDeclT>
Returns:
null if MaybeElement.isElement()==false, non-null if MaybeElement.isElement()==true.

createLeaves

public static <TypeT,ClassDeclT> Map<TypeT,BuiltinLeafInfoImpl<TypeT,ClassDeclT>> createLeaves(Navigator<TypeT,ClassDeclT,?,?> nav)
Creates all the BuiltinLeafInfoImpls as specified in the spec. LeafInfos are all defined by the spec.