public class XML11IDREFDatatypeValidator extends IDREFDatatypeValidator
IDREFDatatypeValidator - represents the IDREFS attribute type from XML 1.1 recommendation. The Value Space of IDREF is the set of all strings that match the NCName production and have been used in an XML Document as the value of an element or attribute of Type ID. The Lexical space of IDREF is the set of strings that match the NCName production.
The Value space of IDREF is scoped to a specific instance document
Constructor and Description |
---|
XML11IDREFDatatypeValidator() |
Modifier and Type | Method and Description |
---|---|
void |
validate(String content,
ValidationContext context)
Checks that "content" string is valid IDREF value.
|
public void validate(String content, ValidationContext context) throws InvalidDatatypeValueException
validate
in interface DatatypeValidator
validate
in class IDREFDatatypeValidator
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.