Trait/Object

net.psforever.config

Constraints

Related Docs: object Constraints | package config

Permalink

trait Constraints extends AnyRef

Defines a set of built-in constraints.

Source
ConfigValidation.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Constraints
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  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. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Constraints to any2stringadd[Constraints] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Constraints, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Constraints to ArrowAssoc[Constraints] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. 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]

  9. 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]

  10. def ensuring(cond: (Constraints) ⇒ Boolean, msg: ⇒ Any): Constraints

    Permalink
    Implicit information
    This member is added by an implicit conversion from Constraints to Ensuring[Constraints] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (Constraints) ⇒ Boolean): Constraints

    Permalink
    Implicit information
    This member is added by an implicit conversion from Constraints to Ensuring[Constraints] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): Constraints

    Permalink
    Implicit information
    This member is added by an implicit conversion from Constraints to Ensuring[Constraints] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): Constraints

    Permalink
    Implicit information
    This member is added by an implicit conversion from Constraints to Ensuring[Constraints] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Constraints to StringFormat[Constraints] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  18. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  21. 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)]

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  26. 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]

  27. 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]

  28. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  30. 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.

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def [B](y: B): (Constraints, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Constraints to ArrowAssoc[Constraints] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Constraints to any2stringadd[Constraints]

Inherited by implicit conversion StringFormat from Constraints to StringFormat[Constraints]

Inherited by implicit conversion Ensuring from Constraints to Ensuring[Constraints]

Inherited by implicit conversion ArrowAssoc from Constraints to ArrowAssoc[Constraints]

Ungrouped