object QParams

Fined-grained error reporting for arbitrarily many failing parameters. Import QParams._ to use; see ParamsSpec for examples.

Annotations
@deprecated
Deprecated

(Since version 0.8.3) This validation scheme is deprecated, use Directives instead

Source
params.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. QParams
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Fail[E](name: String, error: E) extends Product with Serializable
  2. type Log[E] = List[Fail[E]]
  3. type QueryFn[E, A] = (Map, Option[String], Log[E]) => (Option[String], Log[E], A)
  4. case class QueryM[E, A](exec: QueryFn[E, A]) extends Product with Serializable
  5. type QueryResult[E, A] = Either[Log[E], A]
  6. case class QueryResultX[E, A](r: QueryResult[E, A]) extends Product with Serializable
  7. type Report[E, A] = Either[E, Option[A]]

    Left if the query has failed, right if it has not (but may be empty)

  8. type Reporter[E, A, B] = (Option[A]) => Report[E, B]

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def even[E](e: (Int) => E): Reporter[E, Int, Int]
  9. def external[E, A](key: String, value: Option[A]): QueryM[E, Option[A]]

    Create and name a validation token for an external input

  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def ignore[E, A, B](f: (Option[A]) => Option[B]): Reporter[E, A, B]

    Convert f into an error reporter that never reports errors

  14. def int[E](e: (String) => E): Reporter[E, String, Int]
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def long[E](e: (String) => E): Reporter[E, String, Long]
  17. def lookup[E](key: String): QueryM[E, Option[String]]

    Create a validation token from a named value from the input Params.Map

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def nonempty[E](e: E): Reporter[E, String, String]
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def odd[E](e: (Int) => E): Reporter[E, Int, Int]
  23. def optional[E, A](xs: Option[A]): Report[E, Option[A]]
  24. def pred[E, A](p: (A) => Boolean, err: (A) => E): Reporter[E, A, A]

    Convert a predicate into an error reporter

  25. implicit def queryOrElse[E, A](r: QueryResult[E, A]): QueryResultX[E, A]
  26. def required[E, A](err: E): Reporter[E, A, A]
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. def trimmed[E]: Reporter[E, String, String]
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  33. def watch[E, A, B](c: (Option[A]) => Option[B], err: (A) => E): Reporter[E, A, B]

    Promote c to an error reporter that fails if Some input is discarded

Inherited from AnyRef

Inherited from Any

Ungrouped