Package com.adyen.model.management
Class JSONObject
- java.lang.Object
-
- com.adyen.model.management.JSONObject
-
public class JSONObject extends Object
JSONObject
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_PATHSstatic StringJSON_PROPERTY_ROOT_PATH
-
Constructor Summary
Constructors Constructor Description JSONObject()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONObjectaddPathsItem(JSONPath pathsItem)booleanequals(Object o)Return true if this JSONObject object is equal to o.static JSONObjectfromJson(String jsonString)Create an instance of JSONObject given an JSON stringList<JSONPath>getPaths()Get pathsJSONPathgetRootPath()Get rootPathinthashCode()JSONObjectpaths(List<JSONPath> paths)JSONObjectrootPath(JSONPath rootPath)voidsetPaths(List<JSONPath> paths)voidsetRootPath(JSONPath rootPath)StringtoJson()Convert an instance of JSONObject to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_PATHS
public static final String JSON_PROPERTY_PATHS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ROOT_PATH
public static final String JSON_PROPERTY_ROOT_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
paths
public JSONObject paths(List<JSONPath> paths)
-
addPathsItem
public JSONObject addPathsItem(JSONPath pathsItem)
-
rootPath
public JSONObject rootPath(JSONPath rootPath)
-
getRootPath
public JSONPath getRootPath()
Get rootPath- Returns:
- rootPath
-
setRootPath
public void setRootPath(JSONPath rootPath)
-
equals
public boolean equals(Object o)
Return true if this JSONObject object is equal to o.
-
fromJson
public static JSONObject fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of JSONObject given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of JSONObject
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to JSONObject
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of JSONObject to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-