org.apache.oozie.client.rest
Interface JsonBean

All Known Implementing Classes:
BulkResponseImpl, BundleActionBean, BundleJobBean, CoordinatorActionBean, CoordinatorJobBean, JMSConnectionInfoBean, JsonBundleJob, JsonCoordinatorAction, JsonCoordinatorJob, JsonSLAEvent, JsonWorkflowAction, JsonWorkflowJob, SLAEventBean, SLARegistrationBean, SLASummaryBean, WorkflowActionBean, WorkflowJobBean

public interface JsonBean

Inteface for beans that serialize into JSON.


Method Summary
 org.json.simple.JSONObject toJSONObject()
          Return the JSONObject for the bean with GMT time zone.
 org.json.simple.JSONObject toJSONObject(String timeZoneId)
          Return the JSONObject for the bean with the given time zone.
 

Method Detail

toJSONObject

org.json.simple.JSONObject toJSONObject()
Return the JSONObject for the bean with GMT time zone.

Returns:
the JSONObject for the bean with GMT time zone.

toJSONObject

org.json.simple.JSONObject toJSONObject(String timeZoneId)
Return the JSONObject for the bean with the given time zone.

Parameters:
timeZoneId - the time zone to use
Returns:
the JSONObject for the bean with the given time zone.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.