Validator

cats.xml.validator.Validator
See theValidator companion trait
object Validator

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Validator.type

Members list

Type members

Inherited classlikes

implicit class ValidatorOps[T](validator: Validator[T])

Attributes

Inherited from:
ValidatorSyntax (hidden)
Supertypes
class Object
trait Matchable
class Any

Types

type Result[+T] = ValidatedNel[String, T]

Value members

Concrete methods

def alwaysInvalid[T](error: T => String): Validator[T]
def alwaysValid[T]: Validator[T]
def must[T](errorMsg: T => String)(f: T => Boolean): Validator[T]
def mustNot[T](errorMsg: T => String)(f: T => Boolean): Validator[T]
def of[T](f: T => Result[T]): Validator[T]

Inherited methods

def emptyString: Validator[String]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def eqvTo[T : Eq](that: T): Validator[T]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def exactLength(expected: Int): Validator[String]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def isEmpty[F <: (IterableOnce)]: Validator[F[Any]]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def max[N](max: N, exclusive: Boolean)(implicit N: Numeric[N]): Validator[N]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def maxLength(maxLen: Int): Validator[String]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def maxSize[F <: (IterableOnce)](maxSize: Int): Validator[F[Any]]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def maxSizeFoldable[F[_] : Foldable, T](maxSize: Int)(implicit evidence$1: Foldable[F], s: Show[T]): Validator[F[T]]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def min[N](min: N, exclusive: Boolean)(implicit N: Numeric[N]): Validator[N]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def minLength(minLen: Int): Validator[String]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def minSize[F <: (IterableOnce)](minSize: Int): Validator[F[Any]]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def minSizeFoldable[F[_] : Foldable, T](minSize: Int)(implicit evidence$1: Foldable[F], s: Show[T]): Validator[F[T]]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def negative[N](implicit N: Numeric[N]): Validator[N]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def negativeOrZero[N](implicit N: Numeric[N]): Validator[N]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def nonEmpty[F <: (IterableOnce)]: Validator[F[Any]]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def nonEmptyString: Validator[String]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def notEqvTo[T : Eq](that: T): Validator[T]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def positive[N](implicit N: Numeric[N]): Validator[N]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def positiveOrZero[N](implicit N: Numeric[N]): Validator[N]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def range[N](min: N, max: N, minExclusive: Boolean, maxExclusive: Boolean)(implicit N: Numeric[N]): Validator[N]

Attributes

Inherited from:
ValidatorBuilders (hidden)
def regex(regex: Regex): Validator[String]

Attributes

Inherited from:
ValidatorBuilders (hidden)

Implicits

Inherited implicits

final implicit def ValidatorOps[T](validator: Validator[T]): ValidatorOps[T]

Attributes

Inherited from:
ValidatorSyntax (hidden)
implicit val validatorContravariant: Contravariant[Validator]

Attributes

Inherited from:
ValidatorInstances (hidden)
implicit def validatorMonoid[T]: Monoid[Validator[T]]

Attributes

Inherited from:
ValidatorInstances (hidden)