Regex class
A FieldValidator that validates a String using a RegExp.
- Inheritance
-
- Object
- FieldValidator<
RegexCacheEntry> - Regex
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
The message used for the annotation result.
final
- messageId → String?
-
The message id used for the annotation result.
final
- pattern → String
-
The regex pattern.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
annotate(
RegexCacheEntry cached, dynamic value, DogEngine engine) → AnnotationResult -
Annotates
value
with this validator returning an AnnotationResult. This mechanic is used to provide more information about the validation error.override -
getCachedValue(
DogStructureField field) → RegexCacheEntry -
Returns a cached value for this validator. Will be passed to validate
on every validation.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
RegexCacheEntry cached, dynamic value, DogEngine engine) → bool -
Validates
value
against this validator.override -
verifyUsage(
DogStructureField field) → void -
Verifies the usage of this validator in
field
.override -
visitSchemaField(
SchemaField object) → void -
Visit the given SchemaField instance.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultMessageId → const String
- The default message id used for the annotation result.