diff --git a/README.md b/README.md index c0c9a713..028fc189 100644 --- a/README.md +++ b/README.md @@ -154,8 +154,8 @@ Please ensure that your stack size is at least 1MB (for Saxon). Using the Oracle * Updated to ph-diver 3.0.1 * 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 + * Each `IValidationExecutorManager` now has an `IValidityDeterminator` + * By using `IValidityDeterminator.getDefault()` 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` diff --git a/phive-api/src/main/java/com/helger/phive/api/execute/IValidationExecutionManager.java b/phive-api/src/main/java/com/helger/phive/api/execute/IValidationExecutionManager.java index 67b6aa6c..dc28b4a3 100644 --- a/phive-api/src/main/java/com/helger/phive/api/execute/IValidationExecutionManager.java +++ b/phive-api/src/main/java/com/helger/phive/api/execute/IValidationExecutionManager.java @@ -24,6 +24,7 @@ import com.helger.commons.state.EValidity; import com.helger.phive.api.result.ValidationResultList; import com.helger.phive.api.source.IValidationSource; +import com.helger.phive.api.validity.IValidityDeterminator; /** * Interface for an execution manager that applies a set of rules onto an object @@ -35,6 +36,12 @@ */ public interface IValidationExecutionManager { + /** + * @return The validity determinator to be used. Never null. + */ + @Nonnull + IValidityDeterminator getValidityDeterminator (); + /** * Perform a validation with all the contained executors and the system * default locale. diff --git a/phive-api/src/main/java/com/helger/phive/api/execute/ValidationExecutionManager.java b/phive-api/src/main/java/com/helger/phive/api/execute/ValidationExecutionManager.java index 866a9d1c..8e11d8dd 100644 --- a/phive-api/src/main/java/com/helger/phive/api/execute/ValidationExecutionManager.java +++ b/phive-api/src/main/java/com/helger/phive/api/execute/ValidationExecutionManager.java @@ -86,6 +86,12 @@ public ValidationExecutionManager (@Nonnull final IValidityDeterminator getValidityDeterminator () + { + return m_aValidityDeterminator; + } + /** * Add a single executor. *