StringValidator validates that XML content is a W3C string type.
The string datatype represents character strings in XML. The value space of string is the set of finite-length sequences of characters (as defined in [XML 1.0 Recommendation (Second Edition)]) that match the Char production from [XML 1.0 Recommendation (Second Edition)]. A character is an atomic unit of communication; it is not further specified except to note that every character has a corresponding Universal Code Set code point ([ISO 10646],[Unicode] and [Unicode3]), which is an integer.
| 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)Implements com. Checks that "content" string is valid string value. |
| StringDatatypeValidator | back to summary |
|---|---|
| public StringDatatypeValidator() | |
| validate | back to summary |
|---|---|
| public void validate(String content, ValidationContext context) throws InvalidDatatypeValueException Implements com. Checks that "content" string is valid string value. If invalid a Datatype validation exception is thrown.
| |