public final class

ConfigurableValidationState

extends ValidationState
java.lang.Object
   ↳ org.apache.xerces.impl.validation.ValidationState
     ↳ org.apache.xerces.impl.validation.ConfigurableValidationState

Class Overview

An extension of ValidationState which can be configured to turn off checking for ID/IDREF errors and unparsed entity errors.

@xerces.internal

Summary

Public Constructors
ConfigurableValidationState()
Creates a new ConfigurableValidationState.
Public Methods
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.
[Expand]
Inherited Methods
From class org.apache.xerces.impl.validation.ValidationState
From class java.lang.Object
From interface org.apache.xerces.impl.dv.ValidationContext

Public Constructors

public ConfigurableValidationState ()

Creates a new ConfigurableValidationState. By default, error checking for both ID/IDREFs and unparsed entities are turned on.

Public Methods

public void addId (String name)

Adds the ID, if ID/IDREF checking is enabled.

Parameters
name the ID to add

public void addIdRef (String name)

Adds the IDREF, if ID/IDREF checking is enabled.

Parameters
name the IDREF to add

public String checkIDRefID ()

Checks if all IDREFs have a corresponding ID.

Returns
  • null, if ID/IDREF checking is turned off otherwise, returns the value of the super implementation

public boolean isEntityDeclared (String name)

Checks if an entity is declared.

Returns
  • true, if unparsed entity checking is turned off otherwise, returns the value of the super implementation

public boolean isEntityUnparsed (String name)

Checks if an entity is unparsed.

Returns
  • true, if unparsed entity checking is turned off otherwise, returns the value of the super implementation

public boolean isIdDeclared (String name)

Checks if an ID has already been declared.

Returns
  • false, if ID/IDREF checking is turned off otherwise, returns the value of the super implementation

public void setIdIdrefChecking (boolean setting)

Turns checking for ID/IDREF errors on and off.

Parameters
setting true to turn on error checking, false to turn off error checking

public void setUnparsedEntityChecking (boolean setting)

Turns checking for unparsed entity errors on and off.

Parameters
setting true to turn on error checking, false to turn off error checking