Class::Data::Annotated - Data::Annotated wrapped objects


NAME

    Class::Data::Annotated - Data::Annotated wrapped objects


SYNOPSIS

    use Class::Data::Annotated;
    
    my $$obj = Class::Data::Annotated->new();
    
    =cut
    

our $VERSION = '0.2'; my $callbacks = { key_does_not_exist => sub {}, index_does_not_exist => sub {}, retrieve_index_from_non_array => sub {}, retrieve_key_from_non_hash => sub {}, };


METHODS

new()

instantiate an Annotated Data Structure

annotate($path, \%annotation)

annotate a peice of the data. if that piece does not exist it will return undef. Otherwise it returns the data annotated.

annotations

Returns a the Data::Annotated manpage object holding the dictionary of annotations for this object

get($path)

retrieves the data for this path in the object. returns undef if data location does not exist

get_annotation($path)

returns the annotations for the location in the data specified by the path.

data

Returns a the Data::Path manpage object holding the data in this object


INTERNAL METHODS

_validate_path($path)

validates a the Data::Path manpage path.