| Modifier and Type | Field and Description |
|---|---|
| protected final XSSimpleType |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | applyFacets(XSFacets facets, short presentFacet, short fixedFacet, ValidationContext context)
Implements com. If this type is created from restriction, then some facets can be applied to the simple type. |
| public boolean | derivedFrom(String namespace, String name, short derivationMethod)
Implements com. Convenience method which checks if this type is derived from the given ancestor type. |
| public boolean | derivedFromType(XSTypeDefinition ancestorType, short derivationMethod)
Implements com. Convenience method which checks if this type is derived from the given
|
| public XSObjectList | getAnnotations()
Implements com. A sequence of [annotations] or an empty |
| public boolean | getAnonymous()
Implements com. Convenience attribute. |
| public XSTypeDefinition | getBaseType()
Implements com. {base type definition}: either a simple type definition or a complex type definition. |
| public boolean | getBounded()
Implements com. Fundamental Facet: bounded. |
| public short | getBuiltInKind()
Implements com. Returns the closest built-in type category this type represents or derived from. |
| public short | getDefinedFacets()
Implements com. [facets]: all facets defined on this type. |
| public XSObject | getFacet(int facetType)
Implements com. A constraining facet object. |
| public XSObjectList | getFacets()
Implements com. A list of constraining facets if it exists, otherwise an empty
|
| public short | getFinal()
Implements com. For complex types the returned value is a bit combination of the subset
of { |
| public boolean | getFinite()
Implements com. Fundamental Facet: cardinality. |
| public short | getFixedFacets()
Implements com. [facets]: all defined facets for this type which are fixed. |
| public XSSimpleTypeDefinition | getItemType()
Implements com. If variety is |
| public StringList | getLexicalEnumeration()
Implements com. A list of enumeration values if it exists, otherwise an empty
|
| public String | getLexicalFacetValue(short facetName)
Implements com. Convenience method. |
| public StringList | getLexicalPattern()
Implements com. A list of pattern values if it exists, otherwise an empty
|
| public XSObjectList | getMemberTypes()
Implements com. If variety is |
| public XSObjectList | getMultiValueFacets()
Implements com. A list of enumeration and pattern constraining facets if it exists,
otherwise an empty |
| public String | getName()
Implements com. The name of type |
| public String | getNamespace()
Implements com. The [target namespace] of this object, or |
| public XSNamespaceItem | getNamespaceItem()
Implements com. A namespace schema information item corresponding to the target
namespace of the component, if it is globally declared; or
|
| public boolean | getNumeric()
Implements com. Fundamental Facet: numeric. |
| public short | getOrdered()
Implements com. Fundamental Facet: ordered. |
| public short | getPrimitiveKind()
Implements com. return an ID representing the built-in primitive base type. |
| public XSSimpleTypeDefinition | getPrimitiveType()
Implements com. If variety is |
| public short | getType()
Implements com. The |
| public short | getTypeCategory()
Implements com. Return whether this type definition is a simple type or complex type. |
| public short | getVariety()
Implements com. [variety]: one of {atomic, list, union} or absent. |
| public short | getWhitespace()
Implements com. Return the whitespace corresponding to this datatype. |
| public XSSimpleType | |
| public boolean | isDefinedFacet(short facetName)
Implements com. Convenience method. |
| public boolean | isEqual(Object value1, Object value2)
Implements com. Check whether two actual values are equal. |
| public boolean | isFinal(short restriction)
Implements com. {final}. |
| public boolean | isFixedFacet(short facetName)
Implements com. Convenience method. |
| public boolean | isIDType()
Implements com. Check whether this type is or is derived from ID. Revisit this method makes ID special, which is not a good design. |
| public String | |
| public void | validate(ValidationContext context, ValidatedInfo validatedInfo)
Implements com. Validate an actual value against this simple type. |
| public Object | validate(String content, ValidationContext context, ValidatedInfo validatedInfo)
Implements com. validate a given string against this simple type. |
| public Object | validate(Object content, ValidationContext context, ValidatedInfo validatedInfo)
Implements com. validate a given string value, represented by content.toString(). |
| 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 com. Doc from com. 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 com. Doc from com. 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 com. Doc from com. Convenience method which checks if this type is derived from the given
| |
| getAnnotations | back to summary |
|---|---|
| public XSObjectList getAnnotations() Implements com. Doc from com. A sequence of [annotations] or an empty | |
| getAnonymous | back to summary |
|---|---|
| public boolean getAnonymous() Implements com. Doc from com. Convenience attribute. A boolean that specifies if the type definition is anonymous. | |
| getBaseType | back to summary |
|---|---|
| public XSTypeDefinition getBaseType() Implements com. Doc from com. {base type definition}: either a simple type definition or a complex type definition. | |
| getBounded | back to summary |
|---|---|
| public boolean getBounded() Implements com. Doc from com. Fundamental Facet: bounded. | |
| getBuiltInKind | back to summary |
|---|---|
| public short getBuiltInKind() Implements com. Doc from com. 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 com. Doc from com. [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 com. Doc from com. A constraining facet object. An instance of XSFacet or XSMultiValueFacet. | |
| getFacets | back to summary |
|---|---|
| public XSObjectList getFacets() Implements com. Doc from com. 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 com. Doc from com. For complex types the returned value is a bit combination of the subset
of { | |
| getFinite | back to summary |
|---|---|
| public boolean getFinite() Implements com. Doc from com. Fundamental Facet: cardinality. | |
| getFixedFacets | back to summary |
|---|---|
| public short getFixedFacets() Implements com. Doc from com. [facets]: all defined facets for this type which are fixed. | |
| getItemType | back to summary |
|---|---|
| public XSSimpleTypeDefinition getItemType() Implements com. Doc from com. If variety is | |
| getLexicalEnumeration | back to summary |
|---|---|
| public StringList getLexicalEnumeration() Implements com. Doc from com. A list of enumeration values if it exists, otherwise an empty
| |
| getLexicalFacetValue | back to summary |
|---|---|
| public String getLexicalFacetValue(short facetName) Implements com. Doc from com. 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 com. Doc from com. A list of pattern values if it exists, otherwise an empty
| |
| getMemberTypes | back to summary |
|---|---|
| public XSObjectList getMemberTypes() Implements com. Doc from com. If variety is | |
| getMultiValueFacets | back to summary |
|---|---|
| public XSObjectList getMultiValueFacets() Implements com. Doc from com. A list of enumeration and pattern constraining facets if it exists,
otherwise an empty | |
| getName | back to summary |
|---|---|
| public String getName() Implements com. Doc from com. The name of type | |
| getNamespace | back to summary |
|---|---|
| public String getNamespace() Implements com. Doc from com. The [target namespace] of this object, or | |
| getNamespaceItem | back to summary |
|---|---|
| public XSNamespaceItem getNamespaceItem() Implements com. Doc from com. 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 com. Doc from com. Fundamental Facet: numeric. | |
| getOrdered | back to summary |
|---|---|
| public short getOrdered() Implements com. Doc from com. Fundamental Facet: ordered. | |
| getPrimitiveKind | back to summary |
|---|---|
| public short getPrimitiveKind() Implements com. Doc from com. 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 com. Doc from com. If variety is | |
| getType | back to summary |
|---|---|
| public short getType() Implements com. Doc from com. The | |
| getTypeCategory | back to summary |
|---|---|
| public short getTypeCategory() Implements com. Doc from com. Return whether this type definition is a simple type or complex type. | |
| getVariety | back to summary |
|---|---|
| public short getVariety() Implements com. Doc from com. [variety]: one of {atomic, list, union} or absent. | |
| getWhitespace | back to summary |
|---|---|
| public short getWhitespace() throws DatatypeException Implements com. Doc from com. Return the whitespace corresponding to this datatype.
| |
| getWrappedXSSimpleType | back to summary |
|---|---|
| public XSSimpleType getWrappedXSSimpleType() | |
| isDefinedFacet | back to summary |
|---|---|
| public boolean isDefinedFacet(short facetName) Implements com. Doc from com. Convenience method. [Facets]: check whether a facet is defined on this type. | |
| isEqual | back to summary |
|---|---|
| public boolean isEqual(Object value1, Object value2) Implements com. Doc from com. Check whether two actual values are equal. | |
| isFinal | back to summary |
|---|---|
| public boolean isFinal(short restriction) Implements com. Doc from com. {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 com. Doc from com. Convenience method. [Facets]: check whether a facet is defined and fixed on this type. | |
| isIDType | back to summary |
|---|---|
| public boolean isIDType() Implements com. Doc from com. 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.
Satisfying this method's contract implies a non- | |
| validate | back to summary |
|---|---|
| public void validate(ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException Implements com. Doc from com. Validate an actual value against this simple type.
| |
| validate | back to summary |
|---|---|
| public Object validate(String content, ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException Implements com. Doc from com. validate a given string against this simple type. | |
| validate | back to summary |
|---|---|
| public Object validate(Object content, ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException Implements com. Doc from com. 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. | |