public class JsonToBean extends Object
WorkflowAction
, WorkflowJob
, CoordinatorAction
and CoordinatorJob
.
It uses JDK dynamic proxy to create bean instances.
Constructor and Description |
---|
JsonToBean() |
Modifier and Type | Method and Description |
---|---|
static BulkResponse |
createBulkResponse(org.json.simple.JSONObject json)
Creates a Bulk response object from a JSON object.
|
static List<BulkResponse> |
createBulkResponseList(org.json.simple.JSONArray json)
Creates a list of bulk response beans from a JSON array.
|
static List<String> |
createBulkWriteJobIdList(org.json.simple.JSONArray json)
Creates a list of bulk write job ids from a JSON array.
|
static BundleJob |
createBundleJob(org.json.simple.JSONObject json)
Creates a bundle job bean from a JSON object.
|
static List<BundleJob> |
createBundleJobList(org.json.simple.JSONArray json)
Creates a list of bundle job beans from a JSON array.
|
static CoordinatorAction |
createCoordinatorAction(org.json.simple.JSONObject json)
Creates a coordinator action bean from a JSON object.
|
static List<CoordinatorAction> |
createCoordinatorActionList(org.json.simple.JSONArray json)
Creates a list of coordinator action beans from a JSON array.
|
static CoordinatorJob |
createCoordinatorJob(org.json.simple.JSONObject json)
Creates a coordinator job bean from a JSON object.
|
static List<CoordinatorJob> |
createCoordinatorJobList(org.json.simple.JSONArray json)
Creates a list of coordinator job beans from a JSON array.
|
static JMSConnectionInfo |
createJMSConnectionInfo(org.json.simple.JSONObject json)
Creates a JMSInfo bean from a JSON object.
|
static WorkflowAction |
createWorkflowAction(org.json.simple.JSONObject json)
Creates a workflow action bean from a JSON object.
|
static List<WorkflowAction> |
createWorkflowActionList(org.json.simple.JSONArray json)
Creates a list of workflow action beans from a JSON array.
|
static WorkflowJob |
createWorkflowJob(org.json.simple.JSONObject json)
Creates a workflow job bean from a JSON object.
|
static List<WorkflowJob> |
createWorkflowJobList(org.json.simple.JSONArray json)
Creates a list of workflow job beans from a JSON array.
|
public JsonToBean()
public static WorkflowAction createWorkflowAction(org.json.simple.JSONObject json)
json
- json object.public static List<WorkflowAction> createWorkflowActionList(org.json.simple.JSONArray json)
json
- json array.public static WorkflowJob createWorkflowJob(org.json.simple.JSONObject json)
json
- json object.public static List<WorkflowJob> createWorkflowJobList(org.json.simple.JSONArray json)
json
- json array.public static CoordinatorAction createCoordinatorAction(org.json.simple.JSONObject json)
json
- json object.public static List<CoordinatorAction> createCoordinatorActionList(org.json.simple.JSONArray json)
json
- json array.public static CoordinatorJob createCoordinatorJob(org.json.simple.JSONObject json)
json
- json object.public static JMSConnectionInfo createJMSConnectionInfo(org.json.simple.JSONObject json)
json
- json object.public static List<CoordinatorJob> createCoordinatorJobList(org.json.simple.JSONArray json)
json
- json array.public static BundleJob createBundleJob(org.json.simple.JSONObject json)
json
- json object.public static List<BundleJob> createBundleJobList(org.json.simple.JSONArray json)
json
- json array.public static BulkResponse createBulkResponse(org.json.simple.JSONObject json)
json
- json object.public static List<BulkResponse> createBulkResponseList(org.json.simple.JSONArray json)
json
- json array.public static List<String> createBulkWriteJobIdList(org.json.simple.JSONArray json)
json
- json array.Copyright © 2018 Apache Software Foundation. All rights reserved.