public class BusinessEntityBuilder<T extends BusinessEntity>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
T |
fromJSONObject(org.json.JSONObject jsonObject)
Instantiate a BusinessEntity (T) using a JSONObject.
|
static <T extends BusinessEntity> |
getFactory(java.lang.Class<T> type)
Create a new BusinessEntityBuilder.
|
public T fromJSONObject(org.json.JSONObject jsonObject) throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.InstantiationException
jsonObject - The JSONObject.java.lang.NoSuchMethodException - If the constructor from JSONObject isn't found.java.lang.IllegalAccessException - If the constructor from JSONObject can't be accessed.java.lang.reflect.InvocationTargetException - If the constructor form JSONObject throws an exception.java.lang.InstantiationException - If the object can't be instantiated.BusinessEntity.BusinessEntity(JSONObject)public static <T extends BusinessEntity> BusinessEntityBuilder<T> getFactory(java.lang.Class<T> type)
T - The type of BusinessEntity.type - The type of BusinessEntity.