Top Description Constructors Methods
org.apache.xerces.impl.dv.dtd

public Class XML11IDDatatypeValidator

extends IDDatatypeValidator
Class Inheritance
Imports
org.apache.xerces.impl.dv.InvalidDatatypeValueException, .ValidationContext, org.apache.xerces.util.XML11Char

IDDatatypeValidator - ID represents the ID attribute type from XML 1.1 Recommendation. The value space of ID is the set of all strings that match the NCName production and have been used in an XML document. The lexical space of ID is the set of all strings that match the NCName production.

The value space of ID is scoped to a specific instance document.

The following constraint applies: An ID must not appear more than once in an XML document as a value of this type; i.e., ID values must uniquely identify the elements which bear them.

Authors
Jeffrey Rodriguez, IBM, Sandy Gao, IBM, Neil Graham, IBM
Version
$Id: XML11IDDatatypeValidator.java 699892 2008-09-28 21:08:27Z mrglavas $

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
validate(String
the string value that needs to be validated
content
,
ValidationContext
the validation context
context
)

Overrides org.apache.xerces.impl.dv.dtd.IDDatatypeValidator.validate.

Implements org.apache.xerces.impl.dv.DatatypeValidator.validate.

Checks that "content" string is valid ID value.

Constructor Detail

XML11IDDatatypeValidatorback to summary
public XML11IDDatatypeValidator()

Method Detail

validateback to summary
public void validate(String content, ValidationContext context) throws InvalidDatatypeValueException

Overrides org.apache.xerces.impl.dv.dtd.IDDatatypeValidator.validate.

Implements org.apache.xerces.impl.dv.DatatypeValidator.validate.

Checks that "content" string is valid ID value. If invalid a Datatype validation exception is thrown.

Parameters
content:String

the string value that needs to be validated

context:ValidationContext

the validation context

Exceptions
InvalidDatatypeValueException:
if the content is invalid according to the rules for the validators
See Also
InvalidDatatypeValueException