Skip to content

v12.3.0

Choose a tag to compare

@phax phax released this 24 Nov 15:42
· 53 commits to master since this release
  • Added new interface IValidationExecutorSetAlias as the common base of all VES aliases, offering getSourceVES ().
    ValidationExecutorSetAlias implements it.
    Breaking: code checking for aliases with instanceof ValidationExecutorSetAlias must switch to instanceof IValidationExecutorSetAlias, as otherwise read-only aliases are not recognised.
  • Added new class ValidationExecutorSetAliasReadOnly that can alias any IValidationExecutorSet, without requiring the source VES to be mutable
  • Added new generic class ValidationExecutorPartial that applies any other XML validation executor (XML Schema, Schematron, ...) on the parts of a document selected by an XPath expression (e.g. the business document inside an SBDH envelope), with an optional prerequisite XPath expression
  • Added new method VesXmlBuilder.addPartialVES to apply all executors of an existing VES on the selected parts of a document
  • Added new nested builder class XSDPartialContext.XSDPartialContextBuilder and the new factory methods XSDPartialContext.builder () and XSDPartialContext.builder (XSDPartialContext)
  • Extended ves-1.0.xsd (v1.0.0-RC7) to apply validation artefacts on parts of a document only (e.g. the business document inside an SBDH envelope), using the new type VesXmlPartialType (xpath, minNodeCount, maxNodeCount):
    • The schematron element has the new optional partial element
    • The ves element has the new optional partialRequires elements (0..n), that apply a complete other VES on the selected parts. They are executed after requires and before the VES' own artefacts.
    • The VES engine maps both onto ValidationExecutorPartial. A precondition of the same element is evaluated on the complete document.
  • The VES engine now applies the precondition of schematron elements. Previously it was silently ignored.
  • Added new submodule phive-bom - a Maven Bill of Materials (BOM) for all phive artefacts. Use it instead of importing phive-parent-pom.

Full Changelog: phive-parent-pom-12.2.0...phive-parent-pom-12.3.0