diff --git a/docs/apidocs/allclasses-index.html b/docs/apidocs/allclasses-index.html index d6a11aa..324070a 100644 --- a/docs/apidocs/allclasses-index.html +++ b/docs/apidocs/allclasses-index.html @@ -1,52 +1,55 @@ - + All Classes and Interfaces (modular-validators 1.0.0-SNAPSHOT API) - + - - - - - - + + + + + + - -
-
+ diff --git a/docs/apidocs/allpackages-index.html b/docs/apidocs/allpackages-index.html index 864cea6..9c62c02 100644 --- a/docs/apidocs/allpackages-index.html +++ b/docs/apidocs/allpackages-index.html @@ -1,52 +1,55 @@ - + All Packages (modular-validators 1.0.0-SNAPSHOT API) - + - - - - - - + + + + + + - -
-
+ diff --git a/docs/apidocs/be/sddevelopment/validation/core/Checks.html b/docs/apidocs/be/sddevelopment/validation/core/Checks.html index 4cc6296..dcb6ba1 100644 --- a/docs/apidocs/be/sddevelopment/validation/core/Checks.html +++ b/docs/apidocs/be/sddevelopment/validation/core/Checks.html @@ -1,31 +1,32 @@ - + Checks (modular-validators 1.0.0-SNAPSHOT API) - + - - - - - - - + + + + + + + - -
-
-

Methods inherited from class java.lang.Object

-clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+

Methods inherited from class java.lang.Object

+clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait @@ -136,19 +130,25 @@

Method Details

  • haveNonNullField

    -
    public static <S> Predicate<S> haveNonNullField(Function<S,?> extractor)
    +
    +
    public static <S> Predicate<S> haveNonNullField(Function<S,?> extractor)
    +
  • haveNonEmpty

    -
    public static <S> Predicate<S> haveNonEmpty(Function<S,String> extractor)
    +
    +
    public static <S> Predicate<S> haveNonEmpty(Function<S,String> extractor)
    +
  • haveNullField

    -
    public static <S> Predicate<S> haveNullField(Function<S,?> extractor)
    +
    +
    public static <S> Predicate<S> haveNullField(Function<S,?> extractor)
    +
  • @@ -157,12 +157,11 @@

    haveNullField

    - - + diff --git a/docs/apidocs/be/sddevelopment/validation/core/Constrained.html b/docs/apidocs/be/sddevelopment/validation/core/Constrained.html index 78f3fb5..71aba69 100644 --- a/docs/apidocs/be/sddevelopment/validation/core/Constrained.html +++ b/docs/apidocs/be/sddevelopment/validation/core/Constrained.html @@ -1,31 +1,32 @@ - + Constrained (modular-validators 1.0.0-SNAPSHOT API) - + - - - - - - - + + + + + + + - -
    -
    @@ -172,73 +173,93 @@

    Method Details

  • isValid

    +
    public boolean isValid()
    +
  • adheresTo

    +
    public Constrained<T> adheresTo(Constraint<T> constraint)
    +
  • constrain

    +
    public static <T> Constrained<T> constrain(T toConstrain)
    +
  • constrain

    +
    public static <T> Constrained<T> constrain(T toConstrain, ModularRuleset<T> ruleset)
    +
  • of

    +
    public static <T> Constrained<T> of(T toConstrain, ModularRuleset<T> ruleset)
    +
  • rationale

    +
    public Rationale rationale()
    +
  • feedback

    -
    public void feedback(String errorMessage) +
    +
    public void feedback(String errorMessage) throws InvalidObjectException
    Throws:
    InvalidObjectException
    +
  • guard

    +
    public void guard() throws InvalidObjectException
    Throws:
    InvalidObjectException
    +
  • extract

    -
    public <R> Constrained<R> extract(Function<T,R> extractor)
    +
    +
    public <R> Constrained<R> extract(Function<T,R> extractor)
    +
  • ifValid

    -
    public void ifValid(Consumer<T> consumer)
    +
    +
    public void ifValid(Consumer<T> consumer)
    +
  • @@ -247,12 +268,11 @@

    ifValid

    - - + diff --git a/docs/apidocs/be/sddevelopment/validation/core/Constraint.ConstraintBuilder.html b/docs/apidocs/be/sddevelopment/validation/core/Constraint.ConstraintBuilder.html index 184a252..dbb6793 100644 --- a/docs/apidocs/be/sddevelopment/validation/core/Constraint.ConstraintBuilder.html +++ b/docs/apidocs/be/sddevelopment/validation/core/Constraint.ConstraintBuilder.html @@ -1,31 +1,32 @@ - + Constraint.ConstraintBuilder (modular-validators 1.0.0-SNAPSHOT API) - + - - - - - - - + + + + + + + - -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait @@ -145,19 +146,25 @@

    Method Details

  • done

    +
    public Constraint<T> done()
    +
  • requires

    -
    public Constraint.ConstraintBuilder<T> requires(Predicate<T> predicate)
    +
    +
    public Constraint.ConstraintBuilder<T> requires(Predicate<T> predicate)
    +
  • describedAs

    -
    public Constraint.ConstraintBuilder<T> describedAs(String description)
    +
    +
    public Constraint.ConstraintBuilder<T> describedAs(String description)
    +
  • @@ -166,12 +173,11 @@

    describedAs

    - - + diff --git a/docs/apidocs/be/sddevelopment/validation/core/Constraint.html b/docs/apidocs/be/sddevelopment/validation/core/Constraint.html index 4713792..98c5810 100644 --- a/docs/apidocs/be/sddevelopment/validation/core/Constraint.html +++ b/docs/apidocs/be/sddevelopment/validation/core/Constraint.html @@ -1,31 +1,32 @@ - + Constraint (modular-validators 1.0.0-SNAPSHOT API) - + - - - - - - - + + + + + + + - -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait @@ -146,7 +144,9 @@

    Field Details

  • IS_NOT_EMPTY

    -
    public static final Constraint<String> IS_NOT_EMPTY
    +
    +
    public static final Constraint<String> IS_NOT_EMPTY
    +
  • @@ -160,7 +160,9 @@

    Method Details

  • isNotEmpty

    -
    public static Constraint<String> isNotEmpty()
    +
    +
    public static Constraint<String> isNotEmpty()
    +
  • @@ -169,12 +171,11 @@

    isNotEmpty

    - - + diff --git a/docs/apidocs/be/sddevelopment/validation/core/Evaluation.html b/docs/apidocs/be/sddevelopment/validation/core/Evaluation.html index 38d1027..2bd9924 100644 --- a/docs/apidocs/be/sddevelopment/validation/core/Evaluation.html +++ b/docs/apidocs/be/sddevelopment/validation/core/Evaluation.html @@ -1,31 +1,32 @@ - + Evaluation (modular-validators 1.0.0-SNAPSHOT API) - + - - - - - - - + + + + + + + - -
    -
    -

    Methods inherited from class java.lang.Object

    -getClass, notify, notifyAll, wait, wait, wait
    +

    Methods inherited from class java.lang.Object

    +getClass, notify, notifyAll, wait, wait, wait @@ -171,13 +172,17 @@

    Enum Constant Details

  • PASS

    +
    public static final Evaluation PASS
    +
  • FAIL

    +
    public static final Evaluation FAIL
    +
  • @@ -191,6 +196,7 @@

    Method Details

  • values

    +
    public static Evaluation[] values()
    Returns an array containing the constants of this enum class, in the order they are declared.
    @@ -198,12 +204,14 @@

    values

    Returns:
    an array containing the constants of this enum class, in the order they are declared
    +
  • valueOf

    -
    public static Evaluation valueOf(String name)
    +
    +
    public static Evaluation valueOf(String name)
    Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are @@ -214,9 +222,10 @@

    valueOf

    Returns:
    the enum constant with the specified name
    Throws:
    -
    IllegalArgumentException - if this enum class has no constant with the specified name
    -
    NullPointerException - if the argument is null
    +
    IllegalArgumentException - if this enum class has no constant with the specified name
    +
    NullPointerException - if the argument is null
    +
  • @@ -225,12 +234,11 @@

    valueOf

    - - + diff --git a/docs/apidocs/be/sddevelopment/validation/core/InvalidObjectException.html b/docs/apidocs/be/sddevelopment/validation/core/InvalidObjectException.html index fefd2e8..7a85704 100644 --- a/docs/apidocs/be/sddevelopment/validation/core/InvalidObjectException.html +++ b/docs/apidocs/be/sddevelopment/validation/core/InvalidObjectException.html @@ -1,31 +1,32 @@ - + InvalidObjectException (modular-validators 1.0.0-SNAPSHOT API) - + - - - - - - - + + + + + + + - -
    -
    + diff --git a/docs/apidocs/be/sddevelopment/validation/core/ModularRuleset.ModularValidatorBuilder.html b/docs/apidocs/be/sddevelopment/validation/core/ModularRuleset.ModularValidatorBuilder.html index a4820ea..f3832a8 100644 --- a/docs/apidocs/be/sddevelopment/validation/core/ModularRuleset.ModularValidatorBuilder.html +++ b/docs/apidocs/be/sddevelopment/validation/core/ModularRuleset.ModularValidatorBuilder.html @@ -1,31 +1,32 @@ - + ModularRuleset.ModularValidatorBuilder (modular-validators 1.0.0-SNAPSHOT API) - + - - - - - - - + + + + + + + - -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait @@ -147,32 +149,51 @@

    Method Details

  • must

    -
    public ModularRuleset.ModularValidatorBuilder<S> must(Predicate<S> requirement, - String description)
    +
    +
    public ModularRuleset.ModularValidatorBuilder<S> must(Predicate<S> requirement, + String description)
    +
    +
    +
  • +
  • +
    +

    mayNot

    +
    +
    public ModularRuleset.ModularValidatorBuilder<S> mayNot(Predicate<S> interdiction, + String description)
    +
  • must

    +
  • withRules

    - +
    + +
  • iHaveSpoken

    +
    public ModularRuleset<S> iHaveSpoken()
    +
  • done

    +
    public ModularRuleset<S> done()
    +
  • @@ -181,12 +202,11 @@

    done

    - - + diff --git a/docs/apidocs/be/sddevelopment/validation/core/ModularRuleset.html b/docs/apidocs/be/sddevelopment/validation/core/ModularRuleset.html index e020946..83e8472 100644 --- a/docs/apidocs/be/sddevelopment/validation/core/ModularRuleset.html +++ b/docs/apidocs/be/sddevelopment/validation/core/ModularRuleset.html @@ -1,31 +1,32 @@ - + ModularRuleset (modular-validators 1.0.0-SNAPSHOT API) - + - - - - - - - + + + + + + + - -
    -
    @@ -163,44 +162,58 @@

    Method Details

  • constrain

    +
    public Constrained<T> constrain(T toValidate)
    +
  • assess

    +
    public Rationale assess(T toValidate)
    +
  • check

    +
    public Rationale check(T data)
    +
  • quickCheck

    +
    public Rationale quickCheck(T data)
    +
  • aValid

    +
    public static <S> -ModularRuleset.ModularValidatorBuilder<S> aValid(Class<S> ignoredClazz)
    +ModularRuleset.ModularValidatorBuilder<S> aValid(Class<S> ignoredClazz)
    +
  • toBuilder

    +
    +
  • emptyRules

    +
    public static <T> ModularRuleset<T> emptyRules()
    +
  • @@ -209,12 +222,11 @@

    emptyRules

    - - + diff --git a/docs/apidocs/be/sddevelopment/validation/core/Rationale.html b/docs/apidocs/be/sddevelopment/validation/core/Rationale.html index 4395c0b..e11fc88 100644 --- a/docs/apidocs/be/sddevelopment/validation/core/Rationale.html +++ b/docs/apidocs/be/sddevelopment/validation/core/Rationale.html @@ -1,31 +1,32 @@ - + Rationale (modular-validators 1.0.0-SNAPSHOT API) - + - - - - - - - + + + + + + + - -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait @@ -145,37 +142,49 @@

    Method Details

  • emptyRationale

    +
    public static Rationale emptyRationale()
    +
  • rationaleWithReasons

    -
    public static Rationale rationaleWithReasons(List<Reason> reasons)
    +
    +
    public static Rationale rationaleWithReasons(List<Reason> reasons)
    +
  • details

    -
    public List<Reason> details()
    +
    +
    public List<Reason> details()
    +
  • add

    +
    public Rationale add(Reason reason)
    +
  • isPassing

    +
    public boolean isPassing()
    +
  • isFailing

    +
    public boolean isFailing()
    +
  • @@ -184,12 +193,11 @@

    isFailing

    - - + diff --git a/docs/apidocs/be/sddevelopment/validation/core/Reason.html b/docs/apidocs/be/sddevelopment/validation/core/Reason.html index de3d578..424fb26 100644 --- a/docs/apidocs/be/sddevelopment/validation/core/Reason.html +++ b/docs/apidocs/be/sddevelopment/validation/core/Reason.html @@ -1,31 +1,32 @@ - + Reason (modular-validators 1.0.0-SNAPSHOT API) - + - - - - - - - + + + + + + + - -
    -