ParentNode#

class ParentNode(schema: dict, path: Tuple[str, ...], active_validation: bool = True)[source]#

Bases: object

ParentNode of the command table.

ParentNode can contain one or multiple arguments and child ParentNodes. It offers a dictionary-like object to manipulate command table properties. Similar to the device nodes, it supports accessing the properties by attribute.

Parameters:
  • schema (dict) – JSON schema of the node.

  • path (Tuple[str, ...]) – Path representation of the node.

  • active_validation (bool) – Enable active validation.

Methods

is_empty()

Check if the Node is empty and has no properties.