Package com.sun.xml.bind.v2.model.core
Interface NonElement<T,C>
- All Known Subinterfaces:
ArrayInfo<T,
,C> BuiltinLeafInfo<T,
,C> CClass
,ClassInfo<T,
,C> CNonElement
,EnumLeafInfo<T,
,C> LeafInfo<T,
,C> MaybeElement<T,
,C> RuntimeArrayInfo
,RuntimeBuiltinLeafInfo
,RuntimeClassInfo
,RuntimeEnumLeafInfo
,RuntimeLeafInfo
,RuntimeNonElement
- All Known Implementing Classes:
ArrayInfoImpl
,BuiltinLeafInfoImpl
,CArrayInfo
,CBuiltinLeafInfo
,CClassInfo
,CClassRef
,CEnumLeafInfo
,ClassInfoImpl
,RuntimeBuiltinLeafInfoImpl
- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets the primary XML type ANYTYPE_NAME of the class.boolean
Returns true if thisNonElement
maps to text in XML, without any attribute nor child elements.Methods inherited from interface com.sun.xml.bind.v2.model.annotation.Locatable
getLocation, getUpstream
Methods inherited from interface com.sun.xml.bind.v2.model.core.TypeInfo
canBeReferencedByIDREF, getType
-
Field Details
-
ANYTYPE_NAME
-
-
Method Details
-
getTypeName
QName getTypeName()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.
- Returns:
- null if the object doesn't have an explicit type ANYTYPE_NAME (AKA anonymous.)
-
isSimpleType
boolean isSimpleType()Returns true if thisNonElement
maps to text in XML, without any attribute nor child elements.
-