popcorn :: FieldValidator :: defaultinit
popcorn :: FieldValidator :: validate_field
Validatefield
in obj
popcorn $ FieldValidator :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
popcorn :: FieldValidator :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).popcorn :: FieldValidator :: validate_field
Validatefield
in obj
# Something that can validate a JsonObject field
abstract class FieldValidator
# Field to validate
var field: String
# Validate `field` in `obj`
fun validate_field(v: ObjectValidator, obj: JsonObject): Bool is abstract
end
lib/popcorn/pop_validation.nit:270,1--278,3