s_mach.validate

Validator

Related Docs: trait Validator | package validate

object Validator

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Validator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def apply[A](validators: Validator[A]*)(implicit ca: ClassTag[A]): Validator[A]

    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

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def builder[A](implicit ca: ClassTag[A]): Validator[A]

    Alias for empty to support builder syntax

    Alias for empty to support builder syntax

    returns

    an empty Validator

    Annotations
    @inline()
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def comment[A](message: String)(implicit ca: ClassTag[A]): Validator[A]

    A validator that adds a comment to rules

    A validator that adds a comment to rules

    A

    type validated

    message

    comment

  9. def empty[A](implicit ca: ClassTag[A]): Validator[A] { ... /* 4 definitions in type refinement */ }

    returns

    a Validator that has no rules or descendant schema with a default schema for the type

  10. def ensure[A](message: String)(f: (A) ⇒ Boolean)(implicit ca: ClassTag[A]): Validator[A]

    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

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def field[A, B](fieldName: String, unapply: (A) ⇒ B)(vb: Validator[B])(implicit ca: ClassTag[A]): Validator[A]

  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. macro def forProductType[A <: Product]: Validator[A]

    Generate a DataDiff implementation for a product type

    Generate a DataDiff implementation for a product type

    A

    the product type

    returns

    the DataDiff implementation

  16. def forValueClass[V <: IsValueClass[A], A](other: Validator[A])(implicit va: Validator[A], ca: ClassTag[A], cv: ClassTag[V]): Validator[V]

    A validator for a user-defined value class that constrains the value space of the underlying type

    A validator for a user-defined value class that constrains the value space of the underlying type

    other

    validators that constrain the value space of the underlying type

    returns

  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def macroForProductType[A](c: Context)(implicit arg0: scala.reflect.macros.blackbox.Context.WeakTypeTag[A]): scala.reflect.macros.blackbox.Context.Expr[Validator[A]]

  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. def optional[A](va: Validator[A])(implicit ca: ClassTag[A]): Validator[Option[A]]

    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

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def zeroOrMore[M[AA] <: Traversable[AA], A](va: Validator[A])(implicit ca: ClassTag[A], cm: ClassTag[M[A]]): Validator[M[A]]

    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

Inherited from AnyRef

Inherited from Any

Ungrouped