NAME

Abstract::Meta::Attribute::Method - Method generator.

DESCRIPTION

Generates methods for attribute's definition.

SYNOPSIS

    use Abstract::Meta::Class ':all';
    has '$.attr1' => (default => 0); 

methods

generate_scalar_accessor_method
generate_code_accessor_method
generate_mutator_method
index_association_data
validate_data_type
validate_associated_class
pending_transation
start_association_process

Start association process (to avoid infinitive look of associating the others ends) Takes obj reference.

has_pending_association

Returns true is object is during association process.

end_association_process

Compleetes association process.

associate_the_other_end

Associate current object reference to the the other end associated class.

TODO

associate_scalar_as_the_other_end
associate_hash_as_the_other_end
associate_array_as_the_other_end
deassociate

Deassociates assoication values

deassociate_scalar_as_the_other_end
deassociate_hash_as_the_other_end
deassociate_array_as_the_other_end
generate_scalar_mutator_method
generate_code_mutator_method
generate_array_accessor_method
generate_array_mutator_method
generate_hash_accessor_method
generate_to_many_accessor_method
generate_hash_mutator_method
generate_hash_item_accessor_method
generate_hash_add_method
generate_scalar_reset_method
generate_scalar_has_method
generate_hash_reset_method
generate_hash_has_method
generate_array_reset_method
generate_array_has_method
generate_hash_remove_method
generate_array_item_accessor_method
generate_array_push_method
generate_array_pop_method
generate_array_shift_method
generate_array_unshift_method
generate_array_count_method
generate_array_add_method
generate_array_remove_method
generate

Returns code reference.

set_value

Sets value for attribute

get_value

Returns value for attribute

get_attribute

Return object's attribute value

set_attribute

Sets for passed in object attribue's value

delete_object

Deletes passed in object's attribute

SEE ALSO

Abstract::Meta::Attribute.

COPYRIGHT AND LICENSE

The Abstract::Meta::Attribute::Method module is free software. You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.

AUTHOR

Adrian Witas, adrian@webapp.strefa.pl