Object

jto.validation.forms

PM

Related Doc: package forms

Permalink

object PM

Play provides you a Map[String, Seq[String]] (aliased as UrlFormEncoded) in request body for urlFormEncoded requests. It's generally a lot more convenient to work on Map[Path, Seq[String]] to define Rules. This object contains methods used to convert Map[String, Seq[String]] <-> Map[Path, Seq[String]]

Note

We use the alias UrlFormEncoded, which is just a Map[String, Seq[String]]

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

Type Members

  1. type PM = Map[Path, String]

    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. object PathParser extends RegexParsers

    Permalink

    A parser converting a key of a Map[String, [Seq[String]]] to a Path instance foo.bar[0].baz becomes Path \ "foo" \ "bar" \ 0 \ "baz"

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def asKey(p: Path): String

    Permalink

    Convert a Path to a String key

    Convert a Path to a String key

    p

    The path to convert

    returns

    A String representation of p

  7. def asPath(k: String): Path

    Permalink

    Convert a String key to a Path using PathParser

    Convert a String key to a Path using PathParser

    k

    The String representation of path to convert

    returns

    a Path

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def find(path: Path)(data: PM): PM

    Permalink

    Find a sub-Map of all the elements at a Path starting with path

    Find a sub-Map of all the elements at a Path starting with path

    path

    The prefix to look for

    data

    The map in which you want to lookup

    returns

    a sub Map. If no key of data starts with path, this map will be empty

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

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

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

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  19. def repath(m: UrlFormEncoded, f: (Path) ⇒ Path): UrlFormEncoded

    Permalink

    Apply f to all the keys of m

  20. def repathPM(m: PM, f: (Path) ⇒ Path): PM

    Permalink

    Apply f to all the keys of m

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

    Permalink
    Definition Classes
    AnyRef
  22. def toM(m: PM): UrlFormEncoded

    Permalink

    Convert a Map[Path, Seq[String]] to a Map[String, Seq[String]]

  23. def toPM(m: UrlFormEncoded): PM

    Permalink

    Convert a Map[String, Seq[String]] to a Map[Path, Seq[String]]

  24. def toString(): String

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped