com.sun.xml.bind.v2.model.impl
Class AnyTypeImpl<T,C>

java.lang.Object
  extended by com.sun.xml.bind.v2.model.impl.AnyTypeImpl<T,C>
All Implemented Interfaces:
Locatable, NonElement<T,C>, TypeInfo<T,C>
Direct Known Subclasses:
RuntimeAnyTypeImpl

 class AnyTypeImpl<T,C>
extends Object
implements NonElement<T,C>

TypeInfo implementation for xs:anyType.


Field Summary
 
Fields inherited from interface com.sun.xml.bind.v2.model.core.NonElement
ANYTYPE_NAME
 
Constructor Summary
AnyTypeImpl(Navigator<T,C,?,?> nav)
           
 
Method Summary
 boolean canBeReferencedByIDREF()
          Deprecated. why are you calling a method whose return value is always known?
 Location getLocation()
          Gets the location object that this object points to.
 T getType()
          Gets the underlying Java type that object represents.
 QName getTypeName()
          Gets the primary XML type ANYTYPE_NAME of the class.
 Locatable getUpstream()
          Gets the upstream Location information.
 boolean isSimpleType()
          Returns true if this NonElement maps to text in XML, without any attribute nor child elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnyTypeImpl

public AnyTypeImpl(Navigator<T,C,?,?> nav)
Method Detail

getTypeName

public QName getTypeName()
Description copied from interface: NonElement
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.

Specified by:
getTypeName in interface NonElement<T,C>
Returns:
null if the object doesn't have an explicit type ANYTYPE_NAME (AKA anonymous.)

getType

public T getType()
Description copied from interface: TypeInfo
Gets the underlying Java type that object represents.

Specified by:
getType in interface TypeInfo<T,C>
Returns:
always non-null.

getUpstream

public Locatable getUpstream()
Description copied from interface: Locatable
Gets the upstream Location information.

Specified by:
getUpstream in interface Locatable
Returns:
can be null.

isSimpleType

public boolean isSimpleType()
Description copied from interface: NonElement
Returns true if this NonElement maps to text in XML, without any attribute nor child elements.

Specified by:
isSimpleType in interface NonElement<T,C>

getLocation

public Location getLocation()
Description copied from interface: Locatable
Gets the location object that this object points to. This operation could be inefficient and costly.

Specified by:
getLocation in interface Locatable

canBeReferencedByIDREF

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

xs:anyType can be referenced from XmlIDREF.

Specified by:
canBeReferencedByIDREF in interface TypeInfo<T,C>