play.api.data.validation

Constraints

object Constraints extends Constraints

Defines a set of built-in constraints.

Source
Validation.scala
Linear Supertypes
Constraints, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Constraints
  2. Constraints
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  14. def max[T](maxValue: T, strict: Boolean = false)(implicit ordering: Ordering[T]): Constraint[T]

    Defines a maximum value for Ordered values, by default the value must be less than or equal to the constraint parameter

    Defines a maximum value for Ordered values, by default the value must be less than or equal to the constraint parameter

    name[constraint.max(maxValue)] error[error.max(maxValue)] or [error.max.strict(maxValue)]

    Definition Classes
    Constraints
  15. def maxLength(length: Int): Constraint[String]

    Defines a maximum length constraint for String values, i.

    Defines a maximum length constraint for String values, i.e. the string’s length must be less than or equal to the constraint parameter

    name[constraint.maxLength(length)] error[error.maxLength(length)]

    Definition Classes
    Constraints
  16. def min[T](minValue: T, strict: Boolean = false)(implicit ordering: Ordering[T]): Constraint[T]

    Defines a minimum value for Ordered values, by default the value must be greater than or equal to the constraint parameter

    Defines a minimum value for Ordered values, by default the value must be greater than or equal to the constraint parameter

    name[constraint.min(minValue)] error[error.min(minValue)] or [error.min.strict(minValue)]

    Definition Classes
    Constraints
  17. def minLength(length: Int): Constraint[String]

    Defines a minimum length constraint for String values, i.

    Defines a minimum length constraint for String values, i.e. the string’s length must be greater than or equal to the constraint parameter

    name[constraint.minLength(length)] error[error.minLength(length)]

    Definition Classes
    Constraints
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def nonEmpty: Constraint[String]

    Defines a ‘required’ constraint for String values, i.

    Defines a ‘required’ constraint for String values, i.e. one in which empty strings are invalid.

    name[constraint.required] error[error.required]

    Definition Classes
    Constraints
  20. final def notify(): Unit

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

    Definition Classes
    AnyRef
  22. def pattern(regex: ⇒ Regex, name: String = "constraint.pattern", error: String = "error.pattern"): Constraint[String]

    Defines a regular expression constraint for String values, i.

    Defines a regular expression constraint for String values, i.e. the string must match the regular expression pattern

    name[constraint.pattern(regex)] or defined by the name parameter. error[error.pattern(regex)] or defined by the error parameter.

    Definition Classes
    Constraints
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Constraints

Inherited from AnyRef

Inherited from Any

Ungrouped