object
Validators
Type Members
-
-
trait
Validator[TValue] extends AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
enumValue(fieldName: String, enum: Enumeration, messageFormat: String = "%%s must be one of %s."): Validator[String]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
greaterThan[T](fieldName: String, min: T, messageFormat: String = "%%s must be greater than %s.")(implicit T: (T) ⇒ Ordered[T]): Validator[T]
-
def
greaterThanOrEqualTo[T](fieldName: String, min: T, messageFormat: String = ...)(implicit T: (T) ⇒ Ordered[T]): Validator[T]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
lessThan[T](fieldName: String, max: T, messageFormat: String = "%%s must be less than %s.")(implicit T: (T) ⇒ Ordered[T]): Validator[T]
-
def
lessThanOrEqualTo[T](fieldName: String, max: T, messageFormat: String = ...)(implicit T: (T) ⇒ Ordered[T]): Validator[T]
-
def
minLength(fieldName: String, min: Int, messageFormat: String = ...): Validator[String]
-
final
def
ne(arg0: AnyRef): Boolean
-
def
nonEmptyCollection[TResult <: Traversable[_]](fieldName: String, messageFormat: String = "%s must not be empty."): Validator[TResult]
-
def
nonEmptyString(fieldName: String, messageFormat: String = "%s must be present."): Validator[String]
-
def
notNull(fieldName: String, messageFormat: String = "%s must be present."): Validator[AnyRef]
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
oneOf[TResult](fieldName: String, messageFormat: String = "%%s must be one of %s.", expected: Seq[TResult]): Validator[TResult]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
def
validAbsoluteUrl(fieldName: String, allowLocalHost: Boolean, messageFormat: String = "%s must be a valid absolute url.", schemes: Seq[String] = Seq("http", "https")): Validator[String]
-
def
validConfirmation(fieldName: String, confirmationFieldName: String, confirmationValue: ⇒ String, messageFormat: String = "%%s must match %s."): Validator[String]
-
def
validEmail(fieldName: String, messageFormat: String = "%s must be a valid email."): Validator[String]
-
def
validFormat(fieldName: String, regex: Regex, messageFormat: String = "%s is invalid."): Validator[String]
-
def
validUrl(fieldName: String, allowLocalHost: Boolean, messageFormat: String = "%s must be a valid url.", schemes: Seq[String] = Seq("http", "https")): Validator[String]
-
def
validate[TValue](fieldName: String, messageFormat: String = "%s is invalid.", validate: (TValue) ⇒ Boolean): PredicateValidator[TValue]
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
(Since version 2.6.0) Use scalatra-forms instead.