public abstract class BusinessEntity
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
BusinessEntity()
Default empty constructor.
|
|
BusinessEntity(org.json.JSONObject jsonObject)
BusinessEntity constructor's.
|
|
BusinessEntity(java.lang.String json)
BusinessEntity constructor's.
|
| Modifier and Type | Method and Description |
|---|---|
protected static org.json.JSONObject |
getJSONObject(java.lang.String json)
Convert a json string to JSONObject.
|
protected abstract void |
loadFromJSONObject(org.json.JSONObject jsonObject)
Set the BusinessEntity's properties loading them from a JSONObject.
|
abstract org.json.JSONObject |
toJSONObject()
Convert a BusinessEntity to JSONObject.
|
java.lang.String |
toString() |
protected BusinessEntity()
public BusinessEntity(org.json.JSONObject jsonObject)
jsonObject - The JSONObject.public BusinessEntity(java.lang.String json)
json - The json string.public abstract org.json.JSONObject toJSONObject()
protected static org.json.JSONObject getJSONObject(java.lang.String json)
json - The json string.protected abstract void loadFromJSONObject(org.json.JSONObject jsonObject)
jsonObject - The JSONObject.@NonNull public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()