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 Objecttrait Matchableclass Any
- Self type
-
ExactValidator.type
Validator verifying if double value is finite.
Validator verifying if double value is finite.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FiniteValidator.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 Objecttrait Matchableclass Any
- Self type
-
LengthValidator.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 Objecttrait Matchableclass Any
- Self type
-
MaxLenValidator.type
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 Objecttrait Matchableclass Any
- Self type
-
MaxValidator.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 Objecttrait Matchableclass Any
- Self type
-
MinLenValidator.type
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 Objecttrait Matchableclass Any
- Self type
-
MinValidator.type
Validator verifying if value is equal to one of expected.
Validator verifying if value is equal to one of expected.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
OneOfValidator.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 Objecttrait Matchableclass Any
- Self type
-
RangeValidator.type
Regular expression validator for strings.
Regular expression validator for strings.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RegexValidator.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 Objecttrait Matchableclass Any
- Self type
-
StringsValidator.type
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 Objecttrait Matchableclass Any