Top Description Fields Constructors Methods
org.apache.xerces.impl.dv.xs

public Class XSSimpleTypeDelegate

extends Object
implements XSSimpleType
Class Inheritance
All Implemented Interfaces
org.apache.xerces.impl.dv.XSSimpleType, org.apache.xerces.xs.XSSimpleTypeDefinition, org.apache.xerces.xs.XSTypeDefinition, org.apache.xerces.xs.XSObject
Imports
org.apache.xerces.impl.dv.DatatypeException, .InvalidDatatypeFacetException, .InvalidDatatypeValueException, .ValidatedInfo, .ValidationContext, .XSFacets, .XSSimpleType, org.apache.xerces.xs.StringList, .XSNamespaceItem, .XSObject, .XSObjectList, .XSSimpleTypeDefinition, .XSTypeDefinition

Base class for XSSimpleType wrapper implementations.
Version
$Id: XSSimpleTypeDelegate.java 1024038 2010-10-18 22:06:35Z sandygao $

Field Summary

Modifier and TypeField and Description
protected final XSSimpleType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod 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.apache.xerces.impl.dv.XSSimpleType.applyFacets.

If this type is created from restriction, then some facets can be applied to the simple type.
public boolean
derivedFrom(String
An ancestor type namespace.
namespace
,
String
An ancestor type name.
name
,
short
A bit combination representing a subset of { DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST }.
derivationMethod
)

Implements org.apache.xerces.xs.XSTypeDefinition.derivedFrom.

Convenience method which checks if this type is derived from the given ancestor type.
public boolean
derivedFromType(XSTypeDefinition
An ancestor type definition.
ancestorType
,
short
A bit combination representing a subset of { DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST }.
derivationMethod
)

Implements org.apache.xerces.xs.XSTypeDefinition.derivedFromType.

Convenience method which checks if this type is derived from the given ancestorType.
public XSObjectList
getAnnotations()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getAnnotations.

A sequence of [annotations] or an empty XSObjectList.
public boolean
public XSTypeDefinition
getBaseType()

Implements org.apache.xerces.xs.XSTypeDefinition.getBaseType.

{base type definition}: either a simple type definition or a complex type definition.
public boolean
getBounded()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getBounded.

Fundamental Facet: bounded.
public short
getBuiltInKind()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getBuiltInKind.

Returns the closest built-in type category this type represents or derived from.
public short
getDefinedFacets()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getDefinedFacets.

[facets]: all facets defined on this type.
public XSObject
getFacet(int facetType)

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getFacet.

A constraining facet object.
public XSObjectList
getFacets()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getFacets.

A list of constraining facets if it exists, otherwise an empty XSObjectList.
public short
getFinal()

Implements org.apache.xerces.xs.XSTypeDefinition.getFinal.

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.
public boolean
getFinite()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getFinite.

Fundamental Facet: cardinality.
public short
getFixedFacets()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getFixedFacets.

[facets]: all defined facets for this type which are fixed.
public XSSimpleTypeDefinition
getItemType()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getItemType.

If variety is list the item type definition (an atomic or union simple type definition) is available, otherwise null.
public StringList
getLexicalEnumeration()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getLexicalEnumeration.

A list of enumeration values if it exists, otherwise an empty StringList.
public String
getLexicalFacetValue(short
The name of the facet, i.e. FACET_LENGTH, FACET_TOTALDIGITS. To retrieve the value for a pattern or an enumeration, see enumeration and pattern.
facetName
)

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getLexicalFacetValue.

Convenience method.
public StringList
getLexicalPattern()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getLexicalPattern.

A list of pattern values if it exists, otherwise an empty StringList.
public XSObjectList
getMemberTypes()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getMemberTypes.

If variety is 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.apache.xerces.xs.XSSimpleTypeDefinition.getMultiValueFacets.

A list of enumeration and pattern constraining facets if it exists, otherwise an empty XSObjectList.
public String
getName()

Implements org.apache.xerces.xs.XSObject.getName.

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.
public String
getNamespace()

Implements org.apache.xerces.xs.XSObject.getNamespace.

The [target namespace] of this object, or null if it is unspecified.
public XSNamespaceItem
getNamespaceItem()

Implements org.apache.xerces.xs.XSObject.getNamespaceItem.

A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; or null otherwise.
public boolean
getNumeric()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getNumeric.

Fundamental Facet: numeric.
public short
getOrdered()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getOrdered.

Fundamental Facet: ordered.
public short
getPrimitiveKind()

Implements org.apache.xerces.impl.dv.XSSimpleType.getPrimitiveKind.

return an ID representing the built-in primitive base type.
public XSSimpleTypeDefinition
getPrimitiveType()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getPrimitiveType.

If variety is 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.apache.xerces.xs.XSObject.getType.

The type of this object, i.e. ELEMENT_DECLARATION.
public short
getTypeCategory()

Implements org.apache.xerces.xs.XSTypeDefinition.getTypeCategory.

Return whether this type definition is a simple type or complex type.
public short
getVariety()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getVariety.

[variety]: one of {atomic, list, union} or absent.
public short
getWhitespace()

Implements org.apache.xerces.impl.dv.XSSimpleType.getWhitespace.

Return the whitespace corresponding to this datatype.
public XSSimpleType
public boolean
isDefinedFacet(short
The name of the facet.
facetName
)

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.isDefinedFacet.

Convenience method.
public boolean
isEqual(Object
the first value
value1
,
Object
the second value
value2
)

Implements org.apache.xerces.impl.dv.XSSimpleType.isEqual.

Check whether two actual values are equal.
public boolean
isFinal(short
Extension, restriction, list, union constants (defined in XSConstants).
restriction
)

Implements org.apache.xerces.xs.XSTypeDefinition.isFinal.

{final}.
public boolean
isFixedFacet(short
The name of the facet.
facetName
)

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.isFixedFacet.

Convenience method.
public boolean
isIDType()

Implements org.apache.xerces.impl.dv.XSSimpleType.isIDType.

Check whether this type is or is derived from ID. REVISIT: this method makes ID special, which is not a good design.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public void
validate(ValidationContext
the validation context
context
,
ValidatedInfo
used to provide the actual value and member types
validatedInfo
)

Implements org.apache.xerces.impl.dv.XSSimpleType.validate.

Validate an actual value against this simple type.
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.apache.xerces.impl.dv.XSSimpleType.validate.

validate a given string against this simple type.
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.apache.xerces.impl.dv.XSSimpleType.validate.

validate a given string value, represented by content.toString().
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

typeback to summary
protected final XSSimpleType type

Constructor Detail

XSSimpleTypeDelegateback to summary
public XSSimpleTypeDelegate(XSSimpleType type)

Method Detail

applyFacetsback to summary
public void applyFacets(XSFacets facets, short presentFacet, short fixedFacet, ValidationContext context) throws InvalidDatatypeFacetException

Implements org.apache.xerces.impl.dv.XSSimpleType.applyFacets.

Doc from org.apache.xerces.impl.dv.XSSimpleType.applyFacets.

If this type is created from restriction, then some facets can be applied to the simple type. XSFacets is used to pass the value of different facets.

Parameters
facets:XSFacets

the value of all the facets

presentFacet:short

bit combination value of the costraining facet constants which are present.

fixedFacet:short

bit combination value of the costraining facet constants which are fixed.

context:ValidationContext

the validation context

Exceptions
InvalidDatatypeFacetException:
exception for invalid facet values.
derivedFromback to summary
public boolean derivedFrom(String namespace, String name, short derivationMethod)

Implements org.apache.xerces.xs.XSTypeDefinition.derivedFrom.

Doc from org.apache.xerces.xs.XSTypeDefinition.derivedFrom.

Convenience method which checks if this type is derived from the given ancestor type.

Parameters
namespace:String

An ancestor type namespace.

name:String

An ancestor type name.

derivationMethod:short

A bit combination representing a subset of { DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST }.

Returns:boolean

True if this type is derived from ancestorType using only derivation methods from the derivationMethod .

derivedFromTypeback to summary
public boolean derivedFromType(XSTypeDefinition ancestorType, short derivationMethod)

Implements org.apache.xerces.xs.XSTypeDefinition.derivedFromType.

Doc from org.apache.xerces.xs.XSTypeDefinition.derivedFromType.

Convenience method which checks if this type is derived from the given ancestorType.

Parameters
ancestorType:XSTypeDefinition

An ancestor type definition.

derivationMethod:short

A bit combination representing a subset of { DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST }.

Returns:boolean

True if this type is derived from ancestorType using only derivation methods from the derivationMethod .

getAnnotationsback to summary
public XSObjectList getAnnotations()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getAnnotations.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.getAnnotations.

A sequence of [annotations] or an empty XSObjectList.

getAnonymousback to summary
public boolean getAnonymous()

Implements org.apache.xerces.xs.XSTypeDefinition.getAnonymous.

Doc from org.apache.xerces.xs.XSTypeDefinition.getAnonymous.

Convenience attribute. A boolean that specifies if the type definition is anonymous.

getBaseTypeback to summary
public XSTypeDefinition getBaseType()

Implements org.apache.xerces.xs.XSTypeDefinition.getBaseType.

Doc from org.apache.xerces.xs.XSTypeDefinition.getBaseType.

{base type definition}: either a simple type definition or a complex type definition.

getBoundedback to summary
public boolean getBounded()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getBounded.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.getBounded.

Fundamental Facet: bounded.

getBuiltInKindback to summary
public short getBuiltInKind()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getBuiltInKind.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.getBuiltInKind.

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.

getDefinedFacetsback to summary
public short getDefinedFacets()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getDefinedFacets.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.getDefinedFacets.

[facets]: all facets defined on this type. The value is a bit combination of FACET_XXX constants of all defined facets.

getFacetback to summary
public XSObject getFacet(int facetType)

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getFacet.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.getFacet.

A constraining facet object. An instance of XSFacet or XSMultiValueFacet.

getFacetsback to summary
public XSObjectList getFacets()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getFacets.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.getFacets.

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.

getFinalback to summary
public short getFinal()

Implements org.apache.xerces.xs.XSTypeDefinition.getFinal.

Doc from org.apache.xerces.xs.XSTypeDefinition.getFinal.

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.

getFiniteback to summary
public boolean getFinite()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getFinite.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.getFinite.

Fundamental Facet: cardinality.

getFixedFacetsback to summary
public short getFixedFacets()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getFixedFacets.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.getFixedFacets.

[facets]: all defined facets for this type which are fixed.

getItemTypeback to summary
public XSSimpleTypeDefinition getItemType()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getItemType.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.getItemType.

If variety is list the item type definition (an atomic or union simple type definition) is available, otherwise null.

getLexicalEnumerationback to summary
public StringList getLexicalEnumeration()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getLexicalEnumeration.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.getLexicalEnumeration.

A list of enumeration values if it exists, otherwise an empty StringList.

getLexicalFacetValueback to summary
public String getLexicalFacetValue(short facetName)

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getLexicalFacetValue.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.getLexicalFacetValue.

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.

Parameters
facetName:short

The name of the facet, i.e. FACET_LENGTH, FACET_TOTALDIGITS. To retrieve the value for a pattern or an enumeration, see enumeration and pattern.

Returns:String

A value of the facet specified in facetName for this simple type definition or null.

getLexicalPatternback to summary
public StringList getLexicalPattern()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getLexicalPattern.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.getLexicalPattern.

A list of pattern values if it exists, otherwise an empty StringList.

getMemberTypesback to summary
public XSObjectList getMemberTypes()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getMemberTypes.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.getMemberTypes.

If variety is union the list of member type definitions (a non-empty sequence of simple type definitions) is available, otherwise an empty XSObjectList.

getMultiValueFacetsback to summary
public XSObjectList getMultiValueFacets()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getMultiValueFacets.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.getMultiValueFacets.

A list of enumeration and pattern constraining facets if it exists, otherwise an empty XSObjectList.

getNameback to summary
public String getName()

Implements org.apache.xerces.xs.XSObject.getName.

Doc from org.apache.xerces.xs.XSObject.getName.

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.

getNamespaceback to summary
public String getNamespace()

Implements org.apache.xerces.xs.XSObject.getNamespace.

Doc from org.apache.xerces.xs.XSObject.getNamespace.

The [target namespace] of this object, or null if it is unspecified.

getNamespaceItemback to summary
public XSNamespaceItem getNamespaceItem()

Implements org.apache.xerces.xs.XSObject.getNamespaceItem.

Doc from org.apache.xerces.xs.XSObject.getNamespaceItem.

A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; or null otherwise.

getNumericback to summary
public boolean getNumeric()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getNumeric.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.getNumeric.

Fundamental Facet: numeric.

getOrderedback to summary
public short getOrdered()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getOrdered.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.getOrdered.

Fundamental Facet: ordered.

getPrimitiveKindback to summary
public short getPrimitiveKind()

Implements org.apache.xerces.impl.dv.XSSimpleType.getPrimitiveKind.

Doc from org.apache.xerces.impl.dv.XSSimpleType.getPrimitiveKind.

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.

Returns:short

an ID representing the built-in primitive base type

getPrimitiveTypeback to summary
public XSSimpleTypeDefinition getPrimitiveType()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getPrimitiveType.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.getPrimitiveType.

If variety is atomic the primitive type definition (a built-in primitive datatype definition or the simple ur-type definition) is available, otherwise null.

getTypeback to summary
public short getType()

Implements org.apache.xerces.xs.XSObject.getType.

Doc from org.apache.xerces.xs.XSObject.getType.

The type of this object, i.e. ELEMENT_DECLARATION.

getTypeCategoryback to summary
public short getTypeCategory()

Implements org.apache.xerces.xs.XSTypeDefinition.getTypeCategory.

Doc from org.apache.xerces.xs.XSTypeDefinition.getTypeCategory.

Return whether this type definition is a simple type or complex type.

getVarietyback to summary
public short getVariety()

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.getVariety.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.getVariety.

[variety]: one of {atomic, list, union} or absent.

getWhitespaceback to summary
public short getWhitespace() throws DatatypeException

Implements org.apache.xerces.impl.dv.XSSimpleType.getWhitespace.

Doc from org.apache.xerces.impl.dv.XSSimpleType.getWhitespace.

Return the whitespace corresponding to this datatype.

Returns:short

valid values are WS_PRESERVE, WS_REPLACE, WS_COLLAPSE.

Exceptions
DatatypeException:
union datatypes don't have whitespace facet associated with them
getWrappedXSSimpleTypeback to summary
public XSSimpleType getWrappedXSSimpleType()
isDefinedFacetback to summary
public boolean isDefinedFacet(short facetName)

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.isDefinedFacet.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.isDefinedFacet.

Convenience method. [Facets]: check whether a facet is defined on this type.

Parameters
facetName:short

The name of the facet.

Returns:boolean

True if the facet is defined, false otherwise.

isEqualback to summary
public boolean isEqual(Object value1, Object value2)

Implements org.apache.xerces.impl.dv.XSSimpleType.isEqual.

Doc from org.apache.xerces.impl.dv.XSSimpleType.isEqual.

Check whether two actual values are equal.

Parameters
value1:Object

the first value

value2:Object

the second value

Returns:boolean

true if the two value are equal

isFinalback to summary
public boolean isFinal(short restriction)

Implements org.apache.xerces.xs.XSTypeDefinition.isFinal.

Doc from org.apache.xerces.xs.XSTypeDefinition.isFinal.

{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}.

Parameters
restriction:short

Extension, restriction, list, union constants (defined in XSConstants).

Returns:boolean

True if restriction is in the final set, otherwise false.

isFixedFacetback to summary
public boolean isFixedFacet(short facetName)

Implements org.apache.xerces.xs.XSSimpleTypeDefinition.isFixedFacet.

Doc from org.apache.xerces.xs.XSSimpleTypeDefinition.isFixedFacet.

Convenience method. [Facets]: check whether a facet is defined and fixed on this type.

Parameters
facetName:short

The name of the facet.

Returns:boolean

True if the facet is fixed, false otherwise.

isIDTypeback to summary
public boolean isIDType()

Implements org.apache.xerces.impl.dv.XSSimpleType.isIDType.

Doc from org.apache.xerces.impl.dv.XSSimpleType.isIDType.

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.

Returns:boolean

whether this simple type is or is derived from ID.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

validateback to summary
public void validate(ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException

Implements org.apache.xerces.impl.dv.XSSimpleType.validate.

Doc from org.apache.xerces.impl.dv.XSSimpleType.validate.

Validate an actual value against this simple type.

Parameters
context:ValidationContext

the validation context

validatedInfo:ValidatedInfo

used to provide the actual value and member types

Exceptions
InvalidDatatypeValueException:
exception for invalid values.
validateback to summary
public Object validate(String content, ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException

Implements org.apache.xerces.impl.dv.XSSimpleType.validate.

Doc from org.apache.xerces.impl.dv.XSSimpleType.validate.

validate a given string against this simple type.

Parameters
content:String

the string value that needs to be validated

context:ValidationContext

the validation context

validatedInfo:ValidatedInfo

used to store validation result

Returns:Object

the actual value (QName, Boolean) of the string value

validateback to summary
public Object validate(Object content, ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException

Implements org.apache.xerces.impl.dv.XSSimpleType.validate.

Doc from org.apache.xerces.impl.dv.XSSimpleType.validate.

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.

Parameters
content:Object

the string value that needs to be validated

context:ValidationContext

the validation context

validatedInfo:ValidatedInfo

used to store validation result

Returns:Object

the actual value (QName, Boolean) of the string value