object Validators
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Validators
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- class PredicateValidator [TValue] extends Validator[TValue]
- trait Validator [TValue] extends AnyRef
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
- @throws( ... )
-
def
enumValue(fieldName: String, enum: Enumeration, messageFormat: String = "%%s must be one of %s."): Validator[String]
Checks if the value of the data is a value of the specified enum.
-
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
-
def
greaterThan[T](fieldName: String, min: T, messageFormat: String = "%%s must be greater than %s.")(implicit T: (T) ⇒ Ordered[T]): Validator[T]
Must be greater than the min param.
-
def
greaterThanOrEqualTo[T](fieldName: String, min: T, messageFormat: String = ...)(implicit T: (T) ⇒ Ordered[T]): Validator[T]
Must be greater than or equal to the min param.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lessThan[T](fieldName: String, max: T, messageFormat: String = "%%s must be less than %s.")(implicit T: (T) ⇒ Ordered[T]): Validator[T]
Must be less than the max param.
-
def
lessThanOrEqualTo[T](fieldName: String, max: T, messageFormat: String = ...)(implicit T: (T) ⇒ Ordered[T]): Validator[T]
Must be less than or equal to the max param.
-
def
minLength(fieldName: String, min: Int, messageFormat: String = ...): Validator[String]
Must have a minimum length of min.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nonEmptyCollection[TResult <: Traversable[_]](fieldName: String, messageFormat: String = "%s must not be empty."): Validator[TResult]
Must be a collection which isn't empty.
-
def
nonEmptyString(fieldName: String, messageFormat: String = "%s must be present."): Validator[String]
Must be a non-empty [String].
Must be a non-empty [String]. null, " ", and "" are not allowed.
-
def
notNull(fieldName: String, messageFormat: String = "%s must be present."): Validator[AnyRef]
Must be non-null.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
oneOf[TResult](fieldName: String, messageFormat: String = "%%s must be one of %s.", expected: Seq[TResult]): Validator[TResult]
Must be included in the expected collection.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
validAbsoluteUrl(fieldName: String, allowLocalHost: Boolean, messageFormat: String = "%s must be a valid absolute url.", schemes: Seq[String] = Seq("http", "https")): Validator[String]
Must be a valid absolute URL, parseable by the Apache Commons URI class.
-
def
validConfirmation(fieldName: String, confirmationFieldName: String, confirmationValue: ⇒ String, messageFormat: String = "%%s must match %s."): Validator[String]
The confirmation fieldName must have a true value.
-
def
validEmail(fieldName: String, messageFormat: String = "%s must be a valid email."): Validator[String]
Must be a valid email as determined by org.apache.commons.validator.routines.EmailValidator
-
def
validFormat(fieldName: String, regex: Regex, messageFormat: String = "%s is invalid."): Validator[String]
Must match the regex.
-
def
validUrl(fieldName: String, allowLocalHost: Boolean, messageFormat: String = "%s must be a valid url.", schemes: Seq[String] = Seq("http", "https")): Validator[String]
Must be a valid URL, parseable by the Apache Commons URI class.
- def validate[TValue](fieldName: String, messageFormat: String = "%s is invalid.", validate: (TValue) ⇒ Boolean): PredicateValidator[TValue]
-
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
- @throws( ... )