|
NAMEConfig::Model::AnyThing - Base class for configuration tree itemVERSIONversion 2.149SYNOPSIS# internal class DESCRIPTIONThis class must be inherited by all nodes or leaves of the configuration tree.AnyThing provides some methods and no constructor. Introspection methodselement_nameReturns the element name that contain this object.index_valueFor object stored in an array or hash element, returns the index (or key) containing this object.parentReturns the node containing this object. May return undef if "parent" is called on the root of the tree.containerA bit like parent, this method returns the element containing this object. See "container_type"container_typeReturns the type (e.g. "list" or "hash" or "leaf" or "node" or "warped_node") of the element containing this object.rootReturns the root node of the configuration tree.locationReturns the node location in the configuration tree. This location conforms with the syntax defined by grab method.location_shortReturns the node location in the configuration tree. This location truncates long indexes to be readable. It cannot be used by grab method.composite_nameReturn the element name with its index (if any). I.e. returns "foo:bar" or "foo".composite_name_shortReturn the element name with its index (if any). Too long indexes are truncated to be readable.AnnotationAnnotation is a way to store miscellaneous information associated to each node. (Yeah... comments). Reading and writing annotation makes sense only if they can be read from and written to the configuration file, hence the need for the following method:backend_support_annotationReturns 1 if at least one of the backends attached to a parent node support to read and write annotations (aka comments) in the configuration file.support_annotationReturns 1 if at least one of the backends support to read and write annotations (aka comments) in the configuration file.annotationParameters: "( [ note1, [ note2 , ... ] ] )"Without argument, return a string containing the object's annotation (or an empty string). With several arguments, join the arguments with "\n", store the annotations and return the resulting string. load_pod_annotationParameters: "( pod_string )"Load annotations in configuration tree from a pod document. The pod must be in the form: =over =item path Annotation text =back clear_annotationClear the annotation of an elementInformation managementnotify_changeNotify the instance of semantic changes. Parameters are:
show_messageParameters: "( string )"Forwarded to "show_message" in Config::Model::Instance. root_pathForwarded to "root_path" in Config::Model::Instance.model_searcherReturns an object dedicated to search an element in the configuration model.This method returns a Config::Model::SearchElement object. See Config::Model::Searcher for details on how to handle a search. dump_as_dataDumps 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. warp_errorReturns a string describing any issue with Config::Model::Warper object. Returns '' if invoked on a tree object without warp specification.AUTHORDominique Dumont, (ddumont at cpan dot org)SEE ALSOConfig::Model, Config::Model::Instance, Config::Model::Node, Config::Model::Loader, Config::Model::DumperAUTHORDominique DumontCOPYRIGHT AND LICENSEThis software is Copyright (c) 2005-2022 by Dominique Dumont.This is free software, licensed under: The GNU Lesser General Public License, Version 2.1, February 1999
Visit the GSP FreeBSD Man Page Interface. |