This represents the spec-defined default handling for the Java
type (getType().
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.
| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | CBuiltinLeafInfo.
|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final CBuiltinLeafInfo | |
| public static final CBuiltinLeafInfo | |
| public static final CBuiltinLeafInfo | |
| public static final CBuiltinLeafInfo | |
| public static final CBuiltinLeafInfo | |
| public static final TypeUse | BOOLEAN_ZERO_OR_ONE
boolean restricted to 0 or 1. |
| public static final CBuiltinLeafInfo | |
| public static final CBuiltinLeafInfo | |
| public static final CBuiltinLeafInfo | |
| public static final CBuiltinLeafInfo | |
| public static final CBuiltinLeafInfo | |
| public static final CBuiltinLeafInfo | |
| public static final TypeUse | |
| private final ID | |
| public static final TypeUse | |
| public static final TypeUse | IDREF
IDREF. |
| public static final CBuiltinLeafInfo | |
| public static final CBuiltinLeafInfo | |
| public static final Map | LEAVES
All built-in leaves. |
| public static final CBuiltinLeafInfo | |
| public static final TypeUse | |
| public static final CBuiltinLeafInfo | |
| public static final CBuiltinLeafInfo | |
| public static final CBuiltinLeafInfo | |
| public static final TypeUse | STRING_LIST
For all list of strings, such as NMTOKENS, ENTITIES. |
| public static final TypeUse | |
| private final NType | |
| private final QName | typeName
Can be null for anonymous types. |
| private final QName[] | |
| public static final CBuiltinLeafInfo |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final Element | asElement()
Implements org.
Deprecated
always return null at this level.
|
| public final boolean | canBeReferencedByIDREF()
Implements org.
Deprecated
why are you calling a method whose return value is always known?
Leaf-type cannot be referenced from IDREF. |
| public final CAdapter | getAdapterUse()
Implements com.
Deprecated
Guaranteed to return null. |
| public final QName | getElementName()
Implements org.
Deprecated
always return null at this level.
Gets the element name of the class, if the class is bound to an element. |
| public MimeType | getExpectedMimeType()
Implements com. never has a default associated MIME type. |
| public CNonElement | getInfo()
Implements com.
Deprecated
Guaranteed to return this. |
| public Location | getLocation()
Implements org. Gets the location object that this object points to. |
| public Locator | getLocator()
Implements com. Gets the source location in the schema from which this model component is created. |
| public final XSComponent | getSchemaComponent()
Implements com. If this model object is built from XML Schema, this property returns a schema component from which the model is built. |
| public NType | getType()
Implements org. A reference to the representation of the type. |
| public QName | getTypeName()
Implements org. Gets the primary XML type ANYTYPE_NAME of the class. |
| public final QName[] | Returns: do not modify the returned array.Returns all the type names recognized by this bean info. |
| public Locatable | getUpstream()
Implements org. Gets the upstream |
| public ID | idUse()
Implements com. Whether the referenced type (individual item type in case of collection) is ID/IDREF. |
| public final boolean | isCollection()
Implements com.
Deprecated
Since represents a default binding, it is never a collection. |
| public final boolean | isElement()
Implements org.
Deprecated
always return false at this level.
If the class is bound to an element, return true. |
| public boolean | isSimpleType()
Implements org. Returns true if this maps to text in XML, without any attribute nor child elements. |
| public final TypeUse | makeAdapted(Class<? extends XmlAdapter<ValueType, BoundType>> adapter, boolean copy)
Creates a |
| public final TypeUse | |
| public final TypeUse | makeMimeTyped(MimeType mt)
Creates a |
| public JType | toType(Outline o, Aspect aspect)
Implements com. Gets the code model representation of this type. |
| ANYTYPE | back to summary |
|---|---|
| public static final CBuiltinLeafInfo ANYTYPE | |
| BASE64_BYTE_ARRAY | back to summary |
|---|---|
| public static final CBuiltinLeafInfo BASE64_BYTE_ARRAY | |
| BIG_DECIMAL | back to summary |
|---|---|
| public static final CBuiltinLeafInfo BIG_DECIMAL | |
| BIG_INTEGER | back to summary |
|---|---|
| public static final CBuiltinLeafInfo BIG_INTEGER | |
| BOOLEAN | back to summary |
|---|---|
| public static final CBuiltinLeafInfo BOOLEAN | |
| BOOLEAN_ZERO_OR_ONE | back to summary |
|---|---|
| public static final TypeUse BOOLEAN_ZERO_OR_ONE boolean restricted to 0 or 1. | |
| BYTE | back to summary |
|---|---|
| public static final CBuiltinLeafInfo BYTE | |
| CALENDAR | back to summary |
|---|---|
| public static final CBuiltinLeafInfo CALENDAR | |
| DATA_HANDLER | back to summary |
|---|---|
| public static final CBuiltinLeafInfo DATA_HANDLER | |
| DOUBLE | back to summary |
|---|---|
| public static final CBuiltinLeafInfo DOUBLE | |
| DURATION | back to summary |
|---|---|
| public static final CBuiltinLeafInfo DURATION | |
| FLOAT | back to summary |
|---|---|
| public static final CBuiltinLeafInfo FLOAT | |
| HEXBIN_BYTE_ARRAY | back to summary |
|---|---|
| public static final TypeUse HEXBIN_BYTE_ARRAY | |
| id | back to summary |
|---|---|
| private final ID id | |
| ID | back to summary |
|---|---|
| public static final TypeUse ID | |
| IDREF | back to summary |
|---|---|
| public static final TypeUse IDREF IDREF.
IDREF is has a whitespace normalization semantics of token, but
we don't want | |
| IMAGE | back to summary |
|---|---|
| public static final CBuiltinLeafInfo IMAGE | |
| INT | back to summary |
|---|---|
| public static final CBuiltinLeafInfo INT | |
| LEAVES | back to summary |
|---|---|
| public static final Map<NType, CBuiltinLeafInfo> LEAVES All built-in leaves. | |
| LONG | back to summary |
|---|---|
| public static final CBuiltinLeafInfo LONG | |
| NORMALIZED_STRING | back to summary |
|---|---|
| public static final TypeUse NORMALIZED_STRING | |
| QNAME | back to summary |
|---|---|
| public static final CBuiltinLeafInfo QNAME | |
| SHORT | back to summary |
|---|---|
| public static final CBuiltinLeafInfo SHORT | |
| STRING | back to summary |
|---|---|
| public static final CBuiltinLeafInfo STRING | |
| STRING_LIST | back to summary |
|---|---|
| public static final TypeUse STRING_LIST For all list of strings, such as NMTOKENS, ENTITIES. | |
| TOKEN | back to summary |
|---|---|
| public static final TypeUse TOKEN | |
| type | back to summary |
|---|---|
| private final NType type | |
| typeName | back to summary |
|---|---|
| private final QName typeName Can be null for anonymous types. | |
| typeNames | back to summary |
|---|---|
| private final QName[] typeNames | |
| XML_SOURCE | back to summary |
|---|---|
| public static final CBuiltinLeafInfo XML_SOURCE | |
| CBuiltinLeafInfo | back to summary |
|---|---|
| private CBuiltinLeafInfo(NType typeToken, ID id, QName... typeNames) | |
| asElement | back to summary |
|---|---|
| public final Element Implements org. Doc from org. Deprecated always return null at this level. Returns the
| |
| canBeReferencedByIDREF | back to summary |
|---|---|
| public final boolean canBeReferencedByIDREF() Implements org. Deprecated why are you calling a method whose return value is always known? Leaf-type cannot be referenced from IDREF.
| |
| getAdapterUse | back to summary |
|---|---|
| public final CAdapter getAdapterUse() Implements com. Doc from com. Deprecated
Guaranteed to return null.
| |
| getElementName | back to summary |
|---|---|
| public final QName getElementName() Implements org. Doc from org. Deprecated always return null at this level. Gets the element name of the class, if the class is bound to an element.
| |
| getExpectedMimeType | back to summary |
|---|---|
| public MimeType getExpectedMimeType() Implements com. never has a default associated MIME type.
| |
| getInfo | back to summary |
|---|---|
| public CNonElement getInfo() Implements com. Deprecated
Guaranteed to return this.
| |
| getLocation | back to summary |
|---|---|
| public Location getLocation() Implements org. Doc from org. Gets the location object that this object points to. This operation could be inefficient and costly.
| |
| getLocator | back to summary |
|---|---|
| public Locator getLocator() Implements com. Doc from com. Gets the source location in the schema from which this model component is created.
| |
| getSchemaComponent | back to summary |
|---|---|
| public final XSComponent getSchemaComponent() Implements com. Doc from com. If this model object is built from XML Schema, this property returns a schema component from which the model is built.
| |
| getType | back to summary |
|---|---|
| public NType getType() Implements org. A reference to the representation of the type.
| |
| getTypeName | back to summary |
|---|---|
| public QName getTypeName() Implements org. Doc from org. 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. This method returns the 'primary' type name of this built-in leaf, which should be used when values of this type are marshalled.
| |
| getTypeNames | back to summary |
|---|---|
| public final QName[] getTypeNames() Returns all the type names recognized by this bean info.
| |
| getUpstream | back to summary |
|---|---|
| public Locatable getUpstream() Implements org. Doc from org. Gets the upstream
| |
| idUse | back to summary |
|---|---|
| public ID idUse() Implements com. Doc from com. Whether the referenced type (individual item type in case of collection) is ID/IDREF. ID is a property of a relationship. When a bean Foo has an ID property called 'bar' whose type is String, Foo isn't an ID, String isn't an ID, but this relationship is an ID (in the sense that Foo uses this String as an ID.) The same thing can be said with IDREF. When Foo refers to Bar by means of IDREF, neither Foo nor Bar is IDREF. That's why we have this method in .
| |
| isCollection | back to summary |
|---|---|
| public final boolean isCollection() Implements com. Deprecated
Since represents a default binding, it is never a collection.
| |
| isElement | back to summary |
|---|---|
| public final boolean isElement() Implements org. Doc from org. Deprecated always return false at this level. If the class is bound to an element, return true. Note that when this is true, the class is bound to both an element and a type.
| |
| isSimpleType | back to summary |
|---|---|
| public boolean isSimpleType() Implements org. Doc from org. Returns true if this maps to text in XML, without any attribute nor child elements.
| |
| makeAdapted | back to summary |
|---|---|
| public final TypeUse makeAdapted(Class<? extends XmlAdapter<ValueType, BoundType>> adapter, boolean copy) Creates a | |
| makeCollection | back to summary |
|---|---|
| public final TypeUse makeCollection() Creates a | |
| makeMimeTyped | back to summary |
|---|---|
| public final TypeUse makeMimeTyped(MimeType mt) Creates a | |
| toType | back to summary |
|---|---|
| public JType toType(Outline o, Aspect aspect) Implements com. Gets the code model representation of this type.
| |
CBuiltinLeafInfo for Java classes that have
the spec defined built-in binding semantics.
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public CCustomizations | getCustomizations()
Implements com. No vendor customization in the built-in classes. |
| Builtin | back to summary |
|---|---|
| protected Builtin(Class<?> c, String typeName) | |
| Builtin | back to summary |
|---|---|
| protected Builtin(Class<?> c, String typeName, ID id) | |
| getCustomizations | back to summary |
|---|---|
| public CCustomizations getCustomizations() Implements com. No vendor customization in the built-in classes.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public JExpression | createConstant(Outline outline, XmlString lexical)
Implements com. Creates a constant for the given lexical value. |
| NoConstantBuiltin | back to summary |
|---|---|
| public NoConstantBuiltin(Class<?> c, String typeName) | |
| createConstant | back to summary |
|---|---|
| public JExpression createConstant(Outline outline, XmlString lexical) Implements com. Doc from com. Creates a constant for the given lexical value.
For example, to create a constant 1 for CBuiltinLeafInfo.INT.createConstant( codeModel, "1", null ); This method is invoked at the backend as a part of the code generation process.
| |