|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SchemaType
Represents a schema type.
SchemaType is the metadata "type" class for XmlObject
, and it plays the
analogous role for XmlObject
that Class
plays for
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:
XmlObject.type
(corresponding to xs:anyType) and XmlBeans.NO_TYPE
,
respectively. The first type is a base type of all other
types. The other type indicates the absence of type information
and, at least in set-theoretic terms, is a subtype of all other types.
XmlAnySimpleType.type
,
corresponding to xs:anySimpleType. Only XmlObject.type and
XmlAnySimpleType.type return true
for isURType()
, and
only XmlBeans.NO_TYPE returns true
for isNoType()
.
isDocumentType()
and isAttributeType()
. Other
than their anonymity (lack of a type name) and their appearance
only at the root of an instance, they are otherwise just like
ordinary complex types.
isSimpleType()
.
Complex types are consdered to be all the types that are
not simple.
getSimpleVariety()
.
It will return either ATOMIC
, LIST
, or
UNION
.
ATOMIC
simple type is always based on one of the
20 built-in primitive schema types. You can determine
the underlying primitive type for an atomic simple type
by calling getPrimitiveType()
. An atomic type
may add facet restrictions on top of the primitive type,
and these facets can be explored using getFacet(int)
,
getWhiteSpaceRule()
, matchPatternFacet(java.lang.String)
,
getEnumerationValues()
, and related methods.
LIST
simple type is always based on another non-list
simple type. The underlying list item type can be obtained
by using getListItemType()
.
UNION
simple type is always composed out of a number of
other simple types. The direct members of the union can
be obtained by getUnionMemberTypes()
. When unions
consist of other unions, it is useful to know useful to know
the "leaves of the union tree", so the
set of non-union types making up the union can be obtained
by getUnionConstituentTypes()
. The closure of the
entire "union tree" is getUnionSubTypes()
(this includes
the type itself). For
simple unions that do not consist of other unions, all three
of these sets are the same.
getContentType()
. This will return
EMPTY_CONTENT
, SIMPLE_CONTENT
,
ELEMENT_CONTENT
, or MIXED_CONTENT
.
EMPTY_CONTENT
, the content model will be null.
SIMPLE_CONTENT
, then it will extend the
simple type that describes the content. In addition, the type
may impose additional simple type facet restrictions; these can
be determined in the same way they are for a simple type.
ELEMENT_CONTENT
or MIXED_CONTENT
, then
the detailed content model can be determined by examining
the particle tree (which may be null for MIXED_CONTENT).
The particle tree can be obtained via getContentModel()
.
getElementProperties()
,
getAttributeProperties()
, and related methods rather than
examining the particle tree and attribute model directly.
SchemaTypeLoader
,
XmlObject.schemaType()
,
SimpleValue.instanceType()
Nested Class Summary | |
---|---|
static class |
SchemaType.Ref
Used to allow on-demand loading of types. |
Field Summary | |
---|---|
static int |
ATOMIC
Atomic type. |
static int |
BTC_ANY_SIMPLE
xs:anySimpleType, aka XmlAnySimpleType.type |
static int |
BTC_ANY_TYPE
xs:anyType, aka XmlObject.type |
static int |
BTC_ANY_URI
xs:anyURI, aka XmlAnyURI.type |
static int |
BTC_BASE_64_BINARY
xs:base64Binary, aka XmlBase64Binary.type |
static int |
BTC_BOOLEAN
xs:boolean, aka XmlBoolean.type |
static int |
BTC_BYTE
xs:byte, aka XmlByte.type |
static int |
BTC_DATE
xs:date, aka XmlDate.type |
static int |
BTC_DATE_TIME
xs:dateTime, aka XmlDateTime.type |
static int |
BTC_DECIMAL
xs:decimal, aka XmlDecimal.type |
static int |
BTC_DOUBLE
xs:double, aka XmlDouble.type |
static int |
BTC_DURATION
xs:duration, aka XmlDuration.type |
static int |
BTC_ENTITIES
xs:ENTITIES, aka XmlENTITIES.type |
static int |
BTC_ENTITY
xs:ENTITY, aka XmlENTITY.type |
static int |
BTC_FIRST_PRIMITIVE
The primitive types have codes between BTC_FIRST_PRIMITIVE and BTC_LAST_PRIMITIVE inclusive |
static int |
BTC_FLOAT
xs:float, aka XmlFloat.type |
static int |
BTC_G_DAY
xs:gDay, aka XmlGDay.type |
static int |
BTC_G_MONTH
xs:gMonth, aka XmlGMonth.type |
static int |
BTC_G_MONTH_DAY
xs:gMonthDay, aka XmlGMonthDay.type |
static int |
BTC_G_YEAR
xs:gYear, aka XmlGYear.type |
static int |
BTC_G_YEAR_MONTH
xs:gYearMonth, aka XmlGYearMonth.type |
static int |
BTC_HEX_BINARY
xs:hexBinary, aka XmlBase64Binary.type |
static int |
BTC_ID
xs:ID, aka XmlID.type |
static int |
BTC_IDREF
xs:IDREF, aka XmlIDREF.type |
static int |
BTC_IDREFS
xs:IDREFS, aka XmlIDREFS.type |
static int |
BTC_INT
xs:int, aka XmlInt.type |
static int |
BTC_INTEGER
xs:integer, aka XmlInteger.type |
static int |
BTC_LANGUAGE
xs:language, aka XmlLanguage.type |
static int |
BTC_LAST_BUILTIN
|
static int |
BTC_LAST_PRIMITIVE
The primitive types have codes between BTC_FIRST_PRIMITIVE and BTC_LAST_PRIMITIVE inclusive |
static int |
BTC_LONG
xs:long, aka XmlLong.type |
static int |
BTC_NAME
xs:Name, aka XmlName.type |
static int |
BTC_NCNAME
xs:NCName, aka XmlNCName.type |
static int |
BTC_NEGATIVE_INTEGER
xs:NegativeInteger, aka XmlNegativeInteger.type |
static int |
BTC_NMTOKEN
xs:NMTOKEN, aka XmlNMTOKEN.type |
static int |
BTC_NMTOKENS
xs:NMTOKENS, aka XmlNMTOKENS.type |
static int |
BTC_NON_NEGATIVE_INTEGER
xs:nonNegativeInteger, aka XmlNonNegativeInteger.type |
static int |
BTC_NON_POSITIVE_INTEGER
xs:nonPositiveInteger, aka XmlNonPositiveInteger.type |
static int |
BTC_NORMALIZED_STRING
xs:normalizedString, aka XmlNormalizedString.type |
static int |
BTC_NOT_BUILTIN
Not a builtin type |
static int |
BTC_NOTATION
xs:NOTATION, aka XmlNOTATION.type |
static int |
BTC_POSITIVE_INTEGER
xs:positiveInteger, aka XmlPositiveInteger.type |
static int |
BTC_QNAME
xs:QName, aka XmlQName.type |
static int |
BTC_SHORT
xs:short, aka XmlShort.type |
static int |
BTC_STRING
xs:string, aka XmlString.type |
static int |
BTC_TIME
xs:time, aka XmlTime.type |
static int |
BTC_TOKEN
xs:token, aka XmlToken.type |
static int |
BTC_UNSIGNED_BYTE
xs:unsignedByte, aka XmlUnsignedByte.type |
static int |
BTC_UNSIGNED_INT
xs:unsignedInt, aka XmlUnsignedInt.type |
static int |
BTC_UNSIGNED_LONG
xs:unsignedLong, aka XmlUnsignedLong.type |
static int |
BTC_UNSIGNED_SHORT
xs:unsignedShort, aka XmlUnsignedShort.type |
static int |
DT_EXTENSION
Derived by extension. |
static int |
DT_NOT_DERIVED
Not derived. |
static int |
DT_RESTRICTION
Derived by restriction. |
static int |
ELEMENT_CONTENT
Element-only content. |
static int |
EMPTY_CONTENT
Empty content. |
static int |
FACET_ENUMERATION
xs:enumeration facet - use getEnumerationValues() instead |
static int |
FACET_FRACTION_DIGITS
xs:fractionDigits facet |
static int |
FACET_LENGTH
xs:length facet |
static int |
FACET_MAX_EXCLUSIVE
xs:maxExclusive facet |
static int |
FACET_MAX_INCLUSIVE
xs:maxInclusive facet |
static int |
FACET_MAX_LENGTH
xs:maxLength facet |
static int |
FACET_MIN_EXCLUSIVE
xs:minExclusive facet |
static int |
FACET_MIN_INCLUSIVE
xs:minInclusive facet |
static int |
FACET_MIN_LENGTH
xs:minLength facet |
static int |
FACET_PATTERN
xs:pattern facet - use matchPatternFacet(java.lang.String) instead |
static int |
FACET_TOTAL_DIGITS
xs:totalDigits facet |
static int |
FACET_WHITE_SPACE
xs:whiteSpace facet - use getWhiteSpaceRule() instead |
static int |
LAST_BASIC_FACET
|
static int |
LAST_FACET
The last ordinary facet code |
static int |
LAST_PROPERTY
The last property code |
static int |
LIST
Simple list type. |
static int |
MIXED_CONTENT
Mixed content. |
static int |
NOT_COMPLEX_TYPE
Not a complex type. |
static int |
NOT_DECIMAL
Not a decimal restriction. |
static int |
NOT_SIMPLE
Not a simple type or simple content. |
static int |
PARTIAL_ORDER
Partially ordered. |
static int |
PROPERTY_BOUNDED
|
static int |
PROPERTY_CARDINALITY
|
static int |
PROPERTY_NUMERIC
|
static int |
PROPERTY_ORDERED
|
static int |
SIMPLE_CONTENT
Simple content. |
static int |
SIZE_BIG_DECIMAL
Fits in a BigDecimal . |
static int |
SIZE_BIG_INTEGER
Fits in a BigInteger . |
static int |
SIZE_BYTE
Fits in a byte. |
static int |
SIZE_INT
Fits in an int. |
static int |
SIZE_LONG
Fits in a long. |
static int |
SIZE_SHORT
Fits in a short. |
static int |
TOTAL_ORDER
Totally ordered. |
static int |
UNION
Union type. |
static int |
UNORDERED
Unordered. |
static int |
WS_COLLAPSE
Whitespace collapsed and trimmed. |
static int |
WS_PRESERVE
Whitespace preserved. |
static int |
WS_REPLACE
Whitespace replaced by ordinary space. |
static int |
WS_UNSPECIFIED
Whitespace rule unspecified. |
Fields inherited from interface org.apache.xmlbeans.SchemaComponent |
---|
ANNOTATION, ATTRIBUTE, ATTRIBUTE_GROUP, ELEMENT, IDENTITY_CONSTRAINT, MODEL_GROUP, NOTATION, TYPE |
Method Summary | |
---|---|
boolean |
blockExtension()
True if extensions of this type cannot be substituted for this type |
boolean |
blockRestriction()
True if restrictions of this type cannot be substituted for this type |
SchemaStringEnumEntry |
enumEntryForString(java.lang.String s)
Returns the string enum entry corresponding to the given enumerated string, or null if there is no match or this type is not a string enumeration. |
StringEnumAbstractBase |
enumForInt(int i)
Returns the string enum value corresponding to the given enumerated string, or null if there is no match or this type is not a string enumeration. |
StringEnumAbstractBase |
enumForString(java.lang.String s)
Returns the string enum value corresponding to the given enumerated string, or null if there is no match or this type is not a string enumeration. |
boolean |
finalExtension()
True if other types cannot extend this type (only for complex types) |
boolean |
finalList()
True if list derivation of this type is prohibited (only for simple types) |
boolean |
finalRestriction()
True if other types cannot restrict this type |
boolean |
finalUnion()
True if union derivation of this type is prohibited (only for simple types) |
SchemaType[] |
getAnonymousTypes()
The array of inner (anonymous) types defined within this type. |
int |
getAnonymousUnionMemberOrdinal()
For anonymous types defined inside a union only: gets the integer indicating the declaration order of this type within the outer union type, or zero if this is not applicable. |
SchemaAttributeModel |
getAttributeModel()
Returns the attribute model for this complex type (with simple or complex content). |
SchemaProperty[] |
getAttributeProperties()
Returns all the SchemaProperties corresponding to attributes. |
SchemaProperty |
getAttributeProperty(javax.xml.namespace.QName attrName)
Returns a SchemaProperty corresponding to an attribute within this complex type by looking up the attribute name. |
SchemaType |
getAttributeType(javax.xml.namespace.QName eltName,
SchemaTypeLoader wildcardTypeLoader)
Returns the type of an attribute based on the attribute name and the type system within which (wildcard) names are resolved. |
javax.xml.namespace.QName |
getAttributeTypeAttributeName()
Returns the attribute qname if this is a attribute type, or null otherwise. |
SchemaType |
getBaseEnumType()
If this is a string enumeration, returns the most basic base schema type that this enuemration is based on. |
SchemaType |
getBaseType()
Returns base restriction or extension type. |
int |
getBuiltinTypeCode()
Returns an integer for builtin types that can be used for quick comparison. |
SchemaType |
getCommonBaseType(SchemaType type)
Returns common base type with the given type. |
SchemaField |
getContainerField()
The parent schema element. |
SchemaType |
getContentBasedOnType()
For complex types with simple content returns the base type for this type's content. |
SchemaParticle |
getContentModel()
Returns the complex content model for this complex type (with complex content). |
int |
getContentType()
Returns EMPTY_CONTENT , SIMPLE_CONTENT , ELEMENT_CONTENT , or
MIXED_CONTENT for complex types. |
int |
getDecimalSize()
For atomic numeric restrictions of decimal only: the numeric size category. |
int |
getDerivationType()
Returns an integer for the derivation type, either DT_EXTENSION , DT_RESTRICTION , DT_NOT_DERIVED . |
SchemaProperty[] |
getDerivedProperties()
Returns the SchemaProperties defined by this complex type, exclusive of the base type (if any). |
javax.xml.namespace.QName |
getDocumentElementName()
Returns the document element name if this is a document type, or null otherwise. |
SchemaProperty[] |
getElementProperties()
Returns all the SchemaProperties corresponding to elements. |
SchemaProperty |
getElementProperty(javax.xml.namespace.QName eltName)
Returns a SchemaProperty corresponding to an element within this complex type by looking up the element name. |
SchemaTypeElementSequencer |
getElementSequencer()
Returns a SchemaTypeElementSequencer object, which can then
be used to validate complex content inside this element. |
SchemaType |
getElementType(javax.xml.namespace.QName eltName,
javax.xml.namespace.QName xsiType,
SchemaTypeLoader wildcardTypeLoader)
Returns the type of a child element based on the element name and an xsi:type attribute (and the type system within which names are resolved). |
XmlAnySimpleType[] |
getEnumerationValues()
Returns the array of valid objects from the enumeration facet, null if no enumeration defined. |
java.lang.Class |
getEnumJavaClass()
The Java class corresponding to the enumeration type for this schema type, if applicable (or null if not an enumeration). |
XmlAnySimpleType |
getFacet(int facetCode)
Returns the value of the given facet, or null if none is set. |
java.lang.String |
getFullJavaImplName()
The fully-qualified Java type name of the implementation class. |
java.lang.String |
getFullJavaName()
The fully-qualified Java type name of the class. |
java.lang.Class |
getJavaClass()
The Java class corresponding to this schema type. |
SchemaType |
getListItemType()
For list types only: get the item type. |
javax.xml.namespace.QName |
getName()
The name used to describe the type in the schema. |
SchemaType |
getOuterType()
The outer schema type. |
java.lang.String[] |
getPatterns()
True |
SchemaType |
getPrimitiveType()
For atomic types only: get the primitive type underlying this one. |
SchemaProperty[] |
getProperties()
Returns all the SchemaProperties within this complex type, elements followed by attributes. |
SchemaType.Ref |
getRef()
Retruns a SchemaType.Ref pointing to this schema type itself. |
java.lang.String |
getShortJavaImplName()
The short unqualfiied Java name for the implementation class. |
java.lang.String |
getShortJavaName()
The short unqualfiied Java name for the class. |
int |
getSimpleVariety()
Returns whether the simple type is ATOMIC, UNION, or LIST. |
SchemaStringEnumEntry[] |
getStringEnumEntries()
Returns the array of SchemaStringEnumEntries for this type: this array includes information about the java constant names used for each string enum entry. |
SchemaTypeSystem |
getTypeSystem()
Returns the SchemaTypeLoader in which this type was defined. |
SchemaType |
getUnionCommonBaseType()
For union types only: get the most specific common base type of the constituent member types. |
SchemaType[] |
getUnionConstituentTypes()
For union types only: get the constituent member types. |
SchemaType[] |
getUnionMemberTypes()
For union types only: get the shallow member types. |
SchemaType[] |
getUnionSubTypes()
For union types only: gets the full tree of member types. |
java.lang.Object |
getUserData()
Returns user-specific information. |
int |
getWhiteSpaceRule()
For nonunion simple types: get the whitespace rule. |
boolean |
hasAllContent()
True if the complex content model for this complex type is an "all" group. |
boolean |
hasAttributeWildcards()
True if this type permits wildcard attributes. |
boolean |
hasElementWildcards()
True if this type permits element wildcards. |
boolean |
hasPatternFacet()
True if there are regex pattern facents |
boolean |
hasStringEnumValues()
True if this is a string enum where an integer is assigned to each enumerated value. |
boolean |
isAbstract()
True if this type cannot be used directly in instances |
boolean |
isAnonymousType()
True if the Xsd type is anonymous (i.e., not top-level). |
boolean |
isAssignableFrom(SchemaType type)
True if the specified type derives from this type (or if it is the same type). |
boolean |
isAttributeType()
True if this is a attribute type. |
boolean |
isBounded()
True if bounded. |
boolean |
isBuiltinType()
True for any of the 40+ built-in types. |
boolean |
isCompiled()
True if this schema type was compiled to have a corresponding Java class. |
boolean |
isDocumentType()
True if this is a document type. |
boolean |
isFacetFixed(int facetCode)
True if the given facet is fixed. |
boolean |
isFinite()
True if finite. |
boolean |
isNoType()
True for the type object that represents a the absence of a determined type. |
boolean |
isNumeric()
True if numeric. |
boolean |
isOrderSensitive()
True if particles have same defaults, nillability, etc, that are invariant when order changes. |
boolean |
isPrimitiveType()
True for any of the 20 primitive types (plus anySimpleType) |
boolean |
isSimpleType()
True for the anySimpleType and any restrictions/unions/lists. |
boolean |
isSkippedAnonymousType()
True if this anonymous type has no corresponding Java type. |
boolean |
isURType()
True for anyType and anySimpleType. |
boolean |
isValidSubstitution(javax.xml.namespace.QName name)
For document types, true if the given name can be substituted for the document element name. |
boolean |
matchPatternFacet(java.lang.String s)
True if the given string matches the pattern facets. |
XmlAnySimpleType |
newValue(java.lang.Object v)
Creates an immutable simple type value that does not reside in a tree. |
int |
ordered()
True if ordered. |
QNameSet |
qnameSetForWildcardAttributes()
Returns a QNameSet of attributes that may exist in wildcard buchets and are not explicitly defined in this schema type. |
QNameSet |
qnameSetForWildcardElements()
Returns a QNameSet of elements that may exist in wildcard buchets and are not explicitly defined in this schema type. |
Methods inherited from interface org.apache.xmlbeans.SchemaComponent |
---|
getComponentRef, getComponentType, getSourceName |
Methods inherited from interface org.apache.xmlbeans.SchemaAnnotated |
---|
getAnnotation |
Field Detail |
---|
static final int DT_NOT_DERIVED
getDerivationType()
.
static final int DT_RESTRICTION
getDerivationType()
.
static final int DT_EXTENSION
getDerivationType()
.
static final int BTC_NOT_BUILTIN
static final int BTC_ANY_TYPE
XmlObject.type
static final int BTC_FIRST_PRIMITIVE
static final int BTC_ANY_SIMPLE
XmlAnySimpleType.type
static final int BTC_BOOLEAN
XmlBoolean.type
static final int BTC_BASE_64_BINARY
XmlBase64Binary.type
static final int BTC_HEX_BINARY
XmlBase64Binary.type
static final int BTC_ANY_URI
XmlAnyURI.type
static final int BTC_QNAME
XmlQName.type
static final int BTC_NOTATION
XmlNOTATION.type
static final int BTC_FLOAT
XmlFloat.type
static final int BTC_DOUBLE
XmlDouble.type
static final int BTC_DECIMAL
XmlDecimal.type
static final int BTC_STRING
XmlString.type
static final int BTC_DURATION
XmlDuration.type
static final int BTC_DATE_TIME
XmlDateTime.type
static final int BTC_TIME
XmlTime.type
static final int BTC_DATE
XmlDate.type
static final int BTC_G_YEAR_MONTH
XmlGYearMonth.type
static final int BTC_G_YEAR
XmlGYear.type
static final int BTC_G_MONTH_DAY
XmlGMonthDay.type
static final int BTC_G_DAY
XmlGDay.type
static final int BTC_G_MONTH
XmlGMonth.type
static final int BTC_LAST_PRIMITIVE
static final int BTC_INTEGER
XmlInteger.type
static final int BTC_LONG
XmlLong.type
static final int BTC_INT
XmlInt.type
static final int BTC_SHORT
XmlShort.type
static final int BTC_BYTE
XmlByte.type
static final int BTC_NON_POSITIVE_INTEGER
XmlNonPositiveInteger.type
static final int BTC_NEGATIVE_INTEGER
XmlNegativeInteger.type
static final int BTC_NON_NEGATIVE_INTEGER
XmlNonNegativeInteger.type
static final int BTC_POSITIVE_INTEGER
XmlPositiveInteger.type
static final int BTC_UNSIGNED_LONG
XmlUnsignedLong.type
static final int BTC_UNSIGNED_INT
XmlUnsignedInt.type
static final int BTC_UNSIGNED_SHORT
XmlUnsignedShort.type
static final int BTC_UNSIGNED_BYTE
XmlUnsignedByte.type
static final int BTC_NORMALIZED_STRING
XmlNormalizedString.type
static final int BTC_TOKEN
XmlToken.type
static final int BTC_NAME
XmlName.type
static final int BTC_NCNAME
XmlNCName.type
static final int BTC_LANGUAGE
XmlLanguage.type
static final int BTC_ID
XmlID.type
static final int BTC_IDREF
XmlIDREF.type
static final int BTC_IDREFS
XmlIDREFS.type
static final int BTC_ENTITY
XmlENTITY.type
static final int BTC_ENTITIES
XmlENTITIES.type
static final int BTC_NMTOKEN
XmlNMTOKEN.type
static final int BTC_NMTOKENS
XmlNMTOKENS.type
static final int BTC_LAST_BUILTIN
static final int NOT_COMPLEX_TYPE
getContentType()
.
static final int EMPTY_CONTENT
getContentType()
.
static final int SIMPLE_CONTENT
getContentType()
.
static final int ELEMENT_CONTENT
getContentType()
.
static final int MIXED_CONTENT
getContentType()
.
static final int FACET_LENGTH
static final int FACET_MIN_LENGTH
static final int FACET_MAX_LENGTH
static final int FACET_MIN_EXCLUSIVE
static final int FACET_MIN_INCLUSIVE
static final int FACET_MAX_INCLUSIVE
static final int FACET_MAX_EXCLUSIVE
static final int FACET_TOTAL_DIGITS
static final int FACET_FRACTION_DIGITS
static final int LAST_BASIC_FACET
static final int FACET_WHITE_SPACE
getWhiteSpaceRule()
instead
static final int FACET_PATTERN
matchPatternFacet(java.lang.String)
instead
static final int FACET_ENUMERATION
getEnumerationValues()
instead
static final int LAST_FACET
static final int PROPERTY_ORDERED
ordered()
,
Constant Field Valuesstatic final int PROPERTY_BOUNDED
isBounded()
,
Constant Field Valuesstatic final int PROPERTY_CARDINALITY
isFinite()
,
Constant Field Valuesstatic final int PROPERTY_NUMERIC
isNumeric()
,
Constant Field Valuesstatic final int LAST_PROPERTY
static final int UNORDERED
ordered()
.
static final int PARTIAL_ORDER
ordered()
.
static final int TOTAL_ORDER
ordered()
.
static final int NOT_SIMPLE
getSimpleVariety()
.
static final int ATOMIC
getSimpleVariety()
static final int UNION
getSimpleVariety()
static final int LIST
getSimpleVariety()
static final int NOT_DECIMAL
getDecimalSize()
.
static final int SIZE_BYTE
getDecimalSize()
.
static final int SIZE_SHORT
getDecimalSize()
.
static final int SIZE_INT
getDecimalSize()
.
static final int SIZE_LONG
getDecimalSize()
.
static final int SIZE_BIG_INTEGER
BigInteger
. See getDecimalSize()
.
static final int SIZE_BIG_DECIMAL
BigDecimal
. See getDecimalSize()
.
static final int WS_UNSPECIFIED
getWhiteSpaceRule()
.
static final int WS_PRESERVE
getWhiteSpaceRule()
.
static final int WS_REPLACE
getWhiteSpaceRule()
.
static final int WS_COLLAPSE
getWhiteSpaceRule()
.
Method Detail |
---|
javax.xml.namespace.QName getName()
getName
in interface SchemaComponent
SchemaField getContainerField()
boolean isDocumentType()
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.)
boolean isAttributeType()
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.)
javax.xml.namespace.QName getDocumentElementName()
javax.xml.namespace.QName getAttributeTypeAttributeName()
SchemaType getOuterType()
boolean isSkippedAnonymousType()
boolean isCompiled()
java.lang.String getFullJavaName()
java.lang.String getShortJavaName()
java.lang.String getFullJavaImplName()
java.lang.String getShortJavaImplName()
java.lang.Class getJavaClass()
java.lang.Class getEnumJavaClass()
java.lang.Object getUserData()
SchemaBookmark
boolean isAnonymousType()
boolean isBuiltinType()
boolean isSimpleType()
SchemaType getBaseType()
SchemaType getCommonBaseType(SchemaType type)
boolean isAssignableFrom(SchemaType type)
int getDerivationType()
DT_EXTENSION
, DT_RESTRICTION
, DT_NOT_DERIVED
.
int getBuiltinTypeCode()
boolean isURType()
boolean isNoType()
SchemaTypeSystem getTypeSystem()
getTypeSystem
in interface SchemaComponent
boolean isAbstract()
boolean finalExtension()
boolean finalRestriction()
boolean finalList()
boolean finalUnion()
boolean blockExtension()
boolean blockRestriction()
int getContentType()
EMPTY_CONTENT
, SIMPLE_CONTENT
, ELEMENT_CONTENT
, or
MIXED_CONTENT
for complex types. For noncomplex types, returns
NOT_COMPLEX_TYPE
.
SchemaType getContentBasedOnType()
SchemaTypeElementSequencer getElementSequencer()
SchemaTypeElementSequencer
object, which can then
be used to validate complex content inside this element. This is useful
for example for trying out different names and see which one would be
valid as a child of this element.
SchemaType[] getAnonymousTypes()
SchemaProperty getElementProperty(javax.xml.namespace.QName eltName)
SchemaProperty[] getElementProperties()
SchemaProperty getAttributeProperty(javax.xml.namespace.QName attrName)
SchemaProperty[] getAttributeProperties()
SchemaProperty[] getProperties()
SchemaProperty[] getDerivedProperties()
SchemaAttributeModel getAttributeModel()
boolean hasAttributeWildcards()
SchemaParticle getContentModel()
boolean hasElementWildcards()
boolean isValidSubstitution(javax.xml.namespace.QName name)
boolean hasAllContent()
boolean isOrderSensitive()
SchemaType getElementType(javax.xml.namespace.QName eltName, javax.xml.namespace.QName xsiType, SchemaTypeLoader wildcardTypeLoader)
SchemaType getAttributeType(javax.xml.namespace.QName eltName, SchemaTypeLoader wildcardTypeLoader)
XmlAnySimpleType getFacet(int facetCode)
boolean isFacetFixed(int facetCode)
int ordered()
UNORDERED
,
PARTIAL_ORDER
, or TOTAL_ORDER
.
boolean isBounded()
boolean isFinite()
boolean isNumeric()
boolean hasPatternFacet()
java.lang.String[] getPatterns()
boolean matchPatternFacet(java.lang.String s)
XmlAnySimpleType[] getEnumerationValues()
boolean hasStringEnumValues()
SchemaType getBaseEnumType()
SchemaStringEnumEntry[] getStringEnumEntries()
SchemaStringEnumEntry enumEntryForString(java.lang.String s)
StringEnumAbstractBase enumForString(java.lang.String s)
StringEnumAbstractBase enumForInt(int i)
boolean isPrimitiveType()
int getSimpleVariety()
NOT_SIMPLE
, ATOMIC
, UNION
,
or LIST
.
SchemaType getPrimitiveType()
Returns null if this is not an atomic type.
int getDecimalSize()
Returns either NOT_DECIMAL
,
SIZE_BYTE
, SIZE_SHORT
, SIZE_INT
,
SIZE_LONG
, SIZE_BIG_INTEGER
, or
SIZE_BIG_DECIMAL
.
SchemaType[] getUnionMemberTypes()
Returns null if this type is not a union.
SchemaType[] getUnionSubTypes()
Returns null if this type is not a union.
SchemaType[] getUnionConstituentTypes()
Returns null if this type is not a union.
SchemaType getUnionCommonBaseType()
Returns null if this type is not a union.
int getAnonymousUnionMemberOrdinal()
SchemaType getListItemType()
Returns null if this type is not a list.
int getWhiteSpaceRule()
WS_PRESERVE
, WS_REPLACE
, or
WS_COLLAPSE
. Returns WS_UNSPECIFIED
for unions and complex types.
XmlAnySimpleType newValue(java.lang.Object v)
SchemaType.Ref getRef()
QNameSet qnameSetForWildcardElements()
QNameSet qnameSetForWildcardAttributes()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |