public abstract class OfficeEntity
extends java.lang.Object
| Constructor and Description |
|---|
OfficeEntity() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getData(java.lang.String field)
Gets the data.
|
protected org.json.JSONObject |
getJsonData()
Gets the json data.
|
protected static <E extends OfficeEntity> |
listFromJson(org.json.JSONObject json,
java.lang.Class<E> clazz)
List from json.
|
void |
loadFromJson(org.json.JSONObject json)
Load from json.
|
void |
loadFromJson(org.json.JSONObject json,
boolean isPlainItem)
Load from json.
|
java.lang.String |
toString() |
protected org.json.JSONObject getJsonData()
protected static <E extends OfficeEntity> java.util.List<E> listFromJson(org.json.JSONObject json, java.lang.Class<E> clazz) throws org.json.JSONException
E - the element typejson - the jsonclazz - the clazzorg.json.JSONException - the JSON exceptionpublic void loadFromJson(org.json.JSONObject json)
json - the jsonpublic void loadFromJson(org.json.JSONObject json,
boolean isPlainItem)
json - the jsonisPlainItem - the is plain itempublic java.lang.Object getData(java.lang.String field)
field - the fieldpublic java.lang.String toString()
toString in class java.lang.Object