15 Jul 2012 13:33:29 UTC
- Distribution: Data-TreeValidator
- Module version: 0.04
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (594 / 0 / 24)
- KwaliteeBus factor: 0
- 87.50% Coverage
- License: perl_5
- Activity24 month
- Download (20.71KB)
- 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::Leaf - Represents a single leaf node in the validation tree specification
Represents a leaf in a tree, that is - a single atomic value. At some point all branches will reduce to these nodes.
Returns an array of all constraints for this leaf.
Adds a constraint to this leaf, at the end of the list
Returns an array of all transformations for this leaf.
Adds a transformation for this leaf, at the end of the list
Takes $input, and matches it against all the constraints for this leaf. If they all pass (that is, none throw exceptions), then
$inputis passed through all leaf transformations.
AT the end of processing, a Data::TreeValidator::Result::Leaf object is returned. This can be inspected to determine if validation was sucessful, and obtain clean data.
This software is copyright (c) 2012 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.