04 Feb 2011 12:09:18 UTC
- Distribution: Data-TreeValidator
- Module version: 0.03
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (286 / 2 / 0)
- KwaliteeBus factor: 0
- License: perl_5
- Activity24 month
- Download (20.09KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userCYCLES Oliver Charlesand 1 contributors
- Oliver Charles
- COPYRIGHT AND LICENSE
Data::TreeValidator::Branch - A branch of tree validation
Represents a branch in the tree, ie something that has child nodes. Almost all your validation specifications will have at least one tree (unless it really only takes a single piece of input).
Returns a list of all child nodes of this branch
Returns the names of all child nodes for this branch
Adds a child to the branch, with the name
Returns the child with name
Takes the input in
$inputand validates it against this branch. The general process here is to enumerate over each child of this branch, and fetch the corresponding data from
$inputand process that.
Returns a Data::TreeValidator:::Result::Branch, which can be inspected to determine if the branch validated, and for clean data.
This software is copyright (c) 2011 by Oliver Charles <email@example.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.
Module Install Instructions
To install Data::TreeValidator, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Data::TreeValidator
For more information on module installation, please visit the detailed CPAN module installation guide.