NAME
Config::Model::CheckList - Handle check list element
SYNOPSIS
$model ->create_config_class
(
...
element
=> [
check_list
=> { type => 'check_list',
choice => [ 'A', 'B', 'C', 'D' ],
},
check_list_refering_to_another_hash
=> { type => 'check_list',
refer_to => '- foobar'
},
]
) ;
DESCRIPTION
This class provides a check list element for a Config::Model::Node.
The available items in the check list can be :
A fixed list (with the
choiceparameter)A dynamic list where the available choise are the keys of another hash of the configuration tree. This other hash is indicated by the
refer_toparamater.refer_touses the syntax of thestepparameter of grab(...)
CONSTRUCTOR
CheckList object should not be created directly.
CheckList model declaration
See model declaration section from Config::Model::AnyId.
Methods
get_type
Returns list.
AUTHOR
Dominique Dumont, (ddumont at cpan dot org)
SEE ALSO
Config::Model::Model, Config::Model::Instance, Config::Model::Node, Config::Model::AnyId, Config::Model::ListId, Config::Model::HashId, Config::Model::Value