public abstract class AbstractResource extends Object
Modifier and Type | Field and Description |
---|---|
protected org.json.JSONObject |
dataObj |
protected List<Warning> |
warnings |
Modifier | Constructor and Description |
---|---|
protected |
AbstractResource() |
protected |
AbstractResource(org.json.JSONObject json,
String optionalKey) |
Modifier and Type | Method and Description |
---|---|
protected <T> void |
add(String key,
T item) |
protected void |
addToList(String key,
AbstractResource listItem) |
protected void |
clearList(String key) |
protected Object |
get(String key) |
protected Boolean |
getBoolean(String key) |
protected Constructor<?> |
getConstructor(Class<?> clazz,
Class<?> paramClass)
Returns the first constructor that has exactly one parameter of the
provided paramClass type.
|
protected Date |
getDate(String key) |
protected Integer |
getInteger(String key) |
org.json.JSONObject |
getJSONObject() |
protected <T> List<T> |
getList(Class<T> clazz,
String key) |
protected <T> List<T> |
getList(Class<T> clazz,
String key,
Serializable filterValue,
String filterColumnName) |
protected Long |
getLong(String key) |
protected String |
getString(String key) |
List<Warning> |
getWarnings() |
protected boolean |
has(String key) |
protected static boolean |
hasString(String s) |
protected void |
set(String key,
Object value) |
String |
toString() |
String |
toString(int spacesToIndent) |
protected AbstractResource()
protected AbstractResource(org.json.JSONObject json, String optionalKey) throws HelloSignException
HelloSignException
public org.json.JSONObject getJSONObject()
protected boolean has(String key)
protected <T> List<T> getList(Class<T> clazz, String key, Serializable filterValue, String filterColumnName)
protected void clearList(String key) throws HelloSignException
HelloSignException
protected void addToList(String key, AbstractResource listItem) throws HelloSignException
HelloSignException
protected Constructor<?> getConstructor(Class<?> clazz, Class<?> paramClass)
clazz
- Class whose constructors we are checkingparamClass
- Class Parameter class that the constructor should takeprotected <T> void add(String key, T item)
protected static boolean hasString(String s)
public String toString(int spacesToIndent)
Copyright © 2017 HelloSign. All rights reserved.