|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
.
Field Summary | |
static short |
CARDINALITY_COUNTABLY_INFINITE
countably infinite cardinality |
static short |
CARDINALITY_FINITE
finite cardinality |
static short |
FACET_ENUMERATION
the enumeration facet |
static short |
FACET_FRACTIONDIGITS
the fractionDigits facet |
static short |
FACET_LENGTH
the length facet |
static short |
FACET_MAXEXCLUSIVE
the maxExclusive facet |
static short |
FACET_MAXINCLUSIVE
the maxInclusive facet |
static short |
FACET_MAXLENGTH
the maxLength facet |
static short |
FACET_MINEXCLUSIVE
the minExclusive facet |
static short |
FACET_MININCLUSIVE
the minInclusive facet |
static short |
FACET_MINLENGTH
the minLength facet |
static short |
FACET_PATTERN
the pattern facet |
static short |
FACET_TOTALDIGITS
the totalDigits facet |
static short |
FACET_WHITESPACE
the whiteSpace facet |
static short |
ORDERED_FALSE
not ordered |
static short |
ORDERED_PARTIAL
partically ordered |
static short |
ORDERED_TOTAL
totally ordered |
static short |
VARIETY_ABSENT
the absent variety, for anySimpleType |
static short |
VARIETY_ATOMIC
the atomic variety |
static short |
VARIETY_LIST
the list variety |
static short |
VARIETY_UNION
the union variety |
static short |
WS_COLLAPSE
collapse the white spaces |
static short |
WS_PRESERVE
preserve the white spaces |
static short |
WS_REPLACE
replace the white spaces |
Fields inherited from interface org.apache.xerces.impl.xs.XSTypeDecl |
COMPLEX_TYPE, SIMPLE_TYPE |
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 |
getCardinalityFacet()
Return the value of the "cardinality" fundamental facet. |
short |
getDefinedFacets()
bit combination of the constants defined in this simple type. |
short |
getOrderedFacet()
Return the value of the "ordered" fundamental facet. |
short |
getVariety()
Get the variety of the simple type: atomic, list or union. |
short |
getWhitespace()
Return the whitespace corresponding to this datatype. |
boolean |
isBounded()
Return the value of the "bounded" fundamental facet. |
boolean |
isEqual(java.lang.Object value1,
java.lang.Object value2)
Check whether two actual values are equal. |
boolean |
isIDType()
Check whether this type is or is derived from ID. |
boolean |
isNumeric()
Return the value of the "numeric" fundamental facet. |
java.lang.Object |
validate(java.lang.String content,
ValidationContext context,
ValidatedInfo validatedInfo)
validate a given string against this simple type. |
void |
validate(ValidationContext context,
ValidatedInfo validatedInfo)
validate an actual value against this simple type. |
Methods inherited from interface org.apache.xerces.impl.xs.XSTypeDecl |
getBaseType, getFinalSet, getTargetNamespace, getTypeName, getXSType, isAnonymous |
Field Detail |
public static final short FACET_LENGTH
public static final short FACET_MINLENGTH
public static final short FACET_MAXLENGTH
public static final short FACET_PATTERN
public static final short FACET_ENUMERATION
public static final short FACET_WHITESPACE
public static final short FACET_MAXINCLUSIVE
public static final short FACET_MAXEXCLUSIVE
public static final short FACET_MINEXCLUSIVE
public static final short FACET_MININCLUSIVE
public static final short FACET_TOTALDIGITS
public static final short FACET_FRACTIONDIGITS
public static final short VARIETY_ABSENT
public static final short VARIETY_ATOMIC
public static final short VARIETY_LIST
public static final short VARIETY_UNION
public static final short WS_PRESERVE
public static final short WS_REPLACE
public static final short WS_COLLAPSE
public static final short ORDERED_FALSE
public static final short ORDERED_PARTIAL
public static final short ORDERED_TOTAL
public static final short CARDINALITY_FINITE
public static final short CARDINALITY_COUNTABLY_INFINITE
Method Detail |
public java.lang.Object validate(java.lang.String content, ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException
content
- the string value that needs to be validatedcontext
- the validation contextvalidatedInfo
- used to store validation resultpublic void validate(ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException
value
- the actual value that needs to be validatedcontext
- the validation contextvalidatedInfo
- used to provide the actual value and member typesInvalidDatatypeValueException
- exception for invalid values.public void applyFacets(XSFacets facets, short presentFacet, short fixedFacet, ValidationContext context) throws InvalidDatatypeFacetException
XSFacets
is used to pass the value of
different facets.facets
- the value of all the facetspresentFacets
- bit combination value of the costraining facet
constants which are present.fixedFacets
- bit combination value of the costraining facet
constants which are fixed.ValidationContext
- the validation contextInvalidDatatypeFacetException
- exception for invalid facet values.public short getVariety()
public boolean isEqual(java.lang.Object value1, java.lang.Object value2)
value1
- the first valuepublic short getDefinedFacets()
public boolean isIDType()
public short getOrderedFacet()
public boolean isBounded()
public boolean isNumeric()
public short getCardinalityFacet()
public short getWhitespace() throws DatatypeException
DatatypeException
- union datatypes don't have whitespace facet associated with them
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |