play.api.data

ObjectMapping17

case class ObjectMapping17[R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17](apply: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17) ⇒ R, unapply: (R) ⇒ Option[(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17)], f1: (String, Mapping[A1]), f2: (String, Mapping[A2]), f3: (String, Mapping[A3]), f4: (String, Mapping[A4]), f5: (String, Mapping[A5]), f6: (String, Mapping[A6]), f7: (String, Mapping[A7]), f8: (String, Mapping[A8]), f9: (String, Mapping[A9]), f10: (String, Mapping[A10]), f11: (String, Mapping[A11]), f12: (String, Mapping[A12]), f13: (String, Mapping[A13]), f14: (String, Mapping[A14]), f15: (String, Mapping[A15]), f16: (String, Mapping[A16]), f17: (String, Mapping[A17]), key: String = "", constraints: Seq[Constraint[R]] = immutable.this.Nil) extends Mapping[R] with ObjectMapping with Product with Serializable

Source
ObjectMappings.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, ObjectMapping, Mapping[R], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ObjectMapping17
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ObjectMapping
  7. Mapping
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ObjectMapping17(apply: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17) ⇒ R, unapply: (R) ⇒ Option[(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17)], f1: (String, Mapping[A1]), f2: (String, Mapping[A2]), f3: (String, Mapping[A3]), f4: (String, Mapping[A4]), f5: (String, Mapping[A5]), f6: (String, Mapping[A6]), f7: (String, Mapping[A7]), f8: (String, Mapping[A8]), f9: (String, Mapping[A9]), f10: (String, Mapping[A10]), f11: (String, Mapping[A11]), f12: (String, Mapping[A12]), f13: (String, Mapping[A13]), f14: (String, Mapping[A14]), f15: (String, Mapping[A15]), f16: (String, Mapping[A16]), f17: (String, Mapping[A17]), key: String = "", constraints: Seq[Constraint[R]] = immutable.this.Nil)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addPrefix(prefix: String): Option[String]

    Attributes
    protected
    Definition Classes
    Mapping
  7. val apply: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17) ⇒ R

  8. def applyConstraints(t: R): Either[Seq[FormError], R]

    Attributes
    protected
    Definition Classes
    Mapping
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def bind(data: Map[String, String]): Either[Seq[FormError], R]

    Binds this field, i.

    Binds this field, i.e. construct a concrete value from submitted data.

    data

    the submitted data

    returns

    either a concrete value of type T or a set of errors, if the binding failed

    Definition Classes
    ObjectMapping17Mapping
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def collectErrors(t: R): Seq[FormError]

    Attributes
    protected
    Definition Classes
    Mapping
  13. val constraints: Seq[Constraint[R]]

    The constraints associated with this field.

    The constraints associated with this field.

    Definition Classes
    ObjectMapping17Mapping
  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. val f1: (String, Mapping[A1])

  16. val f10: (String, Mapping[A10])

  17. val f11: (String, Mapping[A11])

  18. val f12: (String, Mapping[A12])

  19. val f13: (String, Mapping[A13])

  20. val f14: (String, Mapping[A14])

  21. val f15: (String, Mapping[A15])

  22. val f16: (String, Mapping[A16])

  23. val f17: (String, Mapping[A17])

  24. val f2: (String, Mapping[A2])

  25. val f3: (String, Mapping[A3])

  26. val f4: (String, Mapping[A4])

  27. val f5: (String, Mapping[A5])

  28. val f6: (String, Mapping[A6])

  29. val f7: (String, Mapping[A7])

  30. val f8: (String, Mapping[A8])

  31. val f9: (String, Mapping[A9])

  32. val field1: Mapping[A1]

  33. val field10: Mapping[A10]

  34. val field11: Mapping[A11]

  35. val field12: Mapping[A12]

  36. val field13: Mapping[A13]

  37. val field14: Mapping[A14]

  38. val field15: Mapping[A15]

  39. val field16: Mapping[A16]

  40. val field17: Mapping[A17]

  41. val field2: Mapping[A2]

  42. val field3: Mapping[A3]

  43. val field4: Mapping[A4]

  44. val field5: Mapping[A5]

  45. val field6: Mapping[A6]

  46. val field7: Mapping[A7]

  47. val field8: Mapping[A8]

  48. val field9: Mapping[A9]

  49. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  50. val format: Option[(String, Seq[Any])]

    The Format expected for this field, if it exists.

    The Format expected for this field, if it exists.

    Definition Classes
    Mapping
  51. final def getClass(): Class[_]

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

    Definition Classes
    Any
  53. val key: String

    The field key.

    The field key.

    Definition Classes
    ObjectMapping17Mapping
  54. val mappings: Seq[Mapping[_]]

    Sub-mappings (these can be seen as sub-keys).

    Sub-mappings (these can be seen as sub-keys).

    Definition Classes
    ObjectMapping17Mapping
  55. def merge(results: Either[Seq[FormError], Any]*): Either[Seq[FormError], Seq[Any]]

    Merges the result of multiple bindings.

    Merges the result of multiple bindings.

    Definition Classes
    ObjectMapping
    See also

    bind()

  56. def merge2(a: Either[Seq[FormError], Seq[Any]], b: Either[Seq[FormError], Seq[Any]]): Either[Seq[FormError], Seq[Any]]

    Merges the result of two bindings.

    Merges the result of two bindings.

    Definition Classes
    ObjectMapping
    See also

    bind()

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

    Definition Classes
    AnyRef
  58. final def notify(): Unit

    Definition Classes
    AnyRef
  59. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  61. def transform[B](f1: (R) ⇒ B, f2: (B) ⇒ R): Mapping[B]

    Transform this Mapping[T] to a Mapping[B].

    Transform this Mapping[T] to a Mapping[B].

    B

    The type of the new mapping.

    f1

    Transform value of T to a value of B

    f2

    Transform value of B to a value of T

    Definition Classes
    Mapping
  62. val unapply: (R) ⇒ Option[(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17)]

  63. def unbind(value: R): (Map[String, String], Seq[FormError])

    Unbinds this field, i.

    Unbinds this field, i.e. transforms a concrete value to plain data.

    value

    the value to unbind

    returns

    either the plain data or a set of errors, if the unbinding failed

    Definition Classes
    ObjectMapping17Mapping
  64. def verifying(addConstraints: Constraint[R]*): ObjectMapping17[R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17]

    Constructs a new Mapping based on this one, by adding new constraints.

    Constructs a new Mapping based on this one, by adding new constraints.

    For example:

    import play.api.data._
    import validation.Constraints._
    
    Form("phonenumber" -> text.verifying(required) )
    returns

    the new mapping

    Definition Classes
    ObjectMapping17Mapping
  65. def verifying(error: ⇒ String, constraint: (R) ⇒ Boolean): Mapping[R]

    Constructs a new Mapping based on this one, by adding a new ad-hoc constraint.

    Constructs a new Mapping based on this one, by adding a new ad-hoc constraint.

    For example:

    import play.api.data._
    import validation.Constraints._
    
    Form("phonenumber" -> text.verifying("Bad phone number", {_.grouped(2).size == 5}))
    error

    The error message used if the constraint fails

    constraint

    a function describing the constraint that returns false on failure

    returns

    the new mapping

    Definition Classes
    Mapping
  66. def verifying(constraint: (R) ⇒ Boolean): Mapping[R]

    Constructs a new Mapping based on this one, by adding a new ad-hoc constraint.

    Constructs a new Mapping based on this one, by adding a new ad-hoc constraint.

    For example:

    import play.api.data._
    import validation.Constraints._
    
    Form("phonenumber" -> text.verifying {_.grouped(2).size == 5})
    constraint

    a function describing the constraint that returns false on failure

    returns

    the new mapping

    Definition Classes
    Mapping
  67. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  70. def withPrefix(prefix: String): ObjectMapping17[R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17]

    Constructs a new Mapping based on this one, adding a prefix to the key.

    Constructs a new Mapping based on this one, adding a prefix to the key.

    prefix

    the prefix to add to the key

    returns

    the same mapping, with only the key changed

    Definition Classes
    ObjectMapping17Mapping

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ObjectMapping

Inherited from Mapping[R]

Inherited from AnyRef

Inherited from Any

Ungrouped