NAME
Object::Meta::Named - Library to recognise a special name field from the raw data
DESCRIPTION
Object::Meta::Named implements a class which adds a name field to the raw data which can be used to index the Object::Meta entries.
Additionally a hash meta data field will be created for indexation and lookup.
The hash meta data field becomes the index field.
METHODS
Constructor
new ( [ DATA ] )
This is the constructor for a new Object::Meta::Named object. It creates a new object from raw data which is passed in a hash key / value pairs.
Parameters:
DATA-
The raw data which is passed in a hash key / value pairs.
If a
namefield is present it will be used to index the entry.
Administration Methods
set ( DATA )
This overrides the base method Object::Meta::set() to recognize the name field.
See Method Object::Meta::set()
setName ( [ NAME ] )
This will create a name field in the raw data and index the object by the hash of it.
Parameters:
NAME-
The string value for the name of the object.
If a
NAMEis empty or is undefined it will empty thenamefield and thehashmeta data field.
Consultation Methods
getName ()
Returns the content of the name field.