org.scalatra.validation

Validators

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
Learn more about member selection
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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

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

    Definition Classes
    Any
  7. def clone(): AnyRef

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

  9. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def greaterThan[T](fieldName: String, min: T, messageFormat: String = "%%s must be greater than %s.")(implicit arg0: (T) ⇒ Ordered[T]): Validator[T]

    Must be greater than the min param.

  14. def greaterThanOrEqualTo[T](fieldName: String, min: T, messageFormat: String = ...)(implicit arg0: (T) ⇒ Ordered[T]): Validator[T]

    Must be greater than or equal to the min param.

  15. def hashCode(): Int

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

    Definition Classes
    Any
  17. def lessThan[T](fieldName: String, max: T, messageFormat: String = "%%s must be less than %s.")(implicit arg0: (T) ⇒ Ordered[T]): Validator[T]

    Must be less than the max param.

  18. def lessThanOrEqualTo[T](fieldName: String, max: T, messageFormat: String = ...)(implicit arg0: (T) ⇒ Ordered[T]): Validator[T]

    Must be less than or equal to the max param.

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

    Must have a minimum length of min.

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

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

    Must be a collection which isn't empty.

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

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

    Must be non-null.

  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

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

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

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. 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.

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

    The confirmation fieldName must have a true value.

  31. def validEmail(fieldName: String, messageFormat: String = "%s must be a valid email."): Validator[String]

    Must be a valid email as determined by org.

    Must be a valid email as determined by org.apache.commons.validator.routines.EmailValidator

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

    Must match the regex.

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

  34. def validate[TValue](fieldName: String, messageFormat: String = "%s is invalid.", validate: (TValue) ⇒ Boolean): PredicateValidator[TValue]

  35. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped