public class NMTOKENDatatypeValidator extends Object implements DatatypeValidator
Constructor and Description |
---|
NMTOKENDatatypeValidator() |
Modifier and Type | Method and Description |
---|---|
void |
validate(String content,
ValidationContext context)
Checks that "content" string is valid NMTOKEN value.
|
public void validate(String content, ValidationContext context) throws InvalidDatatypeValueException
validate
in interface DatatypeValidator
content
- the string value that needs to be validatedcontext
- the validation contextInvalidDatatypeException
- if the content is
invalid according to the rules for the validatorsInvalidDatatypeValueException
InvalidDatatypeValueException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.