net.liftmodules.validate

Validators

Related Doc: package validate

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 Validatable extends AnyRef

  2. case class ValidateEmail(value: () ⇒ String, errorMessage: Option[String] = None)(implicit ctx: ValidationContext) extends Validator[String] with Product with Serializable

    Validates if entered value is email.

  3. case class ValidateEquals(value: () ⇒ String, expected: () ⇒ String, selector: String, errorMessage: Option[String] = None)(implicit ctx: ValidationContext) extends Validator[String] with Product with Serializable

    Validates if one field equals to another one.

    Validates if one field equals to another one.

    expected

    expected value. This value will be verified on server side.

    selector

    CSS selector to the input to compare this control value with.

  4. case class ValidateFile(acceptType: String, value: () ⇒ FileParamHolder, errorMessage: Option[String] = None)(implicit ctx: ValidationContext) extends Validator[FileParamHolder] with Product with Serializable

  5. case class ValidateInt(min: Option[Int], max: Option[Int], value: () ⇒ String, errorMessage: Option[String] = None)(implicit ctx: ValidationContext) extends Validator[String] with Product with Serializable

    Validates if the value is an integer number.

    Validates if the value is an integer number.

    If min, max or both are defined, checks if the value is belongs to the defined bounds.

    min

    minimal allowed value

    max

    maximal allowed value

  6. case class ValidateLength(min: Option[Int], max: Option[Int], value: () ⇒ String, errorMessage: Option[String] = None)(implicit ctx: ValidationContext) extends Validator[String] with Loggable with Product with Serializable

    Validates value length.

    Validates value length.

    You should define at least one of min and max values.

    min

    minimal allowed length

    max

    maximal allowed length

  7. case class ValidateNumber(min: Option[Double], max: Option[Double], value: () ⇒ String, errorMessage: Option[String] = None)(implicit ctx: ValidationContext) extends Validator[String] with Product with Serializable

    Validates if the value is a number.

    Validates if the value is a number.

    If min, max or both are defined, checks if the value is belongs to the defined bounds.

    min

    minimal allowed value

    max

    maximal allowed value

  8. case class ValidateRegex(regex: Regex, value: () ⇒ String, errorMessage: Option[String] = None)(implicit ctx: ValidationContext) extends Validator[String] with Product with Serializable

    Validates value using regular expression.

    Validates value using regular expression.

    regex

    regular expression to test the value.

  9. case class ValidateRemote(value: () ⇒ String, func: (String) ⇒ (Boolean, Option[String]))(implicit ctx: ValidationContext) extends Validator[String] with Product with Serializable

    Validates value on server side via AJAX call.

    Validates value on server side via AJAX call.

    func

    function to check value. The first element of returned tuple shows if the value is validated. The second one is optional message to be shown if value is not valid.

  10. case class ValidateRequired(value: () ⇒ String, isEnabled: () ⇒ Boolean = () => true, errorMessage: Option[String] = None)(implicit ctx: ValidationContext) extends Validator[String] with Product with Serializable

    Validates if some value is entered

    Validates if some value is entered

    value

    value to be checked

    isEnabled

    allows to disable validator on some condition.

    errorMessage

    message to be shown if validation fails

  11. case class ValidateRequiredBoolean(value: () ⇒ Boolean, isEnabled: () ⇒ Boolean = () => true, errorMessage: Option[String] = None)(implicit ctx: ValidationContext) extends Validator[Boolean] with Product with Serializable

  12. case class ValidateUrl(value: () ⇒ String, errorMessage: Option[String] = None)(implicit ctx: ValidationContext) extends Validator[String] with Product with Serializable

    Validates if entered value is URL

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. object ValidateEmail extends Serializable

  5. object ValidateEquals extends Serializable

  6. object ValidateFile extends Serializable

  7. object ValidateInt extends Serializable

  8. object ValidateLength extends Serializable

  9. object ValidateNumber extends Serializable

  10. object ValidateRegex extends Serializable

  11. object ValidateRequired extends Serializable

  12. object ValidateUrl extends Serializable

  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. implicit def elemToValidatable(e: NodeSeq): Validatable

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

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

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

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

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

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

    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

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

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

    Definition Classes
    AnyRef
  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped