2.1.3.1.3.2. pyfx.view.json_lib.array.array_node.ArrayNodeCreator

class ArrayNodeCreator(node_factory)

A factory to create ArrayNode.

Methods

__init__(node_factory)

create_node(key, value, **kwargs)

Creates a node based on the type of the value.

create_node(key, value, **kwargs)

Creates a node based on the type of the value.

Subclass must override this method to provide a valid JSONSimpleNode implementation.

Parameters:
  • key (Any) – the key which its parent node use to retrieve this node.

  • value (Any) – the actual value that will be represented by the node.

  • **kwargs – all the extra arguments passed into JSONSimpleNode implementation.

Returns:

When the type of the value matches the expected value, it returns the actual implementation instance. Otherwise, it returns None.