org.apache.xerces.impl.dv
public interface XSSimpleType extends XSSimpleTypeDefinition
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
.
Version: $Id: XSSimpleType.java,v 1.17 2004/10/06 14:56:50 mrglavas Exp $
Field Summary | |
---|---|
static short | PRIMITIVE_ANYURI "anyURI" type |
static short | PRIMITIVE_BASE64BINARY "base64Binary" type |
static short | PRIMITIVE_BOOLEAN "boolean" type |
static short | PRIMITIVE_DATE "date" type |
static short | PRIMITIVE_DATETIME "dataTime" type |
static short | PRIMITIVE_DECIMAL "decimal" type |
static short | PRIMITIVE_DOUBLE "double" type |
static short | PRIMITIVE_DURATION "duration" type |
static short | PRIMITIVE_FLOAT "float" type |
static short | PRIMITIVE_GDAY "gDay" type |
static short | PRIMITIVE_GMONTH "gMonth" type |
static short | PRIMITIVE_GMONTHDAY "gMonthDay" type |
static short | PRIMITIVE_GYEAR "gYear" type |
static short | PRIMITIVE_GYEARMONTH "gYearMonth" type |
static short | PRIMITIVE_HEXBINARY "hexBinary" type |
static short | PRIMITIVE_NOTATION "NOTATION" type |
static short | PRIMITIVE_PRECISIONDECIMAL "precisionDecimal" type |
static short | PRIMITIVE_QNAME "QName" type |
static short | PRIMITIVE_STRING "string" type |
static short | PRIMITIVE_TIME "time" type |
static short | WS_COLLAPSE collapse the white spaces |
static short | WS_PRESERVE preserve the white spaces |
static short | WS_REPLACE replace the white spaces |
Method Summary | |
---|---|
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. |
short | getPrimitiveKind()
return an ID representing the built-in primitive base type.
|
short | getWhitespace()
Return the whitespace corresponding to this datatype.
|
boolean | isEqual(Object value1, Object value2)
Check whether two actual values are equal.
|
boolean | isIDType()
Check whether this type is or is derived from ID.
|
Object | validate(String content, ValidationContext context, ValidatedInfo validatedInfo)
validate a given string against this simple type.
|
Object | validate(Object content, ValidationContext context, ValidatedInfo validatedInfo)
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.
|
void | validate(ValidationContext context, ValidatedInfo validatedInfo)
Validate an actual value against this simple type.
|
XSFacets
is used to pass the value of
different facets.
Parameters: 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
Throws: InvalidDatatypeFacetException exception for invalid facet values.
Returns: an ID representing the built-in primitive base type
Returns: valid values are WS_PRESERVE, WS_REPLACE, WS_COLLAPSE.
Throws: DatatypeException union datatypes don't have whitespace facet associated with them
Parameters: value1 the first value value2 the second value
Returns: true if the two value are equal
Returns: whether this simple type is or is derived from ID.
Parameters: content the string value that needs to be validated context the validation context validatedInfo used to store validation result
Returns: the actual value (QName, Boolean) of the string value
Parameters: content the string value that needs to be validated context the validation context validatedInfo used to store validation result
Returns: the actual value (QName, Boolean) of the string value
Parameters: context the validation context validatedInfo used to provide the actual value and member types
Throws: InvalidDatatypeValueException exception for invalid values.