Class ValidationState

java.lang.Object
org.apache.jena.ext.xerces.impl.validation.ValidationState
All Implemented Interfaces:
ValidationContext
Direct Known Subclasses:
ConfigurableValidationState

public class ValidationState extends Object implements ValidationContext
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 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

      public void setEntityState(EntityState state)
    • setNamespaceSupport

      public void setNamespaceSupport(NamespaceContext namespace)
    • setSymbolTable

      public void setSymbolTable(SymbolTable sTable)
    • 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.
    • 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 interface ValidationContext
    • needFacetChecking

      public boolean needFacetChecking()
      Specified by:
      needFacetChecking in interface ValidationContext
    • needToNormalize

      public boolean needToNormalize()
      Specified by:
      needToNormalize in interface ValidationContext
    • useNamespaces

      public boolean useNamespaces()
      Specified by:
      useNamespaces in interface ValidationContext
    • isEntityDeclared

      public boolean isEntityDeclared(String name)
      Specified by:
      isEntityDeclared in interface ValidationContext
    • isEntityUnparsed

      public boolean isEntityUnparsed(String name)
      Specified by:
      isEntityUnparsed in interface ValidationContext
    • isIdDeclared

      public boolean isIdDeclared(String name)
      Specified by:
      isIdDeclared in interface ValidationContext
    • addId

      public void addId(String name)
      Specified by:
      addId in interface ValidationContext
    • addIdRef

      public void addIdRef(String name)
      Specified by:
      addIdRef in interface ValidationContext
    • getSymbol

      public String getSymbol(String symbol)
      Specified by:
      getSymbol in interface ValidationContext
    • getURI

      public String getURI(String prefix)
      Specified by:
      getURI in interface ValidationContext
    • setLocale

      public void setLocale(Locale locale)
    • getLocale

      public Locale getLocale()
      Specified by:
      getLocale in interface ValidationContext