Class ValidationState
java.lang.Object
org.apache.xerces.impl.validation.ValidationState
- All Implemented Interfaces:
ValidationContext
- Direct Known Subclasses:
ConfigurableValidationState
Implementation of the ValidationContext interface. 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 1380445 2012-09-04 04:43:34Z mrglavas $
- Author:
- Elena Litani, IBM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidreturn null if all IDREF values have a corresponding ID value; otherwise return an iterator for all the IDREF values without a matching ID value.booleanisEntityDeclared(String name) booleanisEntityUnparsed(String name) booleanisIdDeclared(String name) booleanbooleanbooleanvoidreset()voidThe same validation state can be used to validate more than one (schema) validation roots.voidsetEntityState(EntityState state) voidsetExtraChecking(boolean newValue) voidsetFacetChecking(boolean newValue) voidvoidsetNamespaceSupport(org.apache.xerces.xni.NamespaceContext namespace) voidsetNormalizationRequired(boolean newValue) voidsetSymbolTable(SymbolTable sTable) voidsetUsingNamespaces(boolean newValue) boolean
-
Constructor Details
-
ValidationState
public ValidationState()
-
-
Method Details
-
setExtraChecking
public void setExtraChecking(boolean newValue) -
setFacetChecking
public void setFacetChecking(boolean newValue) -
setNormalizationRequired
public void setNormalizationRequired(boolean newValue) -
setUsingNamespaces
public void setUsingNamespaces(boolean newValue) -
setEntityState
-
setNamespaceSupport
public void setNamespaceSupport(org.apache.xerces.xni.NamespaceContext namespace) -
setSymbolTable
-
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. -
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. -
needExtraChecking
public boolean needExtraChecking()- Specified by:
needExtraCheckingin interfaceValidationContext
-
needFacetChecking
public boolean needFacetChecking()- Specified by:
needFacetCheckingin interfaceValidationContext
-
needToNormalize
public boolean needToNormalize()- Specified by:
needToNormalizein interfaceValidationContext
-
useNamespaces
public boolean useNamespaces()- Specified by:
useNamespacesin interfaceValidationContext
-
isEntityDeclared
- Specified by:
isEntityDeclaredin interfaceValidationContext
-
isEntityUnparsed
- Specified by:
isEntityUnparsedin interfaceValidationContext
-
isIdDeclared
- Specified by:
isIdDeclaredin interfaceValidationContext
-
addId
- Specified by:
addIdin interfaceValidationContext
-
addIdRef
- Specified by:
addIdRefin interfaceValidationContext
-
getSymbol
- Specified by:
getSymbolin interfaceValidationContext
-
getURI
- Specified by:
getURIin interfaceValidationContext
-
setLocale
-
getLocale
- Specified by:
getLocalein interfaceValidationContext
-