All Implemented Interfaces:
SchemaAnnotated, SchemaComponent
All Known Implementing Classes:
SchemaTypeImpl
SchemaType is the metadata "type" class for XmlObject , and it plays the analogous role for XmlObject that java.lang.Class plays for java.lang.Object .
Every XML Bean class corresponds to a singleton SchemaType object obtainable by ClassName.type (e.g., XmlNonPositiveInteger#type ), and every XML Bean instance has an actual SchemaType, obtainable by XmlObject#schemaType . The ClassName.type and schemaType() mechanisms are analogous to the ordinary Java ClassName.class and obj.getClass() mechanisms.
All schema types are represented by a SchemaType, this includes all types regardless of whether they are built-in or user-defined, compiled or uncompiled, simple or complex.
In addition, a compiled XML Bean type system includes special "document" schema types each representing a document containing nothing but a single element for each global element, and special "attribute" schema types each representing a fragment containing nothing but a single global attribute for global attribute.
Do not confuse Schema Types with other types of Schema Components such as Global Elements , Global Attributes , Named Model Groups , or Attribute Groups . SchemaType represents a Type component, not any of the other kinds of components. There are different kinds of metadata objects for the different Schema components.
The space of SchemaTypes is divided as follows:
true
for #isURType , and
only XmlBeans.NO_TYPE returns true
for #isNoType .
Nested Class Summary: | ||
---|---|---|
public static final class | SchemaType.Ref | Used to allow on-demand loading of types. |
Field Summary | ||
---|---|---|
public static final int | DT_NOT_DERIVED | Not derived. True for XmlObject.type only. See #getDerivationType . |
public static final int | DT_RESTRICTION | Derived by restriction. See #getDerivationType . |
public static final int | DT_EXTENSION | Derived by extension. See #getDerivationType . |
public static final int | BTC_NOT_BUILTIN | Not a builtin type |
public static final int | BTC_ANY_TYPE | xs:anyType, aka XmlObject#type |
public static final int | BTC_FIRST_PRIMITIVE | The primitive types have codes between BTC_FIRST_PRIMITIVE and BTC_LAST_PRIMITIVE inclusive |
public static final int | BTC_ANY_SIMPLE | xs:anySimpleType, aka XmlAnySimpleType#type |
public static final int | BTC_BOOLEAN | xs:boolean, aka XmlBoolean#type |
public static final int | BTC_BASE_64_BINARY | xs:base64Binary, aka XmlBase64Binary#type |
public static final int | BTC_HEX_BINARY | xs:hexBinary, aka XmlBase64Binary#type |
public static final int | BTC_ANY_URI | xs:anyURI, aka XmlAnyURI#type |
public static final int | BTC_QNAME | xs:QName, aka XmlQName#type |
public static final int | BTC_NOTATION | xs:NOTATION, aka XmlNOTATION#type |
public static final int | BTC_FLOAT | xs:float, aka XmlFloat#type |
public static final int | BTC_DOUBLE | xs:double, aka XmlDouble#type |
public static final int | BTC_DECIMAL | xs:decimal, aka XmlDecimal#type |
public static final int | BTC_STRING | xs:string, aka XmlString#type |
public static final int | BTC_DURATION | xs:duration, aka XmlDuration#type |
public static final int | BTC_DATE_TIME | xs:dateTime, aka XmlDateTime#type |
public static final int | BTC_TIME | xs:time, aka XmlTime#type |
public static final int | BTC_DATE | xs:date, aka XmlDate#type |
public static final int | BTC_G_YEAR_MONTH | xs:gYearMonth, aka XmlGYearMonth#type |
public static final int | BTC_G_YEAR | xs:gYear, aka XmlGYear#type |
public static final int | BTC_G_MONTH_DAY | xs:gMonthDay, aka XmlGMonthDay#type |
public static final int | BTC_G_DAY | xs:gDay, aka XmlGDay#type |
public static final int | BTC_G_MONTH | xs:gMonth, aka XmlGMonth#type |
public static final int | BTC_LAST_PRIMITIVE | The primitive types have codes between BTC_FIRST_PRIMITIVE and BTC_LAST_PRIMITIVE inclusive |
public static final int | BTC_INTEGER | xs:integer, aka XmlInteger#type |
public static final int | BTC_LONG | xs:long, aka XmlLong#type |
public static final int | BTC_INT | xs:int, aka XmlInt#type |
public static final int | BTC_SHORT | xs:short, aka XmlShort#type |
public static final int | BTC_BYTE | xs:byte, aka XmlByte#type |
public static final int | BTC_NON_POSITIVE_INTEGER | xs:nonPositiveInteger, aka XmlNonPositiveInteger#type |
public static final int | BTC_NEGATIVE_INTEGER | xs:NegativeInteger, aka XmlNegativeInteger#type |
public static final int | BTC_NON_NEGATIVE_INTEGER | xs:nonNegativeInteger, aka XmlNonNegativeInteger#type |
public static final int | BTC_POSITIVE_INTEGER | xs:positiveInteger, aka XmlPositiveInteger#type |
public static final int | BTC_UNSIGNED_LONG | xs:unsignedLong, aka XmlUnsignedLong#type |
public static final int | BTC_UNSIGNED_INT | xs:unsignedInt, aka XmlUnsignedInt#type |
public static final int | BTC_UNSIGNED_SHORT | xs:unsignedShort, aka XmlUnsignedShort#type |
public static final int | BTC_UNSIGNED_BYTE | xs:unsignedByte, aka XmlUnsignedByte#type |
public static final int | BTC_NORMALIZED_STRING | xs:normalizedString, aka XmlNormalizedString#type |
public static final int | BTC_TOKEN | xs:token, aka XmlToken#type |
public static final int | BTC_NAME | xs:Name, aka XmlName#type |
public static final int | BTC_NCNAME | xs:NCName, aka XmlNCName#type |
public static final int | BTC_LANGUAGE | xs:language, aka XmlLanguage#type |
public static final int | BTC_ID | xs:ID, aka XmlID#type |
public static final int | BTC_IDREF | xs:IDREF, aka XmlIDREF#type |
public static final int | BTC_IDREFS | xs:IDREFS, aka XmlIDREFS#type |
public static final int | BTC_ENTITY | xs:ENTITY, aka XmlENTITY#type |
public static final int | BTC_ENTITIES | xs:ENTITIES, aka XmlENTITIES#type |
public static final int | BTC_NMTOKEN | xs:NMTOKEN, aka XmlNMTOKEN#type |
public static final int | BTC_NMTOKENS | xs:NMTOKENS, aka XmlNMTOKENS#type |
public static final int | BTC_LAST_BUILTIN | |
public static final int | NOT_COMPLEX_TYPE | Not a complex type. See #getContentType() . |
public static final int | EMPTY_CONTENT | Empty content. See #getContentType() . |
public static final int | SIMPLE_CONTENT | Simple content. See #getContentType() . |
public static final int | ELEMENT_CONTENT | Element-only content. See #getContentType() . |
public static final int | MIXED_CONTENT | Mixed content. See #getContentType() . |
public static final int | FACET_LENGTH | xs:length facet |
public static final int | FACET_MIN_LENGTH | xs:minLength facet |
public static final int | FACET_MAX_LENGTH | xs:maxLength facet |
public static final int | FACET_MIN_EXCLUSIVE | xs:minExclusive facet |
public static final int | FACET_MIN_INCLUSIVE | xs:minInclusive facet |
public static final int | FACET_MAX_INCLUSIVE | xs:maxInclusive facet |
public static final int | FACET_MAX_EXCLUSIVE | xs:maxExclusive facet |
public static final int | FACET_TOTAL_DIGITS | xs:totalDigits facet |
public static final int | FACET_FRACTION_DIGITS | xs:fractionDigits facet |
public static final int | LAST_BASIC_FACET | |
public static final int | FACET_WHITE_SPACE | xs:whiteSpace facet - use #getWhiteSpaceRule instead |
public static final int | FACET_PATTERN | xs:pattern facet - use #matchPatternFacet instead |
public static final int | FACET_ENUMERATION | xs:enumeration facet - use #getEnumerationValues instead |
public static final int | LAST_FACET | The last ordinary facet code |
public static final int | PROPERTY_ORDERED |
|
public static final int | PROPERTY_BOUNDED |
|
public static final int | PROPERTY_CARDINALITY |
|
public static final int | PROPERTY_NUMERIC |
|
public static final int | LAST_PROPERTY | The last property code |
public static int | UNORDERED | Unordered. See #ordered . |
public static int | PARTIAL_ORDER | Partially ordered. See #ordered . |
public static int | TOTAL_ORDER | Totally ordered. See #ordered . |
public static final int | NOT_SIMPLE | Not a simple type or simple content. See #getSimpleVariety . |
public static final int | ATOMIC | Atomic type. See #getSimpleVariety |
public static final int | UNION | Union type. See #getSimpleVariety |
public static final int | LIST | Simple list type. See #getSimpleVariety |
public static final int | NOT_DECIMAL | Not a decimal restriction. See #getDecimalSize . |
public static final int | SIZE_BYTE | Fits in a byte. See #getDecimalSize . |
public static final int | SIZE_SHORT | Fits in a short. See #getDecimalSize . |
public static final int | SIZE_INT | Fits in an int. See #getDecimalSize . |
public static final int | SIZE_LONG | Fits in a long. See #getDecimalSize . |
public static final int | SIZE_BIG_INTEGER | Fits in a java.math.BigInteger . See #getDecimalSize . |
public static final int | SIZE_BIG_DECIMAL | Fits in a java.math.BigDecimal . See #getDecimalSize . |
public static final int | WS_UNSPECIFIED | Whitespace rule unspecified. See #getWhiteSpaceRule . |
public static final int | WS_PRESERVE | Whitespace preserved. See #getWhiteSpaceRule . |
public static final int | WS_REPLACE | Whitespace replaced by ordinary space. See #getWhiteSpaceRule . |
public static final int | WS_COLLAPSE | Whitespace collapsed and trimmed. See #getWhiteSpaceRule . |
Method from org.apache.xmlbeans.SchemaType Detail: |
---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns either #NOT_DECIMAL , #SIZE_BYTE , #SIZE_SHORT , #SIZE_INT , #SIZE_LONG , #SIZE_BIG_INTEGER , or #SIZE_BIG_DECIMAL . |
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns null if this type is not a list. |
|
|
|
Returns null if this is not an atomic type. |
|
|
|
|
|
|
|
Returns null if this type is not a union. |
Returns null if this type is not a union. |
Returns null if this type is not a union. |
Returns null if this type is not a union. |
|
|
|
|
|
|
|
|
|
|
Attribute types are generated for every global attribute. An attribute type is an unnamed complex type that contains exactly one attribute: we define these types, because they are the types of the "attribute documents" which contain the defined global attribute, and they all turn into Java types. (Named AttributenameAttribute.) |
|
|
|
Document types are generated for every global element. A document type is an unnamed complex type that contains exactly one element: we define these types, because they are the types of the "documents" which contain the defined global elements, and they all turn into Java types. (Named ElementnameDocument.) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|