2.1.3.11.5.2. pyfx.view.json_lib.primitive.numeric.NumericNodeCreator¶
- class NumericNodeCreator¶
A factory to create NumericNode.
Methods
__init__()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.