module Athena::Validator::Metadata::GenericMetadata
#
Included modules
Athena::Validator::Metadata::MetadataInterface
Direct including types
Athena::Validator::Metadata::ClassMetadata(T)
Athena::Validator::Metadata::GetterMetadata(EntityType, MethodIdx)
Athena::Validator::Metadata::PropertyMetadata(EntityType, PropertyIdx)
Methods#
#add_constraint(constraint : AVD::Constraint) : AVD::Metadata::GenericMetadata
#
Adds the provided constraint to self
's #constraints
array.
Sets #cascading_strategy
to AVD::Metadata::CascadingStrategy::Cascade
if the constraint is AVD::Constraints::Valid
.
#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
for self
.
#find_constraints(group : String) : Array(AVD::Constraint)
#
Returns an array of all constraints in the provided group.