NAME
XTM::generic - XTM generic accessor
SYNOPSIS
# very much an internal package...
DESCRIPTION
Generic provider for accessor functions.
Instead of hard-coding simple accessor functions into trivial packages, these packages can inherit the methods from this package.
INTERFACE
Constructor
The constructor just returns a blessed object reference to the class in question. All parameters - given in a hash - will be components of the resulting object.
Methods
AUTOLOAD will capture most of the access.
If the method name begins with 'add_'. If it ends with '_s' then the provided values will be added to a list component. Otherwise it is regarded as a single value.
If the method does not begin with 'add_' then a simple read access is assumed. Again, if the name ends with '_s' then a list will be returned.
The component name will be derived from the rest of the method name, if that is non-empty (like in 'add_rumsti_s'). If the name is empty ('add__s') then the component name will be derived from the parameters class name ('XYZ::rumsti' will result in a component name 'rumsti').
The method undefine gets rid of a particular component.
SEE ALSO
AUTHOR INFORMATION
Copyright 2001, 2002, Robert Barta <rho@telecoma.net>, All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. http://www.perl.com/perl/misc/Artistic.html