2.1.3.7.1. pyfx.view.json_lib.json_node_factory.JSONNodeFactory¶
- class JSONNodeFactory¶
A factory to create
JSONSimpleNode.Methods
__init__()create_node(key, value, **kwargs)Creates the a JSONSimpleNode subclass instance based on the value.
create_root_node(value)Creates a root node.
register(node_creator)Registers an implementation of
JSONNodeCreatorto create a node based on the type of the value to be rendered.- create_node(key, value, **kwargs)¶
Creates the a JSONSimpleNode subclass instance based on the value.
- create_root_node(value)¶
Creates a root node.
- register(node_creator)¶
Registers an implementation of
JSONNodeCreatorto create a node based on the type of the value to be rendered.- Parameters:
node_creator (JSONNodeCreator) – A customized node factory class to create an instance of a specific subclass of
JSONSimpleNode, seeJSONNodeCreatorfor details.