Trait/Object

play.api.data.validation

Constraints

Related Docs: object Constraints | package validation

Permalink

trait Constraints extends AnyRef

Defines a set of built-in constraints.

Source
Validation.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Constraints
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def emailAddress: Constraint[String]

    Permalink

    Defines an ‘emailAddress’ constraint for String values which will validate email addresses.

    Defines an ‘emailAddress’ constraint for String values which will validate email addresses.

    name[constraint.email] error[error.email]

  7. def emailAddress(errorMessage: String = "error.email"): Constraint[String]

    Permalink

    Defines an ‘emailAddress’ constraint for String values which will validate email addresses.

    Defines an ‘emailAddress’ constraint for String values which will validate email addresses.

    name[constraint.email] error[error.email]

  8. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  14. def max[T](maxValue: T, strict: Boolean = false, errorMessage: String = "error.max", strictErrorMessage: String = "error.max.strict")(implicit ordering: Ordering[T]): Constraint[T]

    Permalink

    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)]

  15. def maxLength(length: Int, errorMessage: String = "error.maxLength"): Constraint[String]

    Permalink

    Defines a maximum length constraint for String values, i.e.

    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)]

  16. def min[T](minValue: T, strict: Boolean = false, errorMessage: String = "error.min", strictErrorMessage: String = "error.min.strict")(implicit ordering: Ordering[T]): Constraint[T]

    Permalink

    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)]

  17. def minLength(length: Int, errorMessage: String = "error.minLength"): Constraint[String]

    Permalink

    Defines a minimum length constraint for String values, i.e.

    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)]

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

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

    Permalink

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

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

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

  20. def nonEmpty(errorMessage: String = "error.required"): Constraint[String]

    Permalink

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

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

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

  21. final def notify(): Unit

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

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

    Permalink

    Defines a regular expression constraint for String values, i.e.

    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.

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

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped