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.
| Modifier and Type | Field and Description |
|---|---|
| public static final short | PRIMITIVE_ANYURI
"anyURI" type |
| public static final short | PRIMITIVE_BASE64BINARY
"base64Binary" type |
| public static final short | PRIMITIVE_BOOLEAN
"boolean" type |
| public static final short | PRIMITIVE_DATE
"date" type |
| public static final short | PRIMITIVE_DATETIME
"dataTime" type |
| public static final short | PRIMITIVE_DECIMAL
"decimal" type |
| public static final short | PRIMITIVE_DOUBLE
"double" type |
| public static final short | PRIMITIVE_DURATION
"duration" type |
| public static final short | PRIMITIVE_FLOAT
"float" type |
| public static final short | PRIMITIVE_GDAY
"gDay" type |
| public static final short | PRIMITIVE_GMONTH
"gMonth" type |
| public static final short | PRIMITIVE_GMONTHDAY
"gMonthDay" type |
| public static final short | PRIMITIVE_GYEAR
"gYear" type |
| public static final short | PRIMITIVE_GYEARMONTH
"gYearMonth" type |
| public static final short | PRIMITIVE_HEXBINARY
"hexBinary" type |
| public static final short | PRIMITIVE_NOTATION
"NOTATION" type |
| public static final short | PRIMITIVE_PRECISIONDECIMAL
"precisionDecimal" type |
| public static final short | PRIMITIVE_QNAME
"QName" type |
| public static final short | PRIMITIVE_STRING
"string" type |
| public static final short | PRIMITIVE_TIME
"time" type |
| public static final short | WS_COLLAPSE
collapse the white spaces |
| public static final short | WS_PRESERVE
preserve the white spaces |
| public static final short | WS_REPLACE
replace the white spaces |
| Modifier and Type | Method 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)If this type is created from restriction, then some facets can be applied to the simple type. |
| public short | Returns: an ID representing the built-in primitive base typereturn an ID representing the built-in primitive base type. |
| public short | Returns: valid values are WS_PRESERVE, WS_REPLACE, WS_COLLAPSE.Return the whitespace corresponding to this datatype. |
| public boolean | |
| public boolean | Returns: whether this simple type is or is derived from ID.Check whether this type is or is derived from ID. Revisit this method makes ID special, which is not a good design. |
| public Object | Returns: the actual value (QName, Boolean) of the string valuethe string value that needs to be validated content, ValidationContext the validation context context, ValidatedInfo used to store validation result validatedInfo)validate a given string against this simple type. |
| public Object | Returns: the actual value (QName, Boolean) of the string valuethe string value that needs to be validated content, ValidationContext the validation context context, ValidatedInfo used to store validation result validatedInfo)validate a given string value, represented by content.toString(). |
| public void | validate(ValidationContext
the validation context context, ValidatedInfo used to provide the actual value and member types validatedInfo)Validate an actual value against this simple type. |
| PRIMITIVE_ANYURI | back to summary |
|---|---|
| public static final short PRIMITIVE_ANYURI "anyURI" type | |
| PRIMITIVE_BASE64BINARY | back to summary |
|---|---|
| public static final short PRIMITIVE_BASE64BINARY "base64Binary" type | |
| PRIMITIVE_BOOLEAN | back to summary |
|---|---|
| public static final short PRIMITIVE_BOOLEAN "boolean" type | |
| PRIMITIVE_DATE | back to summary |
|---|---|
| public static final short PRIMITIVE_DATE "date" type | |
| PRIMITIVE_DATETIME | back to summary |
|---|---|
| public static final short PRIMITIVE_DATETIME "dataTime" type | |
| PRIMITIVE_DECIMAL | back to summary |
|---|---|
| public static final short PRIMITIVE_DECIMAL "decimal" type | |
| PRIMITIVE_DOUBLE | back to summary |
|---|---|
| public static final short PRIMITIVE_DOUBLE "double" type | |
| PRIMITIVE_DURATION | back to summary |
|---|---|
| public static final short PRIMITIVE_DURATION "duration" type | |
| PRIMITIVE_FLOAT | back to summary |
|---|---|
| public static final short PRIMITIVE_FLOAT "float" type | |
| PRIMITIVE_GDAY | back to summary |
|---|---|
| public static final short PRIMITIVE_GDAY "gDay" type | |
| PRIMITIVE_GMONTH | back to summary |
|---|---|
| public static final short PRIMITIVE_GMONTH "gMonth" type | |
| PRIMITIVE_GMONTHDAY | back to summary |
|---|---|
| public static final short PRIMITIVE_GMONTHDAY "gMonthDay" type | |
| PRIMITIVE_GYEAR | back to summary |
|---|---|
| public static final short PRIMITIVE_GYEAR "gYear" type | |
| PRIMITIVE_GYEARMONTH | back to summary |
|---|---|
| public static final short PRIMITIVE_GYEARMONTH "gYearMonth" type | |
| PRIMITIVE_HEXBINARY | back to summary |
|---|---|
| public static final short PRIMITIVE_HEXBINARY "hexBinary" type | |
| PRIMITIVE_NOTATION | back to summary |
|---|---|
| public static final short PRIMITIVE_NOTATION "NOTATION" type | |
| PRIMITIVE_PRECISIONDECIMAL | back to summary |
|---|---|
| public static final short PRIMITIVE_PRECISIONDECIMAL "precisionDecimal" type | |
| PRIMITIVE_QNAME | back to summary |
|---|---|
| public static final short PRIMITIVE_QNAME "QName" type | |
| PRIMITIVE_STRING | back to summary |
|---|---|
| public static final short PRIMITIVE_STRING "string" type | |
| PRIMITIVE_TIME | back to summary |
|---|---|
| public static final short PRIMITIVE_TIME "time" type | |
| WS_COLLAPSE | back to summary |
|---|---|
| public static final short WS_COLLAPSE collapse the white spaces | |
| WS_PRESERVE | back to summary |
|---|---|
| public static final short WS_PRESERVE preserve the white spaces | |
| WS_REPLACE | back to summary |
|---|---|
| public static final short WS_REPLACE replace the white spaces | |
| applyFacets | back to summary |
|---|---|
| public void applyFacets(XSFacets facets, short presentFacet, short fixedFacet, ValidationContext context) throws InvalidDatatypeFacetException If this type is created from restriction, then some facets can be applied
to the simple type.
| |
| getPrimitiveKind | back to summary |
|---|---|
| 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.
| |
| getWhitespace | back to summary |
|---|---|
| public short getWhitespace() throws DatatypeException Return the whitespace corresponding to this datatype.
| |
| isEqual | back to summary |
|---|---|
| public boolean isEqual(Object value1, Object value2) Check whether two actual values are equal. | |
| isIDType | back to summary |
|---|---|
| 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.
| |
| validate | back to summary |
|---|---|
| public Object validate(String content, ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException validate a given string against this simple type.
| |
| validate | back to summary |
|---|---|
| public Object validate(Object content, ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException 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.
| |
| validate | back to summary |
|---|---|
| public void validate(ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException Validate an actual value against this simple type.
| |