module Athena::Validator::Violation::ConstraintViolationListInterface
Overview
A wrapper type around an Array(AVD::ConstraintViolationInterface)
.
Direct including types
Defined in:
violation/constraint_violation_list_interface.crInstance Method Summary
-
#add(violation : AVD::Violation::ConstraintViolationInterface) : Nil
Adds the provided violation to
self
. -
#add(violations : AVD::Violation::ConstraintViolationListInterface) : Nil
Adds each of the provided violations to
self
. -
#has?(index : Int) : Bool
Returns
true
if a violation exists at the provided index, otherwisefalse
. -
#remove(index : Int) : Nil
Returns the violation at the provided index.
-
#set(index : Int, violation : AVD::Violation::ConstraintViolationInterface) : Nil
Sets the provided violation at the provided index.
-
#size : Int
Returns the number of violations in
self
. -
#to_json(builder : JSON::Builder) : Nil
Returns a
JSON
representation ofself
. -
#to_s(io : IO) : Nil
Returns a string representation of
self
.
Instance Method Detail
abstract
def add(violation : AVD::Violation::ConstraintViolationInterface) : Nil
#
Adds the provided violation to self
.
abstract
def add(violations : AVD::Violation::ConstraintViolationListInterface) : Nil
#
Adds each of the provided violations to self
.
abstract
def has?(index : Int) : Bool
#
Returns true
if a violation exists at the provided index, otherwise false
.
abstract
def set(index : Int, violation : AVD::Violation::ConstraintViolationInterface) : Nil
#
Sets the provided violation at the provided index.