Object

ltbs.uniform.validation

Rule

Related Doc: package validation

Permalink

object Rule extends ToQuantifiableOps

Linear Supertypes
ToQuantifiableOps, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Rule
  2. ToQuantifiableOps
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class AlwaysPass[A] extends Rule[A] with Product with Serializable

    Permalink
  2. case class Between[A] extends Rule[A] with Product with Serializable

    Permalink
  3. case class ForEachInList[A](inner: Rule[A]) extends Rule[List[A]] with Product with Serializable

    Permalink
  4. case class LengthBetween[A] extends Rule[A] with Product with Serializable

    Permalink
  5. case class MatchesRegex extends Rule[String] with Product with Serializable

    Permalink
  6. case class Max[A] extends Rule[A] with Product with Serializable

    Permalink
  7. case class MaxLength[A] extends Rule[A] with Product with Serializable

    Permalink
  8. case class Min[A] extends Rule[A] with Product with Serializable

    Permalink
  9. case class MinLength[A] extends Rule[A] with Product with Serializable

    Permalink
  10. case class NonEmpty[A] extends Rule[A] with Product with Serializable

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def alwaysPass[A]: Rule[A]

    Permalink

    The simplest validation rule - accepts any value

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def between[A](minValue: A, maxValue: A)(implicit arg0: Order[A]): Rule[A]

    Permalink

    Assert that the input value must come after, or in the same position as, minValue but before or in the same position as maxValue if the elements were put in order.

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def cond[A](predicate: (A) ⇒ Boolean, errorMsg: String, args: Any*): Rule[A]

    Permalink

    A custom rule from a predicate and an error message

  9. def condAtPath[A](pathHead: String, pathTail: String*)(predicate: (A) ⇒ Boolean, errorMsg: String, args: Any*): Rule[A]

    Permalink

    A custom rule from a predicate and an error message to be applied to a supplied path

  10. def condError[A](predicate: (A) ⇒ Boolean, errorTree: ErrorTree): Rule[A]

    Permalink

    A custom rule from a predicate and an error tree

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def error(errorMsg: String, args: Any*): ErrorTree

    Permalink
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def forEachInList[A](inner: Rule[A]): Rule[List[A]]

    Permalink
  16. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  19. def lengthBetween[A](min: Int, max: Int)(implicit arg0: Quantifiable[A]): Rule[A]

    Permalink

    Assert that there are at least len elements, but no more than max

  20. def matchesRegex(regex: String, errorMsg: String = "format"): Rule[String]

    Permalink

    Assert that the input string matches the given regular expression

  21. def max[A](maxValue: A, errorMsg: String = "max")(implicit arg0: Order[A]): Rule[A]

    Permalink

    Assert that the input value must come before, or in the same position as, maxValue if the elements were put in order

  22. def maxLength[A](len: Int, errorMsg: String = "maxLength")(implicit arg0: Quantifiable[A]): Rule[A]

    Permalink

    Assert that there are no more than len elements

  23. def min[A](minValue: A, errorMsg: String = "min")(implicit arg0: Order[A]): Rule[A]

    Permalink

    Assert that the input value must come after, or in the same position as, minValue if the elements were put in order

  24. def minLength[A](len: Int, errorMsg: String = "minLength")(implicit arg0: Quantifiable[A]): Rule[A]

    Permalink

    Assert that there are at least len elements

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

    Permalink
    Definition Classes
    AnyRef
  26. def nonEmpty[A](implicit arg0: Empty[A]): Rule[A]

    Permalink

    Assert that the input is not empty (in the sense of a monoid being 'empty')

  27. def nonEmpty[A](errorMsg: String)(implicit arg0: Empty[A]): Rule[A]

    Permalink

    Assert that the input is not empty (in the sense of a monoid being 'empty')

  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. implicit def toQuantifiableOps[A](target: A)(implicit tc: Quantifiable[A]): Ops[A] { type TypeClassType = ltbs.uniform.validation.Quantifiable[A] }

    Permalink
    Definition Classes
    ToQuantifiableOps
    Annotations
    @SuppressWarnings()
  32. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ToQuantifiableOps

Inherited from AnyRef

Inherited from Any

Ungrouped