s_mach.validate

impl

package impl

Visibility
  1. Public
  2. All

Type Members

  1. case class CollectionValidator[M[AA] <: Traversable[AA], A](va: Validator[A])(implicit ca: ClassTag[A], cm: ClassTag[M[A]]) extends ValidatorImpl[M[A]] with Product with Serializable

    A validator for a collection of A

    A validator for a collection of A

    M

    the collection type

    A

    the type validated

    va

    the validator for A

    ca

    the class tag for A

  2. case class CompositeValidator[A](validators: List[Validator[A]])(implicit ca: ClassTag[A]) extends ValidatorImpl[A] with Product with Serializable

    A validator that is composed of zero or more validators

    A validator that is composed of zero or more validators

    A

    type validated

    validators

    composed validators

  3. case class EnsureValidator[A](message: String, f: (A) ⇒ Boolean)(implicit ca: ClassTag[A]) extends ValidatorImpl[A] with Product with Serializable

    A validator that tests a constraint

    A validator that tests a constraint

    A

    type validated

    message

    text to explain what the constraint tests

    f

    tests the constraint

  4. case class ExplainValidator[A](r: Rule)(implicit ca: ClassTag[A]) extends ValidatorImpl[A] with Product with Serializable

    A validator that adds a rule for display but not check

    A validator that adds a rule for display but not check

    A

    type validated

    r

    rule to display but not check

  5. case class FieldValidator[A, B](fieldName: String, unapply: (A) ⇒ B, vb: Validator[B])(implicit ca: ClassTag[A]) extends ValidatorImpl[A] with Product with Serializable

  6. case class OptionValidator[A](va: Validator[A])(implicit ca: ClassTag[A]) extends ValidatorImpl[Option[A]] with Product with Serializable

    A validator for an Option[A] that always passes if set to None

    A validator for an Option[A] that always passes if set to None

    A

    type validated

    va

    the validator for A

    ca

    class tag for A

  7. class ValidateMacroBuilderImpl extends BlackboxHelper

  8. abstract class ValidatorImpl[A] extends Validator[A]

  9. case class ValueClassValidator[V <: IsValueClass[A], A](va: Validator[A])(implicit ca: ClassTag[A], cv: ClassTag[V]) extends ValidatorImpl[V] with Product with Serializable

Ungrouped