trait Constraints extends AnyRef
- Alphabetic
- By Inheritance
- Constraints
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
emailAddress: Constraint[String]
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]
-
def
emailAddress(errorMessage: String = "error.email"): Constraint[String]
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]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
max[T](maxValue: T, strict: Boolean = false, errorMessage: String = "error.max", strictErrorMessage: String = "error.max.strict")(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 parameterDefines a maximum value for
Ordered
values, by default the value must be less than or equal to the constraint parametername[constraint.max(maxValue)] error[error.max(maxValue)] or [error.max.strict(maxValue)]
-
def
maxLength(length: Int, errorMessage: String = "error.maxLength"): Constraint[String]
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 parametername[constraint.maxLength(length)] error[error.maxLength(length)]
-
def
min[T](minValue: T, strict: Boolean = false, errorMessage: String = "error.min", strictErrorMessage: String = "error.min.strict")(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 parameterDefines a minimum value for
Ordered
values, by default the value must be greater than or equal to the constraint parametername[constraint.min(minValue)] error[error.min(minValue)] or [error.min.strict(minValue)]
-
def
minLength(length: Int, errorMessage: String = "error.minLength"): Constraint[String]
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 parametername[constraint.minLength(length)] error[error.minLength(length)]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nonEmpty: Constraint[String]
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]
-
def
nonEmpty(errorMessage: String = "error.required"): Constraint[String]
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]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
pattern(regex: ⇒ Regex, name: String = "constraint.pattern", error: String = "error.pattern"): Constraint[String]
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 patternname[constraint.pattern(regex)] or defined by the name parameter. error[error.pattern(regex)] or defined by the error parameter.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )