IDDatatypeValidator - ID represents the ID attribute type from XML 1.1 Recommendation. The value space of ID is the set of all strings that match the NCName production and have been used in an XML document. The lexical space of ID is the set of all strings that match the NCName production.
The value space of ID is scoped to a specific instance document.
The following constraint applies: An ID must not appear more than once in an XML document as a value of this type; i.e., ID values must uniquely identify the elements which bear them.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | validate(String
the string value that needs to be validated content, ValidationContext the validation context context)Overrides org. Implements org. |
| XML11IDDatatypeValidator | back to summary |
|---|---|
| public XML11IDDatatypeValidator() | |
| validate | back to summary |
|---|---|
| public void validate(String content, ValidationContext context) throws InvalidDatatypeValueException Overrides org. Implements org. Checks that "content" string is valid ID value. If invalid a Datatype validation exception is thrown.
| |