The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::TreeValidator::RepeatingBranch - A branch that can have its input repeated multiple times

DESCRIPTION

A repeatable branch is one that has a specification, and can consume input multiple times. The branch can have any valid specification (including repeatable elements).

This class has all the functionality of Data::TreeValidation::Branch.

METHODS

process($input)

Takes an array reference as input, and attempts to validate each element against the branch specification.

Returns a Data::TreeValidator::Result::Repeating result object, which can be inspected to determine if the processing was valid, and to obtain the cleaned data (which will be wrapped as an array reference).

AUTHOR

Oliver Charles

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Oliver Charles <oliver.g.charles@googlemail.com>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.