public class

ValidationState

extends Object
implements ValidationContext
java.lang.Object
   ↳ org.apache.xerces.impl.validation.ValidationState
Known Direct Subclasses

Class Overview

Implementation of ValidationContext inteface. Used to establish an environment for simple type validation.@xerces.internal

Summary

Public Constructors
ValidationState()
Public Methods
void addId(String name)
void addIdRef(String name)
String checkIDRefID()
return null if all IDREF values have a corresponding ID value; otherwise return the first IDREF value without a matching ID value.
String getSymbol(String symbol)
String getURI(String prefix)
boolean isEntityDeclared(String name)
boolean isEntityUnparsed(String name)
boolean isIdDeclared(String name)
boolean needExtraChecking()
boolean needFacetChecking()
boolean needToNormalize()
void reset()
void resetIDTables()
The same validation state can be used to validate more than one (schema) validation roots.
void setEntityState(EntityState state)
void setExtraChecking(boolean newValue)
void setFacetChecking(boolean newValue)
void setNamespaceSupport(NamespaceContext namespace)
void setNormalizationRequired(boolean newValue)
void setSymbolTable(SymbolTable sTable)
void setUsingNamespaces(boolean newValue)
boolean useNamespaces()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.xerces.impl.dv.ValidationContext

Public Constructors

public ValidationState ()

Public Methods

public void addId (String name)

public void addIdRef (String name)

public String checkIDRefID ()

return null if all IDREF values have a corresponding ID value; otherwise return the first IDREF value without a matching ID value.

public String getSymbol (String symbol)

public String getURI (String prefix)

public boolean isEntityDeclared (String name)

public boolean isEntityUnparsed (String name)

public boolean isIdDeclared (String name)

public boolean needExtraChecking ()

public boolean needFacetChecking ()

public boolean needToNormalize ()

public void reset ()

public void resetIDTables ()

The same validation state can be used to validate more than one (schema) validation roots. Entity/Namespace/Symbol are shared, but each validation root needs its own id/idref tables. So we need this method to reset only the two tables.

public void setEntityState (EntityState state)

public void setExtraChecking (boolean newValue)

public void setFacetChecking (boolean newValue)

public void setNamespaceSupport (NamespaceContext namespace)

public void setNormalizationRequired (boolean newValue)

public void setSymbolTable (SymbolTable sTable)

public void setUsingNamespaces (boolean newValue)

public boolean useNamespaces ()