|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Datatype with the support of the RELAX NG compatibility spec.
This interface defines additional features which are necessary for datatypes to work with RELAX NG compatibility processors.
| Field Summary | |
static int |
ID_TYPE_ID
Indicates that RELAX NG compatibility processors should treat this datatype as having ID semantics. |
static int |
ID_TYPE_IDREF
Indicates that RELAX NG compatibility processors should treat this datatype as having IDREF semantics. |
static int |
ID_TYPE_IDREFS
Indicates that RELAX NG compatibility processors should treat this datatype as having IDREFS semantics. |
static int |
ID_TYPE_NULL
Indicates that the datatype doesn't have ID/IDREF semantics. |
| Method Summary | |
int |
getIdType()
Checks if the ID/IDREF semantics is associated with this datatype. |
boolean |
isContextDependent()
Checks if this datatype may need a context object for the validation. |
| Methods inherited from interface org.relaxng.datatype.Datatype |
checkValid, createStreamingValidator, createValue, isValid, sameValue, valueHashCode |
| Field Detail |
public static final int ID_TYPE_NULL
getIdType() method.public static final int ID_TYPE_ID
getIdType() method.public static final int ID_TYPE_IDREF
getIdType() method.public static final int ID_TYPE_IDREFS
getIdType() method.| Method Detail |
public int getIdType()
ID_TYPE_NULL. If it has such a semantics
(for example, XSD:ID, XSD:IDREF and comp:ID type), then
it returns ID_TYPE_ID, ID_TYPE_IDREF or
ID_TYPE_IDREFS.public boolean isContextDependent()
The callee must return true even if the context is not always necessary.
XSD's string and short types
are examples of context-independent datatypes.
QName and ENTITY types
are examples of context-dependent datatypes.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||