| java.lang.Object org.apache.xerces.impl.validation.ValidationState org.apache.xerces.impl.validation.ConfigurableValidationState
ConfigurableValidationState | final public class ConfigurableValidationState extends ValidationState (Code) | | An extension of ValidationState which can be configured to turn
off checking for ID/IDREF errors and unparsed entity errors.
author: Peter McCracken, IBM version: $Id: ConfigurableValidationState.java 449320 2006-09-23 22:37:56Z mrglavas $ |
ConfigurableValidationState | public ConfigurableValidationState()(Code) | | Creates a new ConfigurableValidationState.
By default, error checking for both ID/IDREFs
and unparsed entities are turned on.
|
addId | public void addId(String name)(Code) | | Adds the ID, if ID/IDREF checking is enabled.
Parameters: name - the ID to add |
addIdRef | public void addIdRef(String name)(Code) | | Adds the IDREF, if ID/IDREF checking is enabled.
Parameters: name - the IDREF to add |
checkIDRefID | public String checkIDRefID()(Code) | | Checks if all IDREFs have a corresponding ID.
null, if ID/IDREF checking is turned offotherwise, returns the value of the super implementation |
isEntityDeclared | public boolean isEntityDeclared(String name)(Code) | | Checks if an entity is declared.
true, if unparsed entity checking is turned offotherwise, returns the value of the super implementation |
isEntityUnparsed | public boolean isEntityUnparsed(String name)(Code) | | Checks if an entity is unparsed.
true, if unparsed entity checking is turned offotherwise, returns the value of the super implementation |
isIdDeclared | public boolean isIdDeclared(String name)(Code) | | Checks if an ID has already been declared.
false, if ID/IDREF checking is turned offotherwise, returns the value of the super implementation |
setIdIdrefChecking | public void setIdIdrefChecking(boolean setting)(Code) | | Turns checking for ID/IDREF errors on and off.
Parameters: setting - true to turn on error checking,false to turn off error checking |
setUnparsedEntityChecking | public void setUnparsedEntityChecking(boolean setting)(Code) | | Turns checking for unparsed entity errors on and off.
Parameters: setting - true to turn on error checking,false to turn off error checking |
|
|