|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.thaiopensource.datatype.xsd.DatatypeBase
com.thaiopensource.datatype.xsd.QNameDatatype
class QNameDatatype
| Nested Class Summary | |
|---|---|
(package private) static class |
QNameDatatype.QName
|
| Field Summary |
|---|
| Fields inherited from class com.thaiopensource.datatype.xsd.DatatypeBase |
|---|
WHITE_SPACE_COLLAPSE, WHITE_SPACE_PRESERVE, WHITE_SPACE_REPLACE |
| Fields inherited from interface org.relaxng.datatype.Datatype |
|---|
ID_TYPE_ID, ID_TYPE_IDREF, ID_TYPE_IDREFS, ID_TYPE_NULL |
| Constructor Summary | |
|---|---|
QNameDatatype()
|
|
| Method Summary | |
|---|---|
(package private) boolean |
allowsValue(String str,
ValidationContext vc)
|
(package private) Object |
getValue(String str,
ValidationContext vc)
|
boolean |
isContextDependent()
Checks if this datatype may need a context object for the validation. |
boolean |
lexicallyAllows(String str)
|
| Methods inherited from class com.thaiopensource.datatype.xsd.DatatypeBase |
|---|
alwaysValid, checkValid, createStreamingValidator, createValue, getIdType, getMeasure, getOrderRelation, getPrimitive, getWhiteSpace, isValid, normalizeWhiteSpace, sameValue, valueHashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
QNameDatatype()
| Method Detail |
|---|
public boolean lexicallyAllows(String str)
lexicallyAllows in class DatatypeBase
Object getValue(String str,
ValidationContext vc)
getValue in class DatatypeBase
boolean allowsValue(String str,
ValidationContext vc)
allowsValue in class DatatypeBasepublic boolean isContextDependent()
DatatypeThe callee must return true even when the context is not always necessary. (For example, the "QName" type doesn't need a context object when validating unprefixed string. But nonetheless QName must return true.)
XSD's string and short types
are examples of context-independent datatypes.
Its QName and ENTITY types
are examples of context-dependent datatypes.
When a datatype is context-independent, then
the Datatype.isValid(java.lang.String, org.relaxng.datatype.ValidationContext) method, the Datatype.checkValid(java.lang.String, org.relaxng.datatype.ValidationContext) method,
the Datatype.createStreamingValidator(org.relaxng.datatype.ValidationContext) method and
the Datatype.createValue(java.lang.String, org.relaxng.datatype.ValidationContext) method can be called without
providing a context object.
isContextDependent in interface DatatypeisContextDependent in class DatatypeBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||