NAME

Object::Meta::Named::List - Library to index Object::Meta::Named instances by their name field.

DESCRIPTION

Object::Meta::Named::List implements a class which indexes Object::Meta::Named instances by their name field.

Additionally a hash meta data field will be created for indexation and lookup.

The hash meta data field is used to lookup entries.

METHODS

Constructor

new ( [ DATA ] )

This is the constructor for a new Object::Meta::Named::List object.

This overrides the Object::Meta constructor to create the 'primary' index on the 'hash' field.

Parameters:

DATA

The raw data which is passed in a hash like fashion, using key and value pairs.

See Method Object::Meta::List::new()

Administration Methods

Add ( [ Object::Meta::Named | DATA ] )

This works like Object::Meta::List::Add() only that it handles Object::Meta::Named instances.

If no parameter is given it creates an empty instance of Object::Meta::Named and adds it to the list

Parameters:

Object::Meta::Named

An instance of Object::Meta::Named to be added to the list.

DATA

A hash with data to create an instance of Object::Meta::Named and add it to the list.

Returns: Object::Meta::Named - The object which was created or added.

See Method Object::Meta::List::Add()

Consultation Methods

getMetaObjectbyName ( NAME )

This works like Object::Meta::List::getIdxMetaObject() only that it uses the hash of the the name field to find the object.

Parameters:

NAME

The string value for the name field of the object.

Returns: Object::Meta::Named - The object with the name field having the value NAME.

See Method Object::Meta::List::getIdxMetaObject()