Jeremy Wall > Class-Data-Annotated-0.2 > Class::Data::Annotated

Download:
Class-Data-Annotated-0.2.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.2   Source  

NAME ^

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

SYNOPSIS ^

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

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 Data::Annotated 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 Data::Path object holding the data in this object

INTERNAL METHODS ^

_validate_path($path)

validates a Data::Path path.

syntax highlighting: