com.shephertz.app42.paas.sdk.jme.review
Class ReviewResponseBuilder
java.lang.Object
com.shephertz.app42.paas.sdk.jme.App42ResponseBuilder
com.shephertz.app42.paas.sdk.jme.review.ReviewResponseBuilder
public class ReviewResponseBuilder
- extends App42ResponseBuilder
ReviewResponseBuilder class converts the JSON response retrieved from the
server to the value object i.e Review
Method Summary |
java.util.Vector |
buildArrayResponse(java.lang.String json)
Converts the response in JSON format to the list of value objects i.e
Review |
void |
buildObjectFromJSONTree(java.lang.Object obj,
org.json.jme.JSONObject jsonObj)
Handling the review object. |
Review |
buildResponse(java.lang.String json)
Converts the response in JSON format to the value object i.e Review |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReviewResponseBuilder
public ReviewResponseBuilder()
buildArrayResponse
public java.util.Vector buildArrayResponse(java.lang.String json)
throws java.lang.Exception
- Converts the response in JSON format to the list of value objects i.e
Review
- Parameters:
json
- - response in JSON format
- Returns:
- List of Review object filled with json data
- Throws:
java.lang.Exception
buildObjectFromJSONTree
public void buildObjectFromJSONTree(java.lang.Object obj,
org.json.jme.JSONObject jsonObj)
throws java.lang.Exception
- Handling the review object.
- Specified by:
buildObjectFromJSONTree
in class App42ResponseBuilder
- Parameters:
json
- - response in JSON format
- Throws:
java.lang.Exception
buildResponse
public Review buildResponse(java.lang.String json)
throws java.lang.Exception
- Converts the response in JSON format to the value object i.e Review
- Parameters:
json
- - response in JSON format
- Returns:
- Review object filled with json data
- Throws:
java.lang.Exception