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
Ordering
- Alphabetic
- By Inheritance
Inherited
- QParams
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- case class Fail[E](name: String, error: E) extends Product with Serializable
- type Log[E] = List[Fail[E]]
- type QueryFn[E, A] = (Map, Option[String], Log[E]) => (Option[String], Log[E], A)
- case class QueryM[E, A](exec: QueryFn[E, A]) extends Product with Serializable
- type QueryResult[E, A] = Either[Log[E], A]
- case class QueryResultX[E, A](r: QueryResult[E, A]) extends Product with Serializable
- type Report[E, A] = Either[E, Option[A]]
Left if the query has failed, right if it has not (but may be empty)
- type Reporter[E, A, B] = (Option[A]) => Report[E, B]
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def even[E](e: (Int) => E): Reporter[E, Int, Int]
- def external[E, A](key: String, value: Option[A]): QueryM[E, Option[A]]
Create and name a validation token for an external input
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def ignore[E, A, B](f: (Option[A]) => Option[B]): Reporter[E, A, B]
Convert f into an error reporter that never reports errors
- def int[E](e: (String) => E): Reporter[E, String, Int]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def long[E](e: (String) => E): Reporter[E, String, Long]
- def lookup[E](key: String): QueryM[E, Option[String]]
Create a validation token from a named value from the input Params.Map
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nonempty[E](e: E): Reporter[E, String, String]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def odd[E](e: (Int) => E): Reporter[E, Int, Int]
- def optional[E, A](xs: Option[A]): Report[E, Option[A]]
- def pred[E, A](p: (A) => Boolean, err: (A) => E): Reporter[E, A, A]
Convert a predicate into an error reporter
- implicit def queryOrElse[E, A](r: QueryResult[E, A]): QueryResultX[E, A]
- def required[E, A](err: E): Reporter[E, A, A]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trimmed[E]: Reporter[E, String, String]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- 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