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

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

public class BuiltinLeafInfoImpl<TypeT,ClassDeclT>
extends java.lang.Object
implements com.sun.xml.bind.v2.model.core.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
 
Method Summary
 com.sun.xml.bind.v2.model.core.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
<TypeT,ClassDeclT>
java.util.Map<TypeT,BuiltinLeafInfoImpl<TypeT,ClassDeclT>>
createLeaves(com.sun.xml.bind.v2.model.nav.Navigator<TypeT,ClassDeclT,?,?> nav)
          Creates all the BuiltinLeafInfoImpls as specified in the spec.
 javax.xml.namespace.QName getElementName()
          Deprecated. always return null at this level.
 com.sun.xml.bind.v2.runtime.Location getLocation()
           
 TypeT getType()
          A reference to the representation of the type.
 javax.xml.namespace.QName getTypeName()
           
 javax.xml.namespace.QName[] getTypeNames()
          Returns all the type names recognized by this bean info.
 com.sun.xml.bind.v2.model.annotation.Locatable getUpstream()
           
 boolean isElement()
          Deprecated. always return false at this level.
 boolean isSimpleType()
           
 java.lang.String toString()
           
 
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

getTypeNames

public final javax.xml.namespace.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.

Specified by:
isElement in interface com.sun.xml.bind.v2.model.core.MaybeElement<TypeT,ClassDeclT>

getElementName

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

Specified by:
getElementName in interface com.sun.xml.bind.v2.model.core.MaybeElement<TypeT,ClassDeclT>

asElement

public final com.sun.xml.bind.v2.model.core.Element<TypeT,ClassDeclT> asElement()
Deprecated. always return null at this level.

Specified by:
asElement in interface com.sun.xml.bind.v2.model.core.MaybeElement<TypeT,ClassDeclT>

createLeaves

public static <TypeT,ClassDeclT> java.util.Map<TypeT,BuiltinLeafInfoImpl<TypeT,ClassDeclT>> createLeaves(com.sun.xml.bind.v2.model.nav.Navigator<TypeT,ClassDeclT,?,?> nav)
Creates all the BuiltinLeafInfoImpls as specified in the spec. LeafInfos are all defined by the spec.


getType

public TypeT getType()
A reference to the representation of the type.

Specified by:
getType in interface com.sun.xml.bind.v2.model.core.TypeInfo<TypeT,ClassDeclT>

canBeReferencedByIDREF

public final boolean canBeReferencedByIDREF()
Deprecated. why are you calling a method whose return value is always known?

Leaf-type cannot be referenced from IDREF.

Specified by:
canBeReferencedByIDREF in interface com.sun.xml.bind.v2.model.core.TypeInfo<TypeT,ClassDeclT>

getTypeName

public javax.xml.namespace.QName getTypeName()
Specified by:
getTypeName in interface com.sun.xml.bind.v2.model.core.NonElement<TypeT,ClassDeclT>

getUpstream

public com.sun.xml.bind.v2.model.annotation.Locatable getUpstream()
Specified by:
getUpstream in interface com.sun.xml.bind.v2.model.annotation.Locatable

getLocation

public com.sun.xml.bind.v2.runtime.Location getLocation()
Specified by:
getLocation in interface com.sun.xml.bind.v2.model.annotation.Locatable

isSimpleType

public boolean isSimpleType()
Specified by:
isSimpleType in interface com.sun.xml.bind.v2.model.core.NonElement<TypeT,ClassDeclT>

toString

public java.lang.String toString()
Specified by:
toString in interface com.sun.xml.bind.v2.runtime.Location
Overrides:
toString in class java.lang.Object