ru.dimgel.lib

validator

package validator

Visibility
  1. Public
  2. All

Type Members

  1. case class Param (data: List[String]) extends NotNull with Product with Serializable

    Incapsulates input data for validator chains.

  2. class VBoolean extends VImp[String, Boolean]

    Use companion object to instantiate this validator.

  3. class VChain [Out] extends Validator[Param, Out]

    If you want method argument to take only full validator chains (starting with VRequired* or VOptional*), declare that argument of type VChain[Out].

  4. class VDouble extends VImp[String, Double]

    Use companion object to instantiate this validator.

  5. class VEmail extends VImp[String, String]

    Use companion object to instantiate this validator.

  6. class VImp [In, Out] extends Validator[In, Out]

    This is the base class for all "ordinary" (non chain-head) validators.

  7. class VInt extends VImp[String, Int]

    Use companion object to instantiate this validator.

  8. class VLength extends VImp[String, String]

    Use companion object to instantiate this validator.

  9. class VLengthRange extends VImp[String, String]

    Use companion object to instantiate this validator.

  10. class VMax [T] extends VImp[T, T]

    Use companion object to instantiate this validator.

  11. class VMaxLength extends VImp[String, String]

    Use companion object to instantiate this validator.

  12. class VMin [T] extends VImp[T, T]

    Use companion object to instantiate this validator.

  13. class VMinLength extends VImp[String, String]

    Use companion object to instantiate this validator.

  14. class VMoney extends VImp[String, BigDecimal]

    Use companion object to instantiate this validator.

  15. class VRange [T] extends VImp[T, T]

    Use companion object to instantiate this validator.

  16. class VRegex extends VImp[String, String]

    Use companion object to instantiate this validator.

  17. class VRequired extends RequiredBase[String]

    If Param.

  18. class VRequiredList extends RequiredBase[List[String]]

    If Param.

  19. class VRequiredTrim extends RequiredBase[String]

    If Param.

  20. class VSet [T] extends VImp[T, T]

    Use companion object to instantiate this validator.

  21. trait Validator [In, Out] extends NotNull

    Validator is the root trait of all parameter validators hierarchy.

Value Members

  1. object Param extends Serializable

  2. object VBoolean extends VBoolean

    Checks if input string is boolean ("1" or "0").

  3. object VChain extends AnyRef

  4. object VDouble extends VDouble

    Checks if input string is double.

  5. object VEmail extends VEmail

    Checks if input string is email.

  6. object VInt extends VInt

    Checks if input string is integer.

  7. object VLength extends AnyRef

    Checks if input string length is equal to len.

  8. object VLengthRange extends AnyRef

    Checks if input string length is in range [min, max].

  9. object VMax extends AnyRef

    Checks if input value is <= max.

  10. object VMaxLength extends AnyRef

    Checks if input string length is no more than len.

  11. object VMin extends AnyRef

    Checks if input value is >= min.

  12. object VMinLength extends AnyRef

    Checks if input string length is no less than len.

  13. object VMoney extends VMoney

    Checks if input string is decimal with <= 2 fraq digits.

  14. object VOptional extends OptionalBase[String]

    If Param.

  15. object VOptionalList extends OptionalBase[List[String]]

    If Param.

  16. object VOptionalTrim extends OptionalBase[String]

    If Param.

  17. object VRange extends AnyRef

    Checks if input value is in range [min, max].

  18. object VRegex extends AnyRef

    Checks if input string matches regular expression.

  19. object VRequired extends VRequired

    If Param.

  20. object VRequiredList extends VRequiredList

    If Param.

  21. object VRequiredTrim extends VRequiredTrim

    If Param.

  22. object VSet extends AnyRef

    Tests if input value belongs to allowed values set.

  23. object Validator extends AnyRef

    Contains definitions of Validator.