APIdia Launch Partner
Top Description Constructors Methods
com.sun.org.apache.xerces.internal.impl.dv.dtd

public Class ENTITYDatatypeValidator

extends Object
implements DatatypeValidator
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.impl.dv.DatatypeValidator
Imports
com.sun.org.apache.xerces.internal.impl.dv.*

ENTITYDatatypeValidator implements the DatattypeValidator interface. This validator embodies the ENTITY attribute type from XML1.0 recommendation. The Value space of ENTITY is the set of all strings that match the NCName production and have been declared as an unparsed entity in a document type definition. The Lexical space of Entity is the set of all strings that match the NCName production. The value space of ENTITY is scoped to a specific instance document.

Authors
Jeffrey Rodriguez, IBM, Sandy Gao, IBM

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 com.sun.org.apache.xerces.internal.impl.dv.DatatypeValidator.validate.

Checks that "content" string is valid ID value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ENTITYDatatypeValidatorback to summary
public ENTITYDatatypeValidator()

Method Detail

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

Implements com.sun.org.apache.xerces.internal.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