From 90d5c4f8fd7b020c2111bf7d93fa982e448797af Mon Sep 17 00:00:00 2001 From: Philip Helger Date: Sun, 15 Sep 2024 00:49:58 +0200 Subject: [PATCH] Ctd --- README.md | 6 +++++- .../helger/phive/api/execute/IValidationExecutor.java | 9 +++++++++ .../com/helger/phive/api/validity/EExtendedValidity.java | 2 +- .../helger/phive/api/validity/IValidityDeterminator.java | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7e8cd698..c0c9a713 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,11 @@ Please ensure that your stack size is at least 1MB (for Saxon). Using the Oracle * v10.0.0 - work in progress * Updated to ph-diver 3.0.1 - * Added new classes `EExtendedValidity` and `` + * The outcome of a validation can now be `valid`, `invalid` or `unclear` (new) + * Added new classes `EExtendedValidity` and `IValidityDeterminator` + * Each `IValidationExecutor` now has an `IValidityDeterminator` + * By using `IValidityDeterminator.DEFAULT` the previous state can be re-created + * Renamed method `IValidationArtefact.getValidationArtefactType` to `getValidationType` * v9.2.2 - 2024-07-29 * Switched from custom error level to `CustomErrorDetails` * v9.2.1 - 2024-04-25 diff --git a/phive-api/src/main/java/com/helger/phive/api/execute/IValidationExecutor.java b/phive-api/src/main/java/com/helger/phive/api/execute/IValidationExecutor.java index cac4a801..cf83b100 100644 --- a/phive-api/src/main/java/com/helger/phive/api/execute/IValidationExecutor.java +++ b/phive-api/src/main/java/com/helger/phive/api/execute/IValidationExecutor.java @@ -25,6 +25,7 @@ import com.helger.phive.api.artefact.IValidationArtefact; import com.helger.phive.api.result.ValidationResult; import com.helger.phive.api.source.IValidationSource; +import com.helger.phive.api.validity.IValidityDeterminator; /** * Base interface for performing validation of a single XML document based on @@ -44,6 +45,14 @@ public interface IValidationExecutor @Nonnull IValidationArtefact getValidationArtefact (); + /** + * @return The validity determinator used for that executor. Never + * null. + * @since 10.0.0 + */ + @Nonnull + IValidityDeterminator getValidityDeterminator (); + /** * @return true if a negative validation stops further * validations. diff --git a/phive-api/src/main/java/com/helger/phive/api/validity/EExtendedValidity.java b/phive-api/src/main/java/com/helger/phive/api/validity/EExtendedValidity.java index 6655a7d6..9e644f97 100644 --- a/phive-api/src/main/java/com/helger/phive/api/validity/EExtendedValidity.java +++ b/phive-api/src/main/java/com/helger/phive/api/validity/EExtendedValidity.java @@ -33,7 +33,7 @@ * * * @author Philip Helger - * @since 9.3.0 + * @since 10.0.0 */ public enum EExtendedValidity implements IHasID { diff --git a/phive-api/src/main/java/com/helger/phive/api/validity/IValidityDeterminator.java b/phive-api/src/main/java/com/helger/phive/api/validity/IValidityDeterminator.java index 93df3c03..434331cd 100644 --- a/phive-api/src/main/java/com/helger/phive/api/validity/IValidityDeterminator.java +++ b/phive-api/src/main/java/com/helger/phive/api/validity/IValidityDeterminator.java @@ -24,7 +24,7 @@ * Generic interface for a decision provider for validation results. * * @author Philip Helger - * @since 9.3.0 + * @since 10.0.0 */ public interface IValidityDeterminator {