com.sun.xml.bind.v2.model.core

Interface NonElement<T,C>

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

TypeInfo that maps to an element. Either LeafInfo or ClassInfo. TODO: better ANYTYPE_NAME.
Field Summary
static QNameANYTYPE_NAME
Method Summary
QNamegetTypeName()
Gets the primary XML type ANYTYPE_NAME of the class.
booleanisSimpleType()
Returns true if this NonElement maps to text in XML, without any attribute nor child elements.

Field Detail

ANYTYPE_NAME

public static final QName ANYTYPE_NAME

Method Detail

getTypeName

public 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

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