com.sun.tools.xjc.model
public abstract class CBuiltinLeafInfo extends BuiltinLeafInfoImpl<NType,NClass> implements CNonElement
This represents the spec-defined default handling for the Java type (CBuiltinLeafInfo.
For those Java classes (such as String or Boolean) where the spec designates a specific default handling, there are constants in this class (such as STRING or BOOLEAN.)
The generated type-safe enum classes are also a leaf class, and as such there are CEnumLeafInfo that represents it as CBuiltinLeafInfo.
This class represents the default handling, and therefore we can only have one instance per one NType. Handling of other XML Schema types (such as xs:token) are represented as a general TypeUse objects.
Field Summary | |
---|---|
static CBuiltinLeafInfo | ANYTYPE |
static CBuiltinLeafInfo | BASE64_BYTE_ARRAY |
static CBuiltinLeafInfo | BIG_DECIMAL |
static CBuiltinLeafInfo | BIG_INTEGER |
static CBuiltinLeafInfo | BOOLEAN |
static TypeUse | BOOLEAN_ZERO_OR_ONE
boolean restricted to 0 or 1. |
static CBuiltinLeafInfo | BYTE |
static CBuiltinLeafInfo | CALENDAR |
static CBuiltinLeafInfo | DATA_HANDLER |
static CBuiltinLeafInfo | DOUBLE |
static CBuiltinLeafInfo | DURATION |
static CBuiltinLeafInfo | FLOAT |
static TypeUse | HEXBIN_BYTE_ARRAY |
static TypeUse | ID |
static TypeUse | IDREF
IDREF.
|
static CBuiltinLeafInfo | IMAGE |
static CBuiltinLeafInfo | INT |
static Map<NType,CBuiltinLeafInfo> | LEAVES
All built-in leaves. |
static CBuiltinLeafInfo | LONG |
static TypeUse | NORMALIZED_STRING |
static CBuiltinLeafInfo | QNAME |
static CBuiltinLeafInfo | SHORT |
static CBuiltinLeafInfo | STRING |
static TypeUse | STRING_LIST
For all list of strings, such as NMTOKENS, ENTITIES. |
static TypeUse | TOKEN |
static CBuiltinLeafInfo | XML_SOURCE |
Method Summary | |
---|---|
CAdapter | getAdapterUse() |
MimeType | getExpectedMimeType()
CBuiltinLeafInfo never has a default associated MIME type. |
CNonElement | getInfo()
Guaranteed to return this. |
Locator | getLocator() |
XSComponent | getSchemaComponent() |
ID | idUse() |
boolean | isCollection()
Since CBuiltinLeafInfo represents a default binding,
it is never a collection. |
TypeUse | makeAdapted(Class<? extends XmlAdapter> adapter, boolean copy)
Creates a TypeUse that represents an adapted use of this CBuiltinLeafInfo. |
TypeUse | makeCollection()
Creates a TypeUse that represents a collection of this CBuiltinLeafInfo. |
TypeUse | makeMimeTyped(MimeType mt)
Creates a TypeUse that represents a MIME-type assocaited version of this CBuiltinLeafInfo. |
JType | toType(Outline o, Aspect aspect)
Gets the code model representation of this type. |