org.apache.xerces.impl.validation
Class ConfigurableValidationState
- ValidationContext
public final class ConfigurableValidationState
An extension of ValidationState which can be configured to turn
off checking for ID/IDREF errors and unparsed entity errors.
$Id: ConfigurableValidationState.java 375197 2006-02-06 05:52:13Z mrglavas $
void | addId(String name) - Adds the ID, if ID/IDREF checking is enabled.
|
void | addIdRef(String name) - Adds the IDREF, if ID/IDREF checking is enabled.
|
String | checkIDRefID() - Checks if all IDREFs have a corresponding ID.
|
boolean | isEntityDeclared(String name) - Checks if an entity is declared.
|
boolean | isEntityUnparsed(String name) - Checks if an entity is unparsed.
|
boolean | isIdDeclared(String name) - Checks if an ID has already been declared.
|
void | setIdIdrefChecking(boolean setting) - Turns checking for ID/IDREF errors on and off.
|
void | setUnparsedEntityChecking(boolean setting) - Turns checking for unparsed entity errors on and off.
|
addId , addIdRef , checkIDRefID , getSymbol , getURI , isEntityDeclared , isEntityUnparsed , isIdDeclared , needExtraChecking , needFacetChecking , needToNormalize , reset , resetIDTables , setEntityState , setExtraChecking , setFacetChecking , setNamespaceSupport , setNormalizationRequired , setSymbolTable , setUsingNamespaces , useNamespaces |
ConfigurableValidationState
public ConfigurableValidationState()
Creates a new ConfigurableValidationState.
By default, error checking for both ID/IDREFs
and unparsed entities are turned on.
checkIDRefID
public String checkIDRefID()
Checks if all IDREFs have a corresponding ID.
- checkIDRefID in interface ValidationState
- null, if ID/IDREF checking is turned off
otherwise, returns the value of the super implementation
setIdIdrefChecking
public void setIdIdrefChecking(boolean setting)
Turns checking for ID/IDREF errors on and off.
setUnparsedEntityChecking
public void setUnparsedEntityChecking(boolean setting)
Turns checking for unparsed entity errors on and off.
Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.