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

All Superinterfaces:
Locatable, TypeInfo<T,C>
All Known Subinterfaces:
ArrayInfo<T,C>, BuiltinLeafInfo<T,C>, ClassInfo<T,C>, EnumLeafInfo<T,C>, LeafInfo<T,C>, MaybeElement<T,C>, RuntimeArrayInfo, RuntimeBuiltinLeafInfo, RuntimeClassInfo, RuntimeEnumLeafInfo, RuntimeLeafInfo, RuntimeNonElement
All Known Implementing Classes:
AnyTypeImpl, ArrayInfoImpl, BuiltinLeafInfoImpl, ClassInfoImpl, EnumLeafInfoImpl, LeafInfoImpl, RuntimeAnyTypeImpl, RuntimeArrayInfoImpl, RuntimeBuiltinLeafInfoImpl, RuntimeClassInfoImpl, RuntimeEnumLeafInfoImpl

public interface NonElement<T,C>
extends TypeInfo<T,C>

TypeInfo that maps to an element. Either LeafInfo or ClassInfo. TODO: better name.


Method Summary
 javax.xml.namespace.QName getTypeName()
          Gets the XML type name of the class.
 boolean isSimpleType()
          Returns true if this NonElement maps to text in XML, without any attribute nor child elements.
 
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

getTypeName

javax.xml.namespace.QName getTypeName()
Gets the XML type name of the class.

Returns:
null if the object doesn't have an explicit type name (AKA anonymous.)

isSimpleType

boolean isSimpleType()
Returns true if this NonElement maps to text in XML, without any attribute nor child elements.