java.lang.Object | |
↳ | org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl |
@xerces.internal
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
short | ANYATOMICTYPE_DT | ||||||||||
short | DAYTIMEDURATION_DT | ||||||||||
short | PRECISIONDECIMAL_DT | ||||||||||
short | YEARMONTHDURATION_DT |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.apache.xerces.impl.dv.XSSimpleType
| |||||||||||
From interface
org.apache.xerces.xs.XSSimpleTypeDefinition
| |||||||||||
From interface
org.apache.xerces.xs.XSTypeDefinition
| |||||||||||
From interface
org.w3c.dom.TypeInfo
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enumerationAnnotations | |||||||||||
fractionDigitsAnnotation | |||||||||||
lengthAnnotation | |||||||||||
maxExclusiveAnnotation | |||||||||||
maxInclusiveAnnotation | |||||||||||
maxLengthAnnotation | |||||||||||
minExclusiveAnnotation | |||||||||||
minInclusiveAnnotation | |||||||||||
minLengthAnnotation | |||||||||||
patternAnnotations | |||||||||||
totalDigitsAnnotation | |||||||||||
whiteSpaceAnnotation |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
If
| |||||||||||
Convenience method which checks if this type is derived from the given
ancestor type.
| |||||||||||
Convenience method which checks if this type is derived from the given
ancestorType . | |||||||||||
A list of actual enumeration values if it exists, otherwise an empty
ObjectList . | |||||||||||
[annotations]: a set of annotations for this simple type component if
it exists, otherwise an empty
XSObjectList . | |||||||||||
Convenience attribute.
| |||||||||||
{base type definition}: either a simple type definition or a complex
type definition.
| |||||||||||
Fundamental Facet: bounded.
| |||||||||||
Returns the closest built-in type category this type represents or
derived from.
| |||||||||||
[facets]: all facets defined on this type.
| |||||||||||
A list of enumeration type values (as a list of ShortList objects) if it exists, otherwise returns
null
| |||||||||||
A list of constraining facets if it exists, otherwise an empty
XSObjectList . | |||||||||||
For complex types the returned value is a bit combination of the subset
of {
DERIVATION_EXTENSION, DERIVATION_RESTRICTION }
corresponding to final set of this type or
DERIVATION_NONE . | |||||||||||
Fundamental Facet: cardinality.
| |||||||||||
[facets]: all defined facets for this type which are fixed.
| |||||||||||
If variety is
list the item type definition (an atomic or
union simple type definition) is available, otherwise
null . | |||||||||||
A list of enumeration values if it exists, otherwise an empty
StringList . | |||||||||||
Convenience method.
| |||||||||||
A list of pattern values if it exists, otherwise an empty
StringList . | |||||||||||
If variety is
union the list of member type definitions (a
non-empty sequence of simple type definitions) is available,
otherwise an empty XSObjectList . | |||||||||||
A list of enumeration and pattern constraining facets if it exists,
otherwise an empty
XSObjectList . | |||||||||||
The name of type
NCName , as defined in XML Namespaces, of
this declaration specified in the {name} property of the
component or null if the definition of this component
does not have a {name} property. | |||||||||||
The [target namespace] of this object, or
null if it is
unspecified. | |||||||||||
A namespace schema information item corresponding to the target
namespace of the component, if it is globally declared; or
null otherwise. | |||||||||||
Fundamental Facet: numeric.
| |||||||||||
Fundamental Facet: ordered.
| |||||||||||
return an ID representing the built-in primitive base type.
| |||||||||||
If variety is
atomic the primitive type definition (a
built-in primitive datatype definition or the simple ur-type
definition) is available, otherwise null . | |||||||||||
The
type of this object, i.e. | |||||||||||
Return whether this type definition is a simple type or complex type.
| |||||||||||
[variety]: one of {atomic, list, union} or absent.
| |||||||||||
Return the whitespace corresponding to this datatype.
| |||||||||||
Checks if a type is derived from another by restriction, given the name
and namespace.
| |||||||||||
Convenience method.
| |||||||||||
Check whether two actual values are equal.
| |||||||||||
{final}.
| |||||||||||
Convenience method.
| |||||||||||
Check whether this type is or is derived from ID.
| |||||||||||
validate an actual value against this DV
| |||||||||||
validate a value, and return the compiled form
| |||||||||||
validate a value, and return the compiled form
| |||||||||||
validate a value, and return the compiled form
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.xerces.impl.dv.XSSimpleType
| |||||||||||
From interface
org.apache.xerces.xs.XSObject
| |||||||||||
From interface
org.apache.xerces.xs.XSSimpleTypeDefinition
| |||||||||||
From interface
org.apache.xerces.xs.XSTypeDefinition
| |||||||||||
From interface
org.w3c.dom.TypeInfo
|
If
facets | the value of all the facets |
---|---|
presentFacet | bit combination value of the costraining facet constants which are present. |
fixedFacet | bit combination value of the costraining facet constants which are fixed. |
context | the validation context |
Convenience method which checks if this type is derived from the given ancestor type.
ancestorNS | An ancestor type namespace. |
---|---|
ancestorName | An ancestor type name. |
derivation | A bit combination representing a subset of {
DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
}. |
ancestorType
using only derivation methods from the derivationMethod
.
Convenience method which checks if this type is derived from the given
ancestorType
.
ancestor | An ancestor type definition. |
---|---|
derivation | A bit combination representing a subset of {
DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
}. |
ancestorType
using only derivation methods from the derivationMethod
.
A list of actual enumeration values if it exists, otherwise an empty
ObjectList
.
[annotations]: a set of annotations for this simple type component if
it exists, otherwise an empty XSObjectList
.
Convenience attribute. A boolean that specifies if the type definition is anonymous.
{base type definition}: either a simple type definition or a complex type definition.
Fundamental Facet: bounded.
Returns the closest built-in type category this type represents or
derived from. For example, if this simple type is a built-in derived
type integer the INTEGER_DV
is returned.
[facets]: all facets defined on this type. The value is a bit combination of FACET_XXX constants of all defined facets.
A list of enumeration type values (as a list of ShortList objects) if it exists, otherwise returns null
A list of constraining facets if it exists, otherwise an empty
XSObjectList
. Note: This method must not be used to
retrieve values for enumeration
and pattern
facets.
For complex types the returned value is a bit combination of the subset
of {DERIVATION_EXTENSION, DERIVATION_RESTRICTION
}
corresponding to final
set of this type or
DERIVATION_NONE
. For simple types the returned value is
a bit combination of the subset of {
DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
} corresponding to final
set of this type or
DERIVATION_NONE
.
Fundamental Facet: cardinality.
[facets]: all defined facets for this type which are fixed.
If variety is list
the item type definition (an atomic or
union simple type definition) is available, otherwise
null
.
A list of enumeration values if it exists, otherwise an empty
StringList
.
Convenience method. Returns a value of a single constraining facet for
this simple type definition. This method must not be used to retrieve
values for enumeration
and pattern
facets.
facetName | The name of the facet, i.e.
FACET_LENGTH, FACET_TOTALDIGITS (see
XSConstants ). To retrieve the value for a pattern or
an enumeration, see enumeration and
pattern . |
---|
facetName
for
this simple type definition or null
.
A list of pattern values if it exists, otherwise an empty
StringList
.
If variety is union
the list of member type definitions (a
non-empty sequence of simple type definitions) is available,
otherwise an empty XSObjectList
.
A list of enumeration and pattern constraining facets if it exists,
otherwise an empty XSObjectList
.
The name of type NCName
, as defined in XML Namespaces, of
this declaration specified in the {name}
property of the
component or null
if the definition of this component
does not have a {name}
property. For anonymous types,
the processor must construct and expose an anonymous type name that
is distinct from the name of every named type and the name of every
other anonymous type.
A namespace schema information item corresponding to the target
namespace of the component, if it is globally declared; or
null
otherwise.
Fundamental Facet: numeric.
Fundamental Facet: ordered.
return an ID representing the built-in primitive base type. REVISIT: This method is (currently) for internal use only. the constants returned from this method are not finalized yet. the names and values might change in the further.
If variety is atomic
the primitive type definition (a
built-in primitive datatype definition or the simple ur-type
definition) is available, otherwise null
.
The type
of this object, i.e.
ELEMENT_DECLARATION
.
Return whether this type definition is a simple type or complex type.
[variety]: one of {atomic, list, union} or absent.
Return the whitespace corresponding to this datatype.
DatatypeException |
---|
Checks if a type is derived from another by restriction, given the name and namespace. See: http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#TypeInfo-isDerivedFrom
ancestorNS | The namspace of the ancestor type declaration |
---|---|
ancestorName | The name of the ancestor type declaration |
derivationMethod | The derivation method |
Convenience method. [Facets]: check whether a facet is defined on this type.
facetName | The name of the facet. |
---|
Check whether two actual values are equal.
value1 | the first value |
---|---|
value2 | the second value |
{final}. For a complex type definition it is a subset of {extension, restriction}. For a simple type definition it is a subset of {extension, list, restriction, union}.
derivation | Extension, restriction, list, union constants
(defined in XSConstants ). |
---|
restriction
is in the final set,
otherwise false.
Convenience method. [Facets]: check whether a facet is defined and fixed on this type.
facetName | The name of the facet. |
---|
Check whether this type is or is derived from ID. REVISIT: this method makes ID special, which is not a good design. but since ID is not a primitive, there doesn't seem to be a clean way of doing it except to define special method like this.
validate an actual value against this DV
context | the validation context |
---|---|
validatedInfo | used to provide the actual value and member types |
validate a value, and return the compiled form
content | the string value that needs to be validated |
---|---|
context | the validation context |
validatedInfo | used to store validation result |
validate a value, and return the compiled form
content | the string value that needs to be validated |
---|---|
context | the validation context |
validatedInfo | used to store validation result |
validate a value, and return the compiled form