NMTOKENDatatypeValidatorpublic class NMTOKENDatatypeValidator extends Object implements DatatypeValidatorNMTOKEN datatype validator. |
Constructors Summary |
---|
public NMTOKENDatatypeValidator()
|
Methods Summary |
---|
public void | validate(java.lang.String content, ValidationContext context)Checks that "content" string is valid NMTOKEN value.
If invalid a Datatype validation exception is thrown.
if (!XMLChar.isValidNmtoken(content)) {
throw new InvalidDatatypeValueException("NMTOKENInvalid", new Object[]{content});
}
|
|