Node
Object Hierarchy:
Description:
a class representing a yaml node no matter was his type
Content:
Properties:
Creation methods:
Methods:
- public virtual bool add (AbstractChild node)
add a child node to current collection (mapping or sequence) node
- protected virtual void before_add (Node child) throws AddNodeError
actions to execute before adding the specified child bode
- protected virtual void on_added (Node child)
actions to execute after adding the specified child bode
- public bool remove_child (Node child, bool levelUpdate = true)
remove a child
- protected virtual void on_removed (Node child, bool levelUpdate = true)
action to exectuing after removing the specified child node
- public virtual Node? item (int index)
retriew a child node throught specifiyed index
- public bool contains (Node child)
check if current node contains the specifiyed child node
- public override int count ()
coutn childs. return 0
- public bool empty ()
check if empty
- public Iterator<Node> iterator ()
get a Yaml.Node Iterator
- public virtual Node? first ()
retriew the first child
- public Node? last ()
retriew the last child
- public Node? child_next_sibling (Node child)
retriew the next sibling of specifiyed child node
- public Node? child_previous_sibling (Node child)
retriew the previous sibling of specifiyed child node
- public virtual void update_level ()
update nested indention node level and propagate approprietly level to
all childs
- public virtual Node clone_node (string? name = null)
clone current node (with all his children)
- public Value val (Type type)
retriew the GLib.Value initialized with specified type (only) for
single pair node return the pair value
- public void replace_node (Node child, Node new_child)
- public void display_childs (bool withTitle = true)
display childs
- public override string to_string (bool withIndent = DBG_SHOW_INDENT, bool withParent = DBG_SHOW_PARENT, bool withUuid = DBG_SHOW_UUID, bool withLevel = DBG_SHOW_LEVEL, bool withCount = DBG_SHOW_COUNT, bool withRefCount = DBG_SHOW_REF, bool withTag = DBG_SHOW_TAG, bool withType = DBG_SHOW_TYPE)
get a presentation string of current Yaml.Node
Inherited Members:
All known members inherited from class Pluie.Yaml.AbstractChild
All known members inherited from class Pluie.Yaml.AbstractNode
All known members inherited from class GLib.Object
All known members inherited from interface Pluie.Yaml.Collection