object Validators

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Validators
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class PredicateValidator [TValue] extends Validator[TValue]
  2. trait Validator [TValue] extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. 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.

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  11. 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.

  12. 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.

  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. 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.

  16. 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.

  17. def minLength(fieldName: String, min: Int, messageFormat: String = ...): Validator[String]

    Must have a minimum length of min.

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def nonEmptyCollection[TResult <: Traversable[_]](fieldName: String, messageFormat: String = "%s must not be empty."): Validator[TResult]

    Must be a collection which isn't empty.

  20. 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.

  21. def notNull(fieldName: String, messageFormat: String = "%s must be present."): Validator[AnyRef]

    Must be non-null.

  22. final def notify(): Unit
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  24. 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.

  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. 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.

  28. def validConfirmation(fieldName: String, confirmationFieldName: String, confirmationValue: ⇒ String, messageFormat: String = "%%s must match %s."): Validator[String]

    The confirmation fieldName must have a true value.

  29. 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

  30. def validFormat(fieldName: String, regex: Regex, messageFormat: String = "%s is invalid."): Validator[String]

    Must match the regex.

  31. 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.

  32. def validate[TValue](fieldName: String, messageFormat: String = "%s is invalid.", validate: (TValue) ⇒ Boolean): PredicateValidator[TValue]
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped