Validates properties of ManagedObject before an insert or update Query.
Instances of this type are created during ManagedDataModel compilation.
Static Methods
-
run(
ManagedObject object, { ValidateOperation operation: ValidateOperation.insert, List<String> errors }) → bool -
Executes all Validates for
object
.
Constructors
- ManagedValidator(ManagedAttributeDescription attribute, Validate definition)
-
Creates an instance of this type.
Properties
- attribute → ManagedAttributeDescription
-
The attribute this instance runs on.
final - definition → Validate
-
The metadata associated with this instance.
final - hashCode → int
-
The hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited