The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Config::Model::HashId - Handle hash element for configuration model

SYNOPSIS

 $model ->create_config_class 
  (
   ...
   element 
   => [ 
       bounded_hash 
       => { type => 'hash',
            index_type  => 'integer',
            min => 1, 
            max => 123, 
            max_nb => 2 ,
            collected_type => 'leaf',
            element_args => {value_type => 'string'},
          },
      ]
  ) ;

DESCRIPTION

This class provides hash elements for a Config::Model::Node.

The hash index can either be en enumerated type, a boolean, an integer or a string.

CONSTRUCTOR

HashId object should not be created directly.

Hash model declaration

See model declaration section from Config::Model::AnyId.

Methods

fetch_size

Returns the nb of elements of the hash.

firstkey

Returns the first key of the hash. Behaves like each core perl function.

firstkey

Returns the next key of the hash. Behaves like each core perl function.

AUTHOR

Dominique Dumont, domi@komarr.grenoble.hp.com

SEE ALSO

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