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

public Class IDREFDatatypeValidator

extends Object
implements DatatypeValidator
Class Inheritance
All Implemented Interfaces
org.apache.xerces.impl.dv.DatatypeValidator
Known Direct Subclasses
org.apache.xerces.impl.dv.dtd.XML11IDREFDatatypeValidator
Imports
org.apache.xerces.impl.dv.DatatypeValidator, .InvalidDatatypeValueException, .ValidationContext, org.apache.xerces.util.XMLChar

IDREFDatatypeValidator - represents the IDREFS attribute type from XML 1.0 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

Authors
Jeffrey Rodriguez, IBM, Sandy Gao, IBM
Version
$Id: IDREFDatatypeValidator.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
)

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

Checks that "content" string is valid IDREF value.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

IDREFDatatypeValidatorback to summary
public IDREFDatatypeValidator()

Method Detail

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

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

Checks that "content" string is valid IDREF 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