Object

org.scalatra.validation

Validators

Related Doc: package validation

Permalink

object Validators

Annotations
@deprecated
Deprecated

(Since version 2.6.0) Use scalatra-forms instead.

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]

    Permalink
  2. trait Validator[TValue] extends AnyRef

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    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]

    Permalink

    Checks if the value of the data is a value of the specified enum.

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

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

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

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

    Permalink
    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]

    Permalink

    Must be greater than the min param.

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

    Permalink

    Must be greater than or equal to the min param.

  13. def hashCode(): Int

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

    Permalink
    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]

    Permalink

    Must be less than the max param.

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

    Permalink

    Must be less than or equal to the max param.

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

    Permalink

    Must have a minimum length of min.

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

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

    Permalink

    Must be a collection which isn't empty.

  20. def nonEmptyString(fieldName: String, messageFormat: String = "%s must be present."): Validator[String]

    Permalink

    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]

    Permalink

    Must be non-null.

  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def oneOf[TResult](fieldName: String, messageFormat: String = "%%s must be one of %s.", expected: Seq[TResult]): Validator[TResult]

    Permalink

    Must be included in the expected collection.

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

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    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]

    Permalink

    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]

    Permalink

    The confirmation fieldName must have a true value.

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

    Permalink

    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]

    Permalink

    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]

    Permalink

    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]

    Permalink
  33. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped