Class PSXPathBoundSchema

java.lang.Object
com.helger.schematron.pure.bound.AbstractPSBoundSchema
com.helger.schematron.pure.bound.xpath.PSXPathBoundSchema
All Implemented Interfaces:
IPSBoundSchema

@NotThreadSafe public class PSXPathBoundSchema extends AbstractPSBoundSchema
The default XPath binding for the pure Schematron implementation.
Author:
Philip Helger
  • Constructor Details

    • PSXPathBoundSchema

      public PSXPathBoundSchema(@Nonnull IPSQueryBinding aQueryBinding, @Nonnull PSSchema aOrigSchema, @Nullable String sPhase, @Nullable IPSErrorHandler aCustomErrorListener, @Nullable IPSValidationHandler aCustomValidationHandler, @Nullable IXPathConfig aXPathConfig) throws SchematronBindException
      Create a new bound schema. All the XPath pre-compilation happens inside this constructor, so that the validate(Node, String, IPSValidationHandler) method can be called many times without compiling the XPath statements again and again.
      Parameters:
      aQueryBinding - The query binding to be used. May not be null.
      aOrigSchema - The original schema that should be bound. May not be null.
      sPhase - The selected phase. May be null indicating that the default phase of the schema should be used (if present) or all patterns should be evaluated if no default phase is present.
      aCustomErrorListener - A custom error listener to be used. May be null in which case a LoggingPSErrorHandler is used internally.
      aCustomValidationHandler - The custom PS validation handler. May be null.
      aXPathConfig - The XPath configuration to be used. May be null.
      Throws:
      SchematronBindException - In case XPath expressions are incorrect and pre-compilation fails
  • Method Details