info.fingo.spata.schema.validator

Members list

Type members

Classlikes

Validator verifying if value is equal to expected one.

Validator verifying if value is equal to expected one.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Validator verifying if double value is finite.

Validator verifying if double value is finite.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Validator verifying string length. Takes the length of string after trimming it off white characters. Treats strings with length at boundary as valid.

Validator verifying string length. Takes the length of string after trimming it off white characters. Treats strings with length at boundary as valid.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Validator verifying string maximum length. Takes the length of string after trimming it off white characters. Treats strings with maximum length as valid.

Validator verifying string maximum length. Takes the length of string after trimming it off white characters. Treats strings with maximum length as valid.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object MaxValidator

Maximum value validator for any types with scala.Ordering. Treats values equal to maximum as valid.

Maximum value validator for any types with scala.Ordering. Treats values equal to maximum as valid.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Validator verifying string maximum length. Takes the length of string after trimming it off white characters. Treats strings with maximum length as valid.

Validator verifying string maximum length. Takes the length of string after trimming it off white characters. Treats strings with maximum length as valid.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object MinValidator

Minimum value validator for any types with scala.Ordering. Treats values equal to minimum as valid.

Minimum value validator for any types with scala.Ordering. Treats values equal to minimum as valid.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Validator verifying if value is equal to one of expected.

Validator verifying if value is equal to one of expected.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Range validator for any types with scala.Ordering. Treats values equal to minimum or maximum as valid.

Range validator for any types with scala.Ordering. Treats values equal to minimum or maximum as valid.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Regular expression validator for strings.

Regular expression validator for strings.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Validator verifying if string matches one of expected. The comparison is case insensitive. This validator does not take locale into account and uses String.equalsIgnoreCase. The source string is trimmed off white spaces before comparison.

Validator verifying if string matches one of expected. The comparison is case insensitive. This validator does not take locale into account and uses String.equalsIgnoreCase. The source string is trimmed off white spaces before comparison.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
trait Validator[A]

Validator for typed CVS field value.

Validator for typed CVS field value.

It is used as part of schema validation, after successful conversion of CSV string value to desired type.

A bunch of common validators are provided by the library. Additional ones may be created by implementing this trait. The only method that has to be defined by implementing classes is isValid, since reasonable defaults are provided for other methods.

Type parameters

A

value type

Attributes

See also
Companion
object
Supertypes
class Object
trait Matchable
class Any
object Validator

Validator companion with given converter for optional values.

Validator companion with given converter for optional values.

Attributes

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