|step||A string indicating the steps to follow in the tree to find the required item. (mandatory)|
|mode||When set to strict, grab will throw an exception if no object is found using the passed string. When set to adaptative, the object found at last will be returned. For instance, for the step good_step wrong_step, only the object held by good_step will be returned. When set to loose, grab will return undef in case of problem. (default is strict)|
Either node, leaf, hash or list or an array ref containing these
values. Returns only an object of
requested type. Depending on strict value, grab will either
throw an exception or return the last found object of requested type.
(optional, default to undef, which means any type of object)
|autoadd||When set to 1, hash or list configuration element are created when requested by the passed steps. (default is 1).|
|grab_non_available||When set to 1, grab will return an object even if this one is not available. I.e. even if this element was warped out. (default is 0).|
|-||Go up one node|
|!||Go to the root node.|
|!Foo||Go up the configuration tree until the Foo configuration class is found. Raise an exception if no Foo class is found when root node is reached.|
|xxx||Go down using xxx element.|
|xxx:yy||Go down using xxx element and id yy (valid for hash or list elements)|
Go up the tree until a node containing element xxx is found. Then go down
the tree like item xxx.
If ?xxx:yy, go up the tree the same way. But no check is done to see if id yy actually exists or not. Only the element xxx is considered when going up the tree.
Like grab(...), but will return the value of a leaf or check_list object, not just the leaf object.
Will raise an exception if following the steps ends on anything but a leaf or a check_list.
Like grab(...), but will return the annotation of an object.
grab_root()Returns the root of the configuration tree.
Go up the configuration tree until the Foo configuration class is found. Returns the found node or undef.
Notify the instance of semantic changes. Parameters are:
old old value. (optional) new new value (optional) path Location of the changed parameter starting from root node. Default to $self-location>. name element name. Default to $self-element_name> index If the changed parameter is part of a hash or an array, index contains the key or the index to get the changed parameter. note information about the change. Mandatory of neither old or new value are defined. really When set to 1, force recording of change even if in initial load phase. needs_save internal parameter.
Forwarded to show_message( string ) in Config::Model::Instance.
Returns an object dedicated to search an element in the configuration model (respecting privilege level).
Dumps the configuration data of the node and its siblings into a perl data structure.
Returns a hash ref containing the data. See Config::Model::DumpAsData for details.
Returns a string describing any issue with Config::Model::Warper object. Returns if invoked on a tree object without warp specification.
Dominique Dumont, (ddumont at cpan dot org)
Config::Model, Config::Model::Instance, Config::Model::Node, Config::Model::Loader, Config::Model::Dumper
This software is Copyright (c) 2005-2016 by Dominique Dumont.
This is free software, licensed under:
The GNU Lesser General Public License, Version 2.1, February 1999
|perl v5.20.3||CONFIG::MODEL::ANYTHING (3)||2016-04-03|