Class ValidationState

  • All Implemented Interfaces:
    ValidationContext
    Direct Known Subclasses:
    ConfigurableValidationState

    public class ValidationState
    extends java.lang.Object
    implements ValidationContext
    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 Detail

      • ValidationState

        public ValidationState()
    • Method Detail

      • 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​(org.apache.xerces.xni.NamespaceContext namespace)
      • setSymbolTable

        public void setSymbolTable​(SymbolTable sTable)
      • checkIDRefID

        public java.util.Iterator 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.
      • getSymbol

        public java.lang.String getSymbol​(java.lang.String symbol)
        Specified by:
        getSymbol in interface ValidationContext
      • getURI

        public java.lang.String getURI​(java.lang.String prefix)
        Specified by:
        getURI in interface ValidationContext
      • setLocale

        public void setLocale​(java.util.Locale locale)