| org.apache.xerces.impl.dv.XSSimpleType
All known Subclasses: org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl,
XSSimpleType | public interface XSSimpleType extends XSSimpleTypeDefinition(Code) | | This interface XSSimpleType represents the simple type
definition of schema component and defines methods to query the information
contained.
Any simple type (atomic, list or union) will implement this interface.
It inherits from XSTypeDecl .
author: Sandy Gao, IBM version: $Id: XSSimpleType.java 446751 2006-09-15 21:54:06Z mrglavas $ |
Method Summary | |
public void | applyFacets(XSFacets facets, short presentFacet, short fixedFacet, ValidationContext context) If this type is created from restriction, then some facets can be applied
to the simple type. | public short | getPrimitiveKind() return an ID representing the built-in primitive base type. | public short | getWhitespace() Return the whitespace corresponding to this datatype. | public boolean | isEqual(Object value1, Object value2) Check whether two actual values are equal. | public boolean | isIDType() Check whether this type is or is derived from ID. | public Object | validate(String content, ValidationContext context, ValidatedInfo validatedInfo) validate a given string against this simple type. | public Object | validate(Object content, ValidationContext context, ValidatedInfo validatedInfo) validate a given string value, represented by content.toString(). | public void | validate(ValidationContext context, ValidatedInfo validatedInfo) Validate an actual value against this simple type. |
PRIMITIVE_ANYURI | final public static short PRIMITIVE_ANYURI(Code) | | "anyURI" type
|
PRIMITIVE_BASE64BINARY | final public static short PRIMITIVE_BASE64BINARY(Code) | | "base64Binary" type
|
PRIMITIVE_BOOLEAN | final public static short PRIMITIVE_BOOLEAN(Code) | | "boolean" type
|
PRIMITIVE_DATE | final public static short PRIMITIVE_DATE(Code) | | "date" type
|
PRIMITIVE_DATETIME | final public static short PRIMITIVE_DATETIME(Code) | | "dataTime" type
|
PRIMITIVE_DECIMAL | final public static short PRIMITIVE_DECIMAL(Code) | | "decimal" type
|
PRIMITIVE_DOUBLE | final public static short PRIMITIVE_DOUBLE(Code) | | "double" type
|
PRIMITIVE_DURATION | final public static short PRIMITIVE_DURATION(Code) | | "duration" type
|
PRIMITIVE_FLOAT | final public static short PRIMITIVE_FLOAT(Code) | | "float" type
|
PRIMITIVE_GDAY | final public static short PRIMITIVE_GDAY(Code) | | "gDay" type
|
PRIMITIVE_GMONTH | final public static short PRIMITIVE_GMONTH(Code) | | "gMonth" type
|
PRIMITIVE_GMONTHDAY | final public static short PRIMITIVE_GMONTHDAY(Code) | | "gMonthDay" type
|
PRIMITIVE_GYEAR | final public static short PRIMITIVE_GYEAR(Code) | | "gYear" type
|
PRIMITIVE_GYEARMONTH | final public static short PRIMITIVE_GYEARMONTH(Code) | | "gYearMonth" type
|
PRIMITIVE_HEXBINARY | final public static short PRIMITIVE_HEXBINARY(Code) | | "hexBinary" type
|
PRIMITIVE_NOTATION | final public static short PRIMITIVE_NOTATION(Code) | | "NOTATION" type
|
PRIMITIVE_PRECISIONDECIMAL | final public static short PRIMITIVE_PRECISIONDECIMAL(Code) | | "precisionDecimal" type
|
PRIMITIVE_QNAME | final public static short PRIMITIVE_QNAME(Code) | | "QName" type
|
PRIMITIVE_STRING | final public static short PRIMITIVE_STRING(Code) | | "string" type
|
PRIMITIVE_TIME | final public static short PRIMITIVE_TIME(Code) | | "time" type
|
WS_COLLAPSE | final public static short WS_COLLAPSE(Code) | | collapse the white spaces
|
WS_PRESERVE | final public static short WS_PRESERVE(Code) | | preserve the white spaces
|
WS_REPLACE | final public static short WS_REPLACE(Code) | | replace the white spaces
|
applyFacets | public void applyFacets(XSFacets facets, short presentFacet, short fixedFacet, ValidationContext context) throws InvalidDatatypeFacetException(Code) | | 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 - the value of all the facets Parameters: presentFacet - bit combination value of the costraining facetconstants which are present. Parameters: fixedFacet - bit combination value of the costraining facetconstants which are fixed. Parameters: context - the validation context exception: InvalidDatatypeFacetException - exception for invalid facet values. |
getPrimitiveKind | public short getPrimitiveKind()(Code) | | 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.
an ID representing the built-in primitive base type |
getWhitespace | public short getWhitespace() throws DatatypeException(Code) | | Return the whitespace corresponding to this datatype.
valid values are WS_PRESERVE, WS_REPLACE, WS_COLLAPSE. exception: DatatypeException - union datatypes don't have whitespace facet associated with them |
isEqual | public boolean isEqual(Object value1, Object value2)(Code) | | Check whether two actual values are equal.
Parameters: value1 - the first value Parameters: value2 - the second value true if the two value are equal |
isIDType | public boolean isIDType()(Code) | | 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.
whether this simple type is or is derived from ID. |
validate | public Object validate(String content, ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException(Code) | | validate a given string against this simple type.
Parameters: content - the string value that needs to be validated Parameters: context - the validation context Parameters: validatedInfo - used to store validation result the actual value (QName, Boolean) of the string value |
validate | public Object validate(Object content, ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException(Code) | | 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 - the string value that needs to be validated Parameters: context - the validation context Parameters: validatedInfo - used to store validation result the actual value (QName, Boolean) of the string value |
|
|