public final class JsonObject extends ObjectNode
ObjectNode
We override it so that the member map is always created instead of playing
around with null when the object has no entries. It simplifies the
code quite a lot. Also, make it final.
ObjectNode.NoFieldsIteratorContainerNode.NoNodesIterator, ContainerNode.NoStringsIterator_children_nodeFactoryNO_NODES, NO_STRINGS| Constructor and Description |
|---|
JsonObject(JsonNodeFactory nc) |
_createMap, _createMap, _defaultDeepCopy, asToken, findParent, findParents, findValue, findValues, findValuesAsText, get, isObject, path, putContentsTo, serialize, serializeWithType, toStringarrayNode, asText, binaryNode, binaryNode, booleanNode, isContainerNode, nullNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, objectNode, POJONode, textNodefindPath, numberType, traverseasBoolean, asBoolean, asDouble, asDouble, asInt, asInt, asLong, asLong, bigIntegerValue, binaryValue, booleanValue, canConvertToInt, canConvertToLong, decimalValue, doubleValue, findParents, findValues, findValuesAsText, has, has, hasNonNull, hasNonNull, intValue, isArray, isBigDecimal, isBigInteger, isBinary, isBoolean, isDouble, isFloatingPointNumber, isInt, isIntegralNumber, isLong, isMissingNode, isNull, isNumber, isPojo, isTextual, isValueNode, iterator, longValue, numberValue, textValuepublic JsonObject(JsonNodeFactory nc)
public JsonObject deepCopy()
deepCopy in class ObjectNodepublic int size()
size in class ObjectNodepublic Iterator<JsonNode> elements()
elements in class ObjectNodepublic JsonNode get(String fieldName)
get in class ObjectNodepublic Iterator<String> fieldNames()
fieldNames in class ObjectNodepublic JsonNode path(String fieldName)
path in class ObjectNodepublic Iterator<Map.Entry<String,JsonNode>> fields()
fields in class ObjectNodepublic ObjectNode with(String propertyName)
with in class ObjectNodepublic ArrayNode withArray(String propertyName)
withArray in class ObjectNodepublic JsonNode set(String fieldName, JsonNode value)
set in class ObjectNodepublic JsonNode setAll(Map<String,JsonNode> properties)
setAll in class ObjectNodepublic JsonNode setAll(ObjectNode other)
setAll in class ObjectNodepublic JsonNode replace(String fieldName, JsonNode value)
replace in class ObjectNodepublic JsonNode without(String fieldName)
without in class ObjectNodepublic JsonObject without(Collection<String> fieldNames)
without in class ObjectNodepublic JsonNode put(String fieldName, JsonNode value)
put in class ObjectNodepublic JsonNode remove(String fieldName)
remove in class ObjectNodepublic JsonObject remove(Collection<String> fieldNames)
remove in class ObjectNodepublic JsonObject removeAll()
removeAll in class ObjectNodepublic JsonNode putAll(Map<String,JsonNode> properties)
putAll in class ObjectNodepublic JsonNode putAll(ObjectNode other)
putAll in class ObjectNodepublic JsonObject retain(Collection<String> fieldNames)
retain in class ObjectNodepublic JsonObject retain(String... fieldNames)
retain in class ObjectNodepublic ArrayNode putArray(String fieldName)
putArray in class ObjectNodepublic ObjectNode putObject(String fieldName)
putObject in class ObjectNodepublic JsonObject putPOJO(String fieldName, Object pojo)
putPOJO in class ObjectNodepublic JsonObject putNull(String fieldName)
putNull in class ObjectNodepublic JsonObject put(String fieldName, int v)
put in class ObjectNodepublic JsonObject put(String fieldName, Integer value)
put in class ObjectNodepublic JsonObject put(String fieldName, long v)
put in class ObjectNodepublic JsonObject put(String fieldName, Long value)
put in class ObjectNodepublic JsonObject put(String fieldName, float v)
put in class ObjectNodepublic JsonObject put(String fieldName, Float value)
put in class ObjectNodepublic JsonObject put(String fieldName, double v)
put in class ObjectNodepublic JsonObject put(String fieldName, Double value)
put in class ObjectNodepublic JsonObject put(String fieldName, BigDecimal v)
put in class ObjectNodepublic JsonObject put(String fieldName, String v)
put in class ObjectNodepublic JsonObject put(String fieldName, boolean v)
put in class ObjectNodepublic JsonObject put(String fieldName, Boolean value)
put in class ObjectNodepublic JsonObject put(String fieldName, byte[] v)
put in class ObjectNodepublic boolean equals(Object o)
equals in class ObjectNodepublic int hashCode()
hashCode in class ObjectNodeCopyright © 2013. All Rights Reserved.