Package com.google.refine.util
Class JSONUtilities
java.lang.Object
com.google.refine.util.JSONUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappend(com.fasterxml.jackson.databind.node.ArrayNode array, int v) static voidappend(com.fasterxml.jackson.databind.node.ArrayNode sheetRecords, com.fasterxml.jackson.databind.node.ObjectNode sheetRecord) static voidstatic List<com.fasterxml.jackson.databind.JsonNode>static com.fasterxml.jackson.databind.node.ArrayNodestatic booleangetBoolean(com.fasterxml.jackson.databind.JsonNode obj, String key, boolean def) static intstatic int[]getIntArray(com.fasterxml.jackson.databind.node.ObjectNode obj, String key) static intgetIntElement(com.fasterxml.jackson.databind.node.ArrayNode a, int i, int def) static com.fasterxml.jackson.databind.node.ObjectNodestatic com.fasterxml.jackson.databind.node.ObjectNodegetObjectElement(com.fasterxml.jackson.databind.node.ArrayNode a, int i) static List<com.fasterxml.jackson.databind.node.ObjectNode>getObjectList(com.fasterxml.jackson.databind.node.ArrayNode a) static Stringstatic String[]getStringArray(com.fasterxml.jackson.databind.node.ObjectNode obj, String key) static voidstatic voidstatic voidstatic voidstatic voidsafePut(com.fasterxml.jackson.databind.node.ObjectNode options, String key, com.fasterxml.jackson.databind.JsonNode rootElement) static voidstatic Object[]toArray(com.fasterxml.jackson.databind.node.ArrayNode v) static Comparable[]toSortableArray(com.fasterxml.jackson.databind.node.ArrayNode v)
-
Constructor Details
-
JSONUtilities
public JSONUtilities()
-
-
Method Details
-
getObject
public static com.fasterxml.jackson.databind.node.ObjectNode getObject(com.fasterxml.jackson.databind.node.ObjectNode obj, String key) -
getString
-
getInt
-
getBoolean
public static boolean getBoolean(com.fasterxml.jackson.databind.JsonNode obj, String key, boolean def) -
getArray
public static com.fasterxml.jackson.databind.node.ArrayNode getArray(com.fasterxml.jackson.databind.node.ObjectNode obj, String key) -
getArray
-
getIntArray
-
getStringArray
-
getObjectElement
public static com.fasterxml.jackson.databind.node.ObjectNode getObjectElement(com.fasterxml.jackson.databind.node.ArrayNode a, int i) -
getObjectList
public static List<com.fasterxml.jackson.databind.node.ObjectNode> getObjectList(com.fasterxml.jackson.databind.node.ArrayNode a) -
getIntElement
public static int getIntElement(com.fasterxml.jackson.databind.node.ArrayNode a, int i, int def) -
append
public static void append(com.fasterxml.jackson.databind.node.ArrayNode sheetRecords, com.fasterxml.jackson.databind.node.ObjectNode sheetRecord) -
append
public static void append(com.fasterxml.jackson.databind.node.ArrayNode array, int v) -
append
-
safePut
public static void safePut(com.fasterxml.jackson.databind.node.ObjectNode options, String key, com.fasterxml.jackson.databind.JsonNode rootElement) -
safeInc
-
safePut
public static void safePut(com.fasterxml.jackson.databind.node.ObjectNode obj, String key, long value) -
safePut
public static void safePut(com.fasterxml.jackson.databind.node.ObjectNode obj, String key, double value) -
safePut
public static void safePut(com.fasterxml.jackson.databind.node.ObjectNode obj, String key, boolean value) -
safePut
-
toArray
-
toSortableArray
-