Interface JsonNodeCreator
-
- All Known Implementing Classes:
ArrayNode
,ContainerNode
,JsonNodeFactory
,ObjectNode
public interface JsonNodeCreator
Interface that defines common "creator" functionality implemented both byJsonNodeFactory
andContainerNode
(that is, JSON Object and Array nodes).- Since:
- 2.3
-
-
Method Summary
-
-
-
Method Detail
-
booleanNode
ValueNode booleanNode(boolean v)
-
nullNode
ValueNode nullNode()
-
numberNode
ValueNode numberNode(byte v)
-
numberNode
ValueNode numberNode(short v)
-
numberNode
ValueNode numberNode(int v)
-
numberNode
ValueNode numberNode(long v)
-
numberNode
ValueNode numberNode(BigInteger v)
-
numberNode
ValueNode numberNode(float v)
-
numberNode
ValueNode numberNode(double v)
-
numberNode
ValueNode numberNode(BigDecimal v)
-
binaryNode
ValueNode binaryNode(byte[] data)
-
binaryNode
ValueNode binaryNode(byte[] data, int offset, int length)
-
rawValueNode
ValueNode rawValueNode(RawValue value)
Factory method to use for adding "raw values"; pre-encoded values that are included exactly as-is when node is serialized. This may be used, for example, to include fully serialized JSON sub-trees. Note that the concept may not work with all backends, and since no translation of any kinds is done it will not work when converting between data formats.- Since:
- 2.6
-
arrayNode
ArrayNode arrayNode()
-
arrayNode
ArrayNode arrayNode(int capacity)
Factory method for constructing a JSON Array node with an initial capacity- Since:
- 2.8
-
objectNode
ObjectNode objectNode()
-
-