public final class Transformations extends Object
| Constructor and Description |
|---|
Transformations() |
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.node.ArrayNode |
array(com.fasterxml.jackson.databind.JsonNode node)
Returns the given element as ArrayNode (cast).
|
static com.fasterxml.jackson.databind.node.ArrayNode |
createArray(boolean fallbackToEmptyArray,
com.fasterxml.jackson.databind.JsonNode... nodes)
Creates an ArrayNode from the given nodes.
|
static com.fasterxml.jackson.databind.node.ArrayNode |
createArray(com.fasterxml.jackson.databind.JsonNode... nodes)
Creates a ArrayNode from the given elements, returns null if no elements are provided
|
static com.fasterxml.jackson.databind.node.ArrayNode |
getArray(com.fasterxml.jackson.databind.node.ObjectNode obj,
String fieldName)
Returns the field from a ObjectNode as ArrayNode
|
static com.fasterxml.jackson.databind.node.ArrayNode |
getArrayAndRemove(com.fasterxml.jackson.databind.node.ObjectNode obj,
String fieldName)
Removes the field from a ObjectNode and returns it as ArrayNode
|
static com.fasterxml.jackson.databind.node.ObjectNode |
getObj(com.fasterxml.jackson.databind.node.ObjectNode obj,
String fieldName)
Returns the field from a ObjectNode as ObjectNode
|
static com.fasterxml.jackson.databind.node.ObjectNode |
getObjAndRemove(com.fasterxml.jackson.databind.node.ObjectNode obj,
String fieldName)
Removes the field from a ObjectNode and returns it as ObjectNode
|
static com.fasterxml.jackson.databind.node.ObjectNode |
obj(com.fasterxml.jackson.databind.JsonNode node)
Returns the given node as ObjectNode (cast).
|
static com.fasterxml.jackson.databind.JsonNode |
remove(com.fasterxml.jackson.databind.node.ObjectNode obj,
String fieldName)
Removes the field with the given name from the given ObjectNode
|
static void |
rename(com.fasterxml.jackson.databind.node.ObjectNode obj,
String oldFieldName,
String newFieldName)
Renames a field in a ObjectNode from the oldFieldName to the newFieldName
|
public static com.fasterxml.jackson.databind.node.ObjectNode obj(com.fasterxml.jackson.databind.JsonNode node)
public static com.fasterxml.jackson.databind.node.ObjectNode getObj(com.fasterxml.jackson.databind.node.ObjectNode obj,
String fieldName)
public static com.fasterxml.jackson.databind.node.ObjectNode getObjAndRemove(com.fasterxml.jackson.databind.node.ObjectNode obj,
String fieldName)
public static com.fasterxml.jackson.databind.node.ArrayNode createArray(com.fasterxml.jackson.databind.JsonNode... nodes)
public static com.fasterxml.jackson.databind.node.ArrayNode createArray(boolean fallbackToEmptyArray,
com.fasterxml.jackson.databind.JsonNode... nodes)
public static com.fasterxml.jackson.databind.node.ArrayNode array(com.fasterxml.jackson.databind.JsonNode node)
public static com.fasterxml.jackson.databind.node.ArrayNode getArray(com.fasterxml.jackson.databind.node.ObjectNode obj,
String fieldName)
public static com.fasterxml.jackson.databind.node.ArrayNode getArrayAndRemove(com.fasterxml.jackson.databind.node.ObjectNode obj,
String fieldName)
public static com.fasterxml.jackson.databind.JsonNode remove(com.fasterxml.jackson.databind.node.ObjectNode obj,
String fieldName)
Copyright © 2015. All rights reserved.