org.apache.xerces.impl.validation

Class ValidationState

public class ValidationState extends Object implements ValidationContext

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

INTERNAL:

Usage of this class is not supported. It may be altered or removed at any time.

Version: $Id: ValidationState.java,v 1.15 2004/10/04 22:07:41 mrglavas Exp $

Author: Elena Litani, IBM

Method Summary
voidaddId(String name)
voidaddIdRef(String name)
StringcheckIDRefID()
return null if all IDREF values have a corresponding ID value; otherwise return the first IDREF value without a matching ID value.
StringgetSymbol(String symbol)
StringgetURI(String prefix)
booleanisEntityDeclared(String name)
booleanisEntityUnparsed(String name)
booleanisIdDeclared(String name)
booleanneedExtraChecking()
booleanneedFacetChecking()
booleanneedToNormalize()
voidreset()
voidresetIDTables()
The same validation state can be used to validate more than one (schema) validation roots.
voidsetEntityState(EntityState state)
voidsetExtraChecking(boolean newValue)
voidsetFacetChecking(boolean newValue)
voidsetNamespaceSupport(NamespaceContext namespace)
voidsetNormalizationRequired(boolean newValue)
voidsetSymbolTable(SymbolTable sTable)
voidsetUsingNamespaces(boolean newValue)
booleanuseNamespaces()

Method Detail

addId

public void addId(String name)

addIdRef

public void addIdRef(String name)

checkIDRefID

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.

getSymbol

public String getSymbol(String symbol)

getURI

public String getURI(String prefix)

isEntityDeclared

public boolean isEntityDeclared(String name)

isEntityUnparsed

public boolean isEntityUnparsed(String name)

isIdDeclared

public boolean isIdDeclared(String name)

needExtraChecking

public boolean needExtraChecking()

needFacetChecking

public boolean needFacetChecking()

needToNormalize

public boolean needToNormalize()

reset

public void reset()

resetIDTables

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.

setEntityState

public void setEntityState(EntityState state)

setExtraChecking

public void setExtraChecking(boolean newValue)

setFacetChecking

public void setFacetChecking(boolean newValue)

setNamespaceSupport

public void setNamespaceSupport(NamespaceContext namespace)

setNormalizationRequired

public void setNormalizationRequired(boolean newValue)

setSymbolTable

public void setSymbolTable(SymbolTable sTable)

setUsingNamespaces

public void setUsingNamespaces(boolean newValue)

useNamespaces

public boolean useNamespaces()
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.