Classes
The following classes are available globally.
-
See moreAlphaNumericRule
is a subclass ofCharacterSetRule
. It is used to verify that a field has a valid list of alphanumeric characters.Declaration
Swift
public class AlphaNumericRule : CharacterSetRule
-
See moreValidationRule
is the parent of all validation rules.Declaration
Swift
open class ValidationRule<V>
-
See moreAlphaRule
is a subclass ofCharacterSetRule
. It is used to verify that a field has a valid list of alpha characters.Declaration
Swift
public class AlphaRule : CharacterSetRule
-
See moreArrayLengthRule
is a subclass ofValidationRule
that defines how length is validated with min & max limits.Declaration
Swift
public class ArrayLengthRule<V> : ValidationRule<Array<V>>
-
See moreArrayRule
is a subclass of ValidationRule that defines how check if all array elements are valid.Declaration
Swift
public class ArrayRule<V> : ValidationRule<Array<V>>
-
See moreCharacterSetRule
is a subclass ofValidationRule
. It is used to verify that a field has a valid list of characters.Declaration
Swift
open class CharacterSetRule : ValidationRule<String>
-
See moreConfirmRule
is a subclass ofValidationRule
that defines how a value that has to be equal to another value is validated.Declaration
Swift
public class ConfirmRule<V> : ValidationRule<V> where V : Equatable
-
See moreCoordinateRule
is a subclass of ValidationRule that defines how check if a value is a latitude or longitude value. Value must be array of string or double. longitude should be first element.Declaration
Swift
public class CoordinateRule : ValidationRule<[Double]>
-
See moreDateRule
is a subclass ofValidationRule
that means value can’t be nil or blank. Make sure required rule is the first item in rules listDeclaration
Swift
public class DateRule : ValidationRule<String>
-
See moreEnumRule
is a subclass ofValidationRule
that defines how a value is validated against mutiple possible values.Declaration
Swift
public class EnumRule<V> : ValidationRule<V> where V : Equatable
-
See moreExactLengthRule
is a subclass ofValidationRule
that is used to make sure a the value has an exact length.Declaration
Swift
public class ExactLengthRule : ValidationRule<String>
-
See moreFullNameRule
is a subclass ofValidationRule
that defines how a full name is validated.Declaration
Swift
public class FullNameRule : ValidationRule<String>
-
See moreISBNRule
is a subclass ofValidationRule
. It is used to verify whether a value is a valid ISBN number.Declaration
Swift
public class ISBNRule : ValidationRule<String>
-
See moreISO8601DateRule
is a subclass ofValidationRule
that means value can’t be nil or blank. Make sure required rule is the first item in rules listDeclaration
Swift
@available(OSX 10.12, iOS 10.0, watchOS 3.0, *) public class ISO8601DateRule : ValidationRule<String>
-
See moreLengthRule
is a subclass ofValidationRule
that defines how length is validated with min & max limits.Declaration
Swift
public class LengthRule : ValidationRule<String>
-
See moreMonthRule
is a subclass ofValidationRule
that defines how a credit/debit’s card expiry month field is validatedDeclaration
Swift
public class MonthRule : ValidationRule<String>
-
See moreNumericRule
is a subclass ofCharacterSetRule
. It is used to verify that a field has a valid list of numeric characters.Declaration
Swift
public class NumericRule : CharacterSetRule
-
See moreRangeRule
is a subclass ofValidationRule
that defines how value is validated with min & max limits.Declaration
Swift
public class RangeRule<V> : ValidationRule<V> where V : Comparable, V : CustomStringConvertible
-
See moreRegexRule
is a subclass ofValidationRule
that defines how a regular expression is validated.Declaration
Swift
open class RegexRule : ValidationRule<String>
-
See moreRequiredRule
is a subclass ofValidationRule
that means value can’t be nil or blank. Make sure required rule is the first item in rules listDeclaration
Swift
public class RequiredRule<V> : ValidationRule<V>
-
See moreValidatableRule
is a subclass ofValidationRule
that defines how a object which conforms toValidatable
protocol is validated.Declaration
Swift
public class ValidatableRule<V> : ValidationRule<V> where V : Validatable
-
See moreYearExpiryRule
is a subclass ofValidationRule
that defines how a credit/debit card’s expiry year is validatedDeclaration
Swift
public class YearExpiryRule : ValidationRule<String>
-
Represents all components required for single basic validation to perform.
See moreDeclaration
Swift
public class BasicValidatable<V> : NamedValidatable
-
See moreValidator
represents the key validator object.Declaration
Swift
public class Validator