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 choice parameter)

  • 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_to paramater. refer_to uses the syntax of the step parameter 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, domi@komarr.grenoble.hp.com

SEE ALSO

Config::Model::Model, Config::Model::Instance, Config::Model::Node, Config::Model::AnyId, Config::Model::ListId, Config::Model::HashId, Config::Model::Value