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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidreturn null if all IDREF values have a corresponding ID value; otherwise return the first IDREF value 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(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
-
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:
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
-