| Config::Model::HashId - Handle hash element for configuration model |
Config::Model::HashId - Handle hash element for configuration model
$model ->create_config_class ( ... element => [ bounded_hash => { type => 'hash', index_type => 'integer', min => 1, max => 123, max_nb => 2 , cargo_type => 'leaf', cargo_args => {value_type => 'string'}, }, ] ) ;
This class provides hash elements for a the Config::Model::Node manpage.
The hash index can either be en enumerated type, a boolean, an integer or a string.
HashId object should not be created directly.
See model declaration section from the Config::Model::AnyId manpage.
Returns hash.
Returns the nb of elements of the hash.
Returns the first key of the hash. Behaves like each core perl
function.
Returns the next key of the hash. Behaves like each core perl
function.
Swap the order of the 2 keys. Ignored for non ordered hash.
Move the key up in a ordered hash. Attempt to move up the first key of an ordered hash will be ignored. Ignored for non ordered hash.
Move the key down in a ordered hash. Attempt to move up the last key of an ordered hash will be ignored. Ignored for non ordered hash.
Load check_list as a hash ref for standard hash. Ordered hash must be loaded with a array ref.
Dominique Dumont, (ddumont at cpan dot org)
the Config::Model manpage, the Config::Model::Instance manpage, the Config::Model::AnyId manpage, the Config::Model::ListId manpage, the Config::Model::Value manpage
| Config::Model::HashId - Handle hash element for configuration model |