module Athena::Validator::Metadata::GenericMetadata
Included Modules
Direct including types
- Athena::Validator::Metadata::ClassMetadata(T)
- Athena::Validator::Metadata::GetterMetadata(EntityType, MethodIdx)
- Athena::Validator::Metadata::PropertyMetadata(EntityType, PropertyIdx)
Defined in:
metadata/generic_metadata.crInstance Method Summary
-
#add_constraint(constraint : AVD::Constraint) : AVD::Metadata::GenericMetadata
Adds the provided constraint to
self
's#constraints
array. -
#add_constraints(constraints : Array(AVD::Constraint)) : AVD::Metadata::GenericMetadata
Adds each of the provided constraints to
self
. -
#cascading_strategy : AVD::Metadata::CascadingStrategy
Returns the
AVD::Metadata::CascadingStrategy
forself
. - #constraints : Array(AVD::Constraint)
-
#find_constraints(group : String) : Array(AVD::Constraint)
Returns an array of all constraints in the provided group.
Instance methods inherited from module Athena::Validator::Metadata::MetadataInterface
cascading_strategy : AVD::Metadata::CascadingStrategy
cascading_strategy,
constraints : Array(AVD::Constraint)
constraints,
find_constraints(group : String) : Array(AVD::Constraint)
find_constraints
Instance Method Detail
Adds the provided constraint to self
's #constraints
array.
Sets #cascading_strategy
to AVD::Metadata::CascadingStrategy::Cascade
if the constraint is AVD::Constraints::Valid
.
Adds each of the provided constraints to self
.
def cascading_strategy : AVD::Metadata::CascadingStrategy
#
Returns the AVD::Metadata::CascadingStrategy
for self
.
def find_constraints(group : String) : Array(AVD::Constraint)
#
Returns an array of all constraints in the provided group.