NAME

Data::TreeValidator::Result - Role specifying the result of processing

DESCRIPTION

This role is the basis for the result of processing a specification with some input.

ATTRIBUTES

input

Gets the input that was passed in to process

METHODS

errors

Returns an array of errors that occured during processing. May be empty.

This array is only for errors directly assossciated with this node.

error_count

Returns the amount of errors that occured when processing this node.

clean

Should return the cleaned data. It is required to be implemented by consuming classes

valid

Should return true or false depending on whether the input was valid input for this node. Required to be implemented by consuming classes.

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.