Package

ltbs.uniform

validation

Permalink

package validation

Validation and data transformation capabilities used in uniform.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. validation
  2. EmptyInstances
  3. ToEmptyOps
  4. ToQuantifiableOps
  5. Compat
  6. QuantifiableInstances
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class AlongWithRule[A](a: Rule[A], b: Rule[A]) extends Rule[A] with Product with Serializable

    Permalink
  2. trait Compat extends QuantifiableInstances

    Permalink
  3. trait Empty[A] extends Serializable

    Permalink

    A type that can be checked to see if it is 'empty' (in the sense of a Monoid being empty).

    A type that can be checked to see if it is 'empty' (in the sense of a Monoid being empty). Note that unlike with Monoid it does not require a definition for empty, only the ability to check if an element is empty

    Annotations
    @implicitNotFound( ... )
  4. trait EmptyInstances extends AnyRef

    Permalink
  5. case class FollowedByRule[A](a: Rule[A], b: Rule[A]) extends Rule[A] with Product with Serializable

    Permalink
  6. trait Quantifiable[A] extends Serializable

    Permalink

    A type that has elements that can be counted

    A type that has elements that can be counted

    Set(1,2,3).qty
    "test".qty
    Annotations
    @implicitNotFound( ... )
  7. trait QuantifiableInstances extends AnyRef

    Permalink
  8. implicit class RichRule[A] extends AnyRef

    Permalink
  9. implicit class RichTransformation[A, B] extends AnyRef

    Permalink
  10. type Rule[A] = (A) ⇒ Validated[ErrorTree, A]

    Permalink

    A validation rule used to check input data.

  11. type Transformation[A, B] = (A) ⇒ Validated[ErrorTree, B]

    Permalink

Value Members

  1. object Empty extends Serializable

    Permalink
  2. object Quantifiable extends Serializable

    Permalink
  3. object Rule extends ToQuantifiableOps

    Permalink
  4. object Transformation

    Permalink
  5. implicit val emptyInt: Empty[Int] { def empty: Int }

    Permalink
    Definition Classes
    EmptyInstances
  6. implicit def emptyMonoid[A](implicit mon: Monoid[A]): Empty[A] { def empty: A }

    Permalink
    Definition Classes
    EmptyInstances
  7. implicit def emptyNumeric[A](implicit num: Numeric[A]): Empty[A] { def empty: A }

    Permalink
    Definition Classes
    EmptyInstances
  8. implicit def emptyOpt[A]: Empty[Option[A]] { def empty: Option[A] }

    Permalink
    Definition Classes
    EmptyInstances
  9. implicit def emptyQuantifiable[A](implicit qty: Quantifiable[A]): Empty[A]

    Permalink
    Definition Classes
    EmptyInstances
  10. implicit val emptyString: Empty[String] { def empty: String }

    Permalink
    Definition Classes
    EmptyInstances
  11. def instance[A](e: A): Empty[A] { def empty: A }

    Permalink

    Convenience method to create an Empty instance from a supplied value

    Convenience method to create an Empty instance from a supplied value

    implicit val emptyString: Empty[String] = instance("")
    Definition Classes
    EmptyInstances
  12. implicit def quantGenTranversable[A <: GenTraversableOnce[_]]: Quantifiable[A]

    Permalink
    Definition Classes
    Compat
  13. implicit val quantString: Quantifiable[String]

    Permalink
    Definition Classes
    QuantifiableInstances
  14. implicit def ruleMonoidInstance[A]: Monoid[Rule[A]]

    Permalink
  15. implicit def toEmptyOps[A](target: A)(implicit tc: Empty[A]): Ops[A] { type TypeClassType = ltbs.uniform.validation.Empty[A] }

    Permalink
    Definition Classes
    ToEmptyOps
    Annotations
    @SuppressWarnings()
  16. 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()

Inherited from EmptyInstances

Inherited from ToEmptyOps

Inherited from ToQuantifiableOps

Inherited from Compat

Inherited from QuantifiableInstances

Inherited from AnyRef

Inherited from Any

Ungrouped