Top Description Fields Methods
org.glassfish.jaxb.core.v2.model.core

public Interface NonElement<T, C>

extends TypeInfo<T, C>
Known Direct Subinterfaces
org.glassfish.jaxb.runtime.v2.model.runtime.RuntimeNonElement, com.sun.tools.xjc.model.CNonElement, org.glassfish.jaxb.core.v2.model.core.ArrayInfo, org.glassfish.jaxb.core.v2.model.core.MaybeElement
Known Direct Implementers
org.glassfish.jaxb.runtime.v2.model.impl.AnyTypeImpl
Imports
javax.xml.XMLConstants, javax.xml.namespace.QName

TypeInfo that maps to an element. Either LeafInfo or ClassInfo.

Todo

better ANYTYPE_NAME.

Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
public static final QName

Method Summary

Modifier and TypeMethod and Description
public QName

Returns:

null if the object doesn't have an explicit type ANYTYPE_NAME (AKA anonymous.)
getTypeName
()

Gets the primary XML type ANYTYPE_NAME of the class.

public boolean
isSimpleType()

Returns true if this maps to text in XML, without any attribute nor child elements.

Inherited from org.glassfish.jaxb.core.v2.model.core.TypeInfo:
canBeReferencedByIDREFgetType

Field Detail

ANYTYPE_NAMEback to summary
public static final QName ANYTYPE_NAME

Method Detail

getTypeNameback to summary
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:QName

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

isSimpleTypeback to summary
public boolean isSimpleType()

Returns true if this maps to text in XML, without any attribute nor child elements.