public final class JsonNodeFactories
extends java.lang.Object
JsonNodes.| Modifier and Type | Method and Description |
|---|---|
static JsonNode |
array(java.lang.Iterable<? extends JsonNode> elements) |
static JsonNode |
array(java.util.Iterator<? extends JsonNode> elements) |
static JsonNode |
array(JsonNode... elements) |
static JsonNode |
booleanNode(boolean value) |
static JsonNode |
falseNode() |
static JsonField |
field(JsonStringNode name,
JsonNode value) |
static JsonField |
field(java.lang.String name,
JsonNode value) |
static JsonNode |
nullableArray(java.lang.Iterable<? extends JsonNode> elements) |
static JsonNode |
nullableArray(java.util.Iterator<? extends JsonNode> elements) |
static JsonNode |
nullableArray(JsonNode... elements) |
static JsonNode |
nullableBooleanNode(java.lang.Boolean value) |
static JsonNode |
nullableNumber(java.math.BigDecimal value) |
static JsonNode |
nullableNumber(java.math.BigInteger value) |
static JsonNode |
nullableNumber(java.lang.Long value) |
static JsonNode |
nullableNumber(java.lang.String value) |
static JsonNode |
nullableObject(java.lang.Iterable<JsonField> fields) |
static JsonNode |
nullableObject(java.util.Iterator<JsonField> fields) |
static JsonNode |
nullableObject(JsonField... fields) |
static JsonNode |
nullableObject(java.util.Map<JsonStringNode,? extends JsonNode> fields) |
static JsonNode |
nullableString(java.lang.String value) |
static JsonNode |
nullNode() |
static JsonNode |
number(java.math.BigDecimal value) |
static JsonNode |
number(java.math.BigInteger value) |
static JsonNode |
number(long value) |
static JsonNode |
number(java.lang.String value) |
static JsonNode |
object(java.lang.Iterable<JsonField> fields) |
static JsonNode |
object(java.util.Iterator<JsonField> fields) |
static JsonNode |
object(JsonField... fields) |
static JsonNode |
object(java.util.Map<JsonStringNode,? extends JsonNode> fields) |
static JsonNode |
prevalidatedNumber(JsonParser.PrevalidatedNumber prevalidatedNumber)
Internal method.
|
static JsonStringNode |
string(java.lang.String value) |
static JsonNode |
trueNode() |
public static JsonNode nullNode()
public static JsonNode trueNode()
public static JsonNode falseNode()
public static JsonStringNode string(java.lang.String value)
value - the Java String to represent as a JSON stringpublic static JsonNode nullableString(java.lang.String value)
value - the Java String to represent as a JSON stringpublic static JsonNode number(java.lang.String value)
value - a Java String to represent as a JSON numberpublic static JsonNode number(java.math.BigDecimal value)
value - a Java BigDecimal to represent as a JSON numberpublic static JsonNode number(java.math.BigInteger value)
value - a Java BigInteger to represent as a JSON numberpublic static JsonNode number(long value)
value - a Java long to represent as a JSON numberpublic static JsonNode nullableNumber(java.lang.String value)
value - a Java String to represent as a JSON numberpublic static JsonNode nullableNumber(java.math.BigDecimal value)
value - a Java BigDecimal to represent as a JSON numberpublic static JsonNode nullableNumber(java.math.BigInteger value)
value - a Java BigInteger to represent as a JSON numberpublic static JsonNode nullableNumber(java.lang.Long value)
value - a Java Long to represent as a JSON numberpublic static JsonNode prevalidatedNumber(JsonParser.PrevalidatedNumber prevalidatedNumber)
prevalidatedNumber - a pre-validated numberpublic static JsonNode array(java.util.Iterator<? extends JsonNode> elements)
elements - JsonNodes that will populate the arrayJsonNodespublic static JsonNode array(java.lang.Iterable<? extends JsonNode> elements)
elements - JsonNodes that will populate the arrayJsonNodespublic static JsonNode array(JsonNode... elements)
elements - JsonNodes that will populate the arrayJsonNodespublic static JsonNode nullableArray(java.util.Iterator<? extends JsonNode> elements)
elements - JsonNodes that will populate the arrayJsonNodes or a JSON null if the Iterator is nullpublic static JsonNode nullableArray(java.lang.Iterable<? extends JsonNode> elements)
elements - JsonNodes that will populate the arrayJsonNodes or a JSON null if the Iterable is nullpublic static JsonNode nullableArray(JsonNode... elements)
elements - JsonNodes that will populate the arrayJsonNodes or a JSON null if the Java array is nullpublic static JsonNode object(java.util.Map<JsonStringNode,? extends JsonNode> fields)
fields - JsonFields that the object will containpublic static JsonNode object(JsonField... fields)
fields - JsonFields that the object will containpublic static JsonNode object(java.util.Iterator<JsonField> fields)
fields - JsonFields that the object will containpublic static JsonNode object(java.lang.Iterable<JsonField> fields)
fields - JsonFields that the object will containpublic static JsonNode nullableObject(java.util.Map<JsonStringNode,? extends JsonNode> fields)
fields - JsonFields that the object will containpublic static JsonNode nullableObject(JsonField... fields)
fields - JsonFields that the object will containpublic static JsonNode nullableObject(java.util.Iterator<JsonField> fields)
fields - JsonFields that the object will containpublic static JsonNode nullableObject(java.lang.Iterable<JsonField> fields)
fields - JsonFields that the object will containpublic static JsonField field(java.lang.String name, JsonNode value)
name - the name of the fieldvalue - the value of the fieldpublic static JsonField field(JsonStringNode name, JsonNode value)
name - the name of the fieldvalue - the value of the fieldpublic static JsonNode booleanNode(boolean value)
value - the Java boolean to represent as a JSON Booleanpublic static JsonNode nullableBooleanNode(java.lang.Boolean value)
value - the Java Boolean to represent as a JSON Boolean