| Modifier and Type | Field and Description |
|---|---|
| protected final XSSimpleType |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | applyFacets(XSFacets
the value of all the facets facets, short bit combination value of the costraining facet
constants which are present. presentFacet, short bit combination value of the costraining facet
constants which are fixed. fixedFacet, ValidationContext the validation context context)Implements org. |
| public boolean | derivedFrom(String
An ancestor type namespace. namespace, String An ancestor type name. name, short A bit combination representing a subset of {
derivationMethod)DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
}.Implements org. |
| public boolean | derivedFromType(XSTypeDefinition
An ancestor type definition. ancestorType, short A bit combination representing a subset of {
derivationMethod)DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
}.Implements org. ancestorType.
|
| public XSObjectList | getAnnotations()
Implements org. XSObjectList.
|
| public boolean | |
| public XSTypeDefinition | getBaseType()
Implements org. |
| public boolean | getBounded()
Implements org. |
| public short | getBuiltInKind()
Implements org. |
| public short | getDefinedFacets()
Implements org. |
| public XSObject | getFacet(int facetType)
Implements org. |
| public XSObjectList | getFacets()
Implements org. XSObjectList.
|
| public short | getFinal()
Implements org. DERIVATION_EXTENSION, DERIVATION_RESTRICTION}
corresponding to final set of this type or
DERIVATION_NONE.
|
| public boolean | getFinite()
Implements org. |
| public short | getFixedFacets()
Implements org. |
| public XSSimpleTypeDefinition | getItemType()
Implements org. list the item type definition (an atomic or
union simple type definition) is available, otherwise
null.
|
| public StringList | getLexicalEnumeration()
Implements org. StringList.
|
| public String | getLexicalFacetValue(short
The name of the facet, i.e.
facetName)FACET_LENGTH, FACET_TOTALDIGITS.
To retrieve the value for a pattern or
an enumeration, see enumeration and
pattern.Implements org. |
| public StringList | getLexicalPattern()
Implements org. StringList.
|
| public XSObjectList | getMemberTypes()
Implements org. union the list of member type definitions (a
non-empty sequence of simple type definitions) is available,
otherwise an empty XSObjectList.
|
| public XSObjectList | getMultiValueFacets()
Implements org. XSObjectList.
|
| public String | getName()
Implements org. 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.
|
| public String | getNamespace()
Implements org. null if it is
unspecified.
|
| public XSNamespaceItem | getNamespaceItem()
Implements org. null otherwise.
|
| public boolean | getNumeric()
Implements org. |
| public short | getOrdered()
Implements org. |
| public short | getPrimitiveKind()
Implements org. |
| public XSSimpleTypeDefinition | getPrimitiveType()
Implements org. atomic the primitive type definition (a
built-in primitive datatype definition or the simple ur-type
definition) is available, otherwise null.
|
| public short | getType()
Implements org. type of this object, i.e.
ELEMENT_DECLARATION.
|
| public short | getTypeCategory()
Implements org. |
| public short | getVariety()
Implements org. |
| public short | getWhitespace()
Implements org. |
| public XSSimpleType | |
| public boolean | isDefinedFacet(short
The name of the facet. facetName)Implements org. |
| public boolean | isEqual(Object
the first value value1, Object the second value value2)Implements org. |
| public boolean | isFinal(short
Extension, restriction, list, union constants
(defined in restriction)XSConstants).Implements org. |
| public boolean | isFixedFacet(short
The name of the facet. facetName)Implements org. |
| public boolean | isIDType()
Implements org. |
| public String | |
| public void | validate(ValidationContext
the validation context context, ValidatedInfo used to provide the actual value and member types validatedInfo)Implements org. |
| public Object | validate(String
the string value that needs to be validated content, ValidationContext the validation context context, ValidatedInfo used to store validation result validatedInfo)Implements org. |
| public Object | validate(Object
the string value that needs to be validated content, ValidationContext the validation context context, ValidatedInfo used to store validation result validatedInfo)Implements org. |
| type | back to summary |
|---|---|
| protected final XSSimpleType type | |
| XSSimpleTypeDelegate | back to summary |
|---|---|
| public XSSimpleTypeDelegate(XSSimpleType type) | |
| applyFacets | back to summary |
|---|---|
| public void applyFacets(XSFacets facets, short presentFacet, short fixedFacet, ValidationContext context) throws InvalidDatatypeFacetException Implements org. Doc from org. If this type is created from restriction, then some facets can be applied
to the simple type.
| |
| derivedFrom | back to summary |
|---|---|
| public boolean derivedFrom(String namespace, String name, short derivationMethod) Implements org. Doc from org. Convenience method which checks if this type is derived from the given ancestor type.
| |
| derivedFromType | back to summary |
|---|---|
| public boolean derivedFromType(XSTypeDefinition ancestorType, short derivationMethod) Implements org. Doc from org. Convenience method which checks if this type is derived from the given
| |
| getAnnotations | back to summary |
|---|---|
| public XSObjectList getAnnotations() Implements org. Doc from org. A sequence of [annotations] or an empty | |
| getAnonymous | back to summary |
|---|---|
| public boolean getAnonymous() Implements org. Doc from org. Convenience attribute. A boolean that specifies if the type definition is anonymous. | |
| getBaseType | back to summary |
|---|---|
| public XSTypeDefinition getBaseType() Implements org. Doc from org. {base type definition}: either a simple type definition or a complex type definition. | |
| getBounded | back to summary |
|---|---|
| public boolean getBounded() Implements org. Doc from org. Fundamental Facet: bounded. | |
| getBuiltInKind | back to summary |
|---|---|
| public short getBuiltInKind() Implements org. Doc from org. 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 | |
| getDefinedFacets | back to summary |
|---|---|
| public short getDefinedFacets() Implements org. Doc from org. [facets]: all facets defined on this type. The value is a bit combination of FACET_XXX constants of all defined facets. | |
| getFacet | back to summary |
|---|---|
| public XSObject getFacet(int facetType) Implements org. Doc from org. A constraining facet object. An instance of XSFacet or XSMultiValueFacet. | |
| getFacets | back to summary |
|---|---|
| public XSObjectList getFacets() Implements org. Doc from org. A list of constraining facets if it exists, otherwise an empty
Note This method must not be used to
retrieve values for | |
| getFinal | back to summary |
|---|---|
| public short getFinal() Implements org. Doc from org. For complex types the returned value is a bit combination of the subset
of { | |
| getFinite | back to summary |
|---|---|
| public boolean getFinite() Implements org. Doc from org. Fundamental Facet: cardinality. | |
| getFixedFacets | back to summary |
|---|---|
| public short getFixedFacets() Implements org. Doc from org. [facets]: all defined facets for this type which are fixed. | |
| getItemType | back to summary |
|---|---|
| public XSSimpleTypeDefinition getItemType() Implements org. Doc from org. If variety is | |
| getLexicalEnumeration | back to summary |
|---|---|
| public StringList getLexicalEnumeration() Implements org. Doc from org. A list of enumeration values if it exists, otherwise an empty
| |
| getLexicalFacetValue | back to summary |
|---|---|
| public String getLexicalFacetValue(short facetName) Implements org. Doc from org. 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
| |
| getLexicalPattern | back to summary |
|---|---|
| public StringList getLexicalPattern() Implements org. Doc from org. A list of pattern values if it exists, otherwise an empty
| |
| getMemberTypes | back to summary |
|---|---|
| public XSObjectList getMemberTypes() Implements org. Doc from org. If variety is | |
| getMultiValueFacets | back to summary |
|---|---|
| public XSObjectList getMultiValueFacets() Implements org. Doc from org. A list of enumeration and pattern constraining facets if it exists,
otherwise an empty | |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. The name of type | |
| getNamespace | back to summary |
|---|---|
| public String getNamespace() Implements org. Doc from org. The [target namespace] of this object, or | |
| getNamespaceItem | back to summary |
|---|---|
| public XSNamespaceItem getNamespaceItem() Implements org. Doc from org. A namespace schema information item corresponding to the target
namespace of the component, if it is globally declared; or
| |
| getNumeric | back to summary |
|---|---|
| public boolean getNumeric() Implements org. Doc from org. Fundamental Facet: numeric. | |
| getOrdered | back to summary |
|---|---|
| public short getOrdered() Implements org. Doc from org. Fundamental Facet: ordered. | |
| getPrimitiveKind | back to summary |
|---|---|
| public short getPrimitiveKind() Implements org. Doc from org. 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.
| |
| getPrimitiveType | back to summary |
|---|---|
| public XSSimpleTypeDefinition getPrimitiveType() Implements org. Doc from org. If variety is | |
| getType | back to summary |
|---|---|
| public short getType() Implements org. Doc from org. The | |
| getTypeCategory | back to summary |
|---|---|
| public short getTypeCategory() Implements org. Doc from org. Return whether this type definition is a simple type or complex type. | |
| getVariety | back to summary |
|---|---|
| public short getVariety() Implements org. Doc from org. [variety]: one of {atomic, list, union} or absent. | |
| getWhitespace | back to summary |
|---|---|
| public short getWhitespace() throws DatatypeException Implements org. Doc from org. Return the whitespace corresponding to this datatype.
| |
| getWrappedXSSimpleType | back to summary |
|---|---|
| public XSSimpleType getWrappedXSSimpleType() | |
| isDefinedFacet | back to summary |
|---|---|
| public boolean isDefinedFacet(short facetName) Implements org. Doc from org. Convenience method. [Facets]: check whether a facet is defined on this type.
| |
| isEqual | back to summary |
|---|---|
| public boolean isEqual(Object value1, Object value2) Implements org. Doc from org. Check whether two actual values are equal. | |
| isFinal | back to summary |
|---|---|
| public boolean isFinal(short restriction) Implements org. Doc from org. {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}.
| |
| isFixedFacet | back to summary |
|---|---|
| public boolean isFixedFacet(short facetName) Implements org. Doc from org. Convenience method. [Facets]: check whether a facet is defined and fixed on this type.
| |
| isIDType | back to summary |
|---|---|
| public boolean isIDType() Implements org. Doc from org. 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.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| validate | back to summary |
|---|---|
| public void validate(ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException Implements org. Doc from org. Validate an actual value against this simple type.
| |
| validate | back to summary |
|---|---|
| public Object validate(String content, ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException Implements org. Doc from org. validate a given string against this simple type.
| |
| validate | back to summary |
|---|---|
| public Object validate(Object content, ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException Implements org. Doc from org. validate a given string value, represented by content.toString(). note that if content is a StringBuffer, for performance reasons, it's possible that the content of the string buffer is modified.
| |