Module org.apache.jena.core
Class ValidationState
java.lang.Object
org.apache.jena.ext.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.
@xerces.internal
- Version:
- $Id: ValidationState.java 713638 2008-11-13 04:42:18Z mrglavas $
- Author:
- Elena Litani, IBM
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
return null if all IDREF values have a corresponding ID value; otherwise return the first IDREF value without a matching ID value.boolean
isEntityDeclared
(String name) boolean
isEntityUnparsed
(String name) boolean
isIdDeclared
(String name) boolean
boolean
boolean
void
reset()
void
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
void
setNamespaceSupport
(NamespaceContext namespace) void
setNormalizationRequired
(boolean newValue) void
setSymbolTable
(SymbolTable sTable) void
setUsingNamespaces
(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
-
setSymbolTable
-
checkIDRefID
return null if all IDREF values have a corresponding ID value; otherwise return the first IDREF value 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:
needExtraChecking
in interfaceValidationContext
-
needFacetChecking
public boolean needFacetChecking()- Specified by:
needFacetChecking
in interfaceValidationContext
-
needToNormalize
public boolean needToNormalize()- Specified by:
needToNormalize
in interfaceValidationContext
-
useNamespaces
public boolean useNamespaces()- Specified by:
useNamespaces
in interfaceValidationContext
-
isEntityDeclared
- Specified by:
isEntityDeclared
in interfaceValidationContext
-
isEntityUnparsed
- Specified by:
isEntityUnparsed
in interfaceValidationContext
-
isIdDeclared
- Specified by:
isIdDeclared
in interfaceValidationContext
-
addId
- Specified by:
addId
in interfaceValidationContext
-
addIdRef
- Specified by:
addIdRef
in interfaceValidationContext
-
getSymbol
- Specified by:
getSymbol
in interfaceValidationContext
-
getURI
- Specified by:
getURI
in interfaceValidationContext
-
setLocale
-
getLocale
- Specified by:
getLocale
in interfaceValidationContext
-