Fields Summary |
---|
public static final short | WS_PRESERVEpreserve the white spaces |
public static final short | WS_REPLACEreplace the white spaces |
public static final short | WS_COLLAPSEcollapse the white spaces |
public static final short | PRIMITIVE_STRING"string" type |
public static final short | PRIMITIVE_BOOLEAN"boolean" type |
public static final short | PRIMITIVE_DECIMAL"decimal" type |
public static final short | PRIMITIVE_FLOAT"float" type |
public static final short | PRIMITIVE_DOUBLE"double" type |
public static final short | PRIMITIVE_DURATION"duration" type |
public static final short | PRIMITIVE_DATETIME"dataTime" type |
public static final short | PRIMITIVE_TIME"time" type |
public static final short | PRIMITIVE_DATE"date" type |
public static final short | PRIMITIVE_GYEARMONTH"gYearMonth" type |
public static final short | PRIMITIVE_GYEAR"gYear" type |
public static final short | PRIMITIVE_GMONTHDAY"gMonthDay" type |
public static final short | PRIMITIVE_GDAY"gDay" type |
public static final short | PRIMITIVE_GMONTH"gMonth" type |
public static final short | PRIMITIVE_HEXBINARY"hexBinary" type |
public static final short | PRIMITIVE_BASE64BINARY"base64Binary" type |
public static final short | PRIMITIVE_ANYURI"anyURI" type |
public static final short | PRIMITIVE_QNAME"QName" type |
public static final short | PRIMITIVE_PRECISIONDECIMAL"precisionDecimal" type |
public static final short | PRIMITIVE_NOTATION"NOTATION" type |
Methods 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. XSFacets is used to pass the value of
different facets.
|
public short | 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.
|
public short | getWhitespace()Return the whitespace corresponding to this datatype.
|
public boolean | isEqual(java.lang.Object value1, java.lang.Object value2)Check whether two actual values are equal.
|
public boolean | 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.
|
public java.lang.Object | validate(java.lang.String content, ValidationContext context, ValidatedInfo validatedInfo)validate a given string against this simple type.
|
public java.lang.Object | validate(java.lang.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.
|
public void | validate(ValidationContext context, ValidatedInfo validatedInfo)Validate an actual value against this simple type.
|