XML11NMTOKENDatatypeValidatorpublic class XML11NMTOKENDatatypeValidator extends NMTOKENDatatypeValidator NMTOKEN datatype validator for NMTokens from XML 1.1. |
Constructors Summary |
---|
public XML11NMTOKENDatatypeValidator()
super();
|
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 (!XML11Char.isXML11ValidNmtoken(content)) {
throw new InvalidDatatypeValueException("NMTOKENInvalid", new Object[]{content});
}
|
|