APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.validation

public Class ValidationState

extends Object
implements ValidationContext
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.impl.dv.ValidationContext
Known Direct Subclasses
com.sun.org.apache.xerces.internal.impl.validation.ConfigurableValidationState
Imports
com.sun.org.apache.xerces.internal.impl.dv.ValidationContext, com.sun.org.apache.xerces.internal.util.SymbolTable, com.sun.org.apache.xerces.internal.xni.NamespaceContext, java.util.ArrayList, .HashSet, .Iterator, .List, .Locale

Implementation of ValidationContext inteface. Used to establish an environment for simple type validation.
Author
Elena Litani, IBM

Field Summary

Modifier and TypeField and Description
private EntityState
private boolean
private boolean
private List<String>
private HashSet<String>
private Locale
private NamespaceContext
private boolean
private boolean
private SymbolTable

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public Iterator<String>
checkIDRefID()

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

public Locale
public String
public String
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public void
public void
resetIDTables()

The same validation state can be used to validate more than one (schema) validation roots.

public void
public void
setExtraChecking(boolean newValue)

public void
setFacetChecking(boolean newValue)

public void
setLocale(Locale locale)

public void
public void
setNormalizationRequired(boolean newValue)

public void
public void
setUsingNamespaces(boolean newValue)

public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fEntityStateback to summary
private EntityState fEntityState
fExtraCheckingback to summary
private boolean fExtraChecking
fFacetCheckingback to summary
private boolean fFacetChecking
fIdRefListback to summary
private List<String> fIdRefList
fIdsback to summary
private HashSet<String> fIds
fLocaleback to summary
private Locale fLocale
fNamespaceContextback to summary
private NamespaceContext fNamespaceContext
fNamespacesback to summary
private boolean fNamespaces
fNormalizeback to summary
private boolean fNormalize
fSymbolTableback to summary
private SymbolTable fSymbolTable

Constructor Detail

ValidationStateback to summary
public ValidationState()

Method Detail

addIdback to summary
public void addId(String name)

Implements com.sun.org.apache.xerces.internal.impl.dv.ValidationContext.addId.

addIdRefback to summary
public void addIdRef(String name)

Implements com.sun.org.apache.xerces.internal.impl.dv.ValidationContext.addIdRef.

checkIDRefIDback to summary
public Iterator<String> checkIDRefID()

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

getLocaleback to summary
public Locale getLocale()

Implements com.sun.org.apache.xerces.internal.impl.dv.ValidationContext.getLocale.

getSymbolback to summary
public String getSymbol(String symbol)

Implements com.sun.org.apache.xerces.internal.impl.dv.ValidationContext.getSymbol.

getURIback to summary
public String getURI(String prefix)

Implements com.sun.org.apache.xerces.internal.impl.dv.ValidationContext.getURI.

isEntityDeclaredback to summary
public boolean isEntityDeclared(String name)

Implements com.sun.org.apache.xerces.internal.impl.dv.ValidationContext.isEntityDeclared.

isEntityUnparsedback to summary
public boolean isEntityUnparsed(String name)

Implements com.sun.org.apache.xerces.internal.impl.dv.ValidationContext.isEntityUnparsed.

isIdDeclaredback to summary
public boolean isIdDeclared(String name)

Implements com.sun.org.apache.xerces.internal.impl.dv.ValidationContext.isIdDeclared.

needExtraCheckingback to summary
public boolean needExtraChecking()

Implements com.sun.org.apache.xerces.internal.impl.dv.ValidationContext.needExtraChecking.

needFacetCheckingback to summary
public boolean needFacetChecking()

Implements com.sun.org.apache.xerces.internal.impl.dv.ValidationContext.needFacetChecking.

needToNormalizeback to summary
public boolean needToNormalize()

Implements com.sun.org.apache.xerces.internal.impl.dv.ValidationContext.needToNormalize.

resetback to summary
public void reset()
resetIDTablesback to summary
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.

setEntityStateback to summary
public void setEntityState(EntityState state)
setExtraCheckingback to summary
public void setExtraChecking(boolean newValue)
setFacetCheckingback to summary
public void setFacetChecking(boolean newValue)
setLocaleback to summary
public void setLocale(Locale locale)
setNamespaceSupportback to summary
public void setNamespaceSupport(NamespaceContext namespace)
setNormalizationRequiredback to summary
public void setNormalizationRequired(boolean newValue)
setSymbolTableback to summary
public void setSymbolTable(SymbolTable sTable)
setUsingNamespacesback to summary
public void setUsingNamespaces(boolean newValue)
useNamespacesback to summary
public boolean useNamespaces()

Implements com.sun.org.apache.xerces.internal.impl.dv.ValidationContext.useNamespaces.