|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcitysdk.tourism.client.parser.JsonParser
public class JsonParser
Parses a given JSON message. It allows the deserialization of:
PointOfInterest, Event,
Route;HypermediaLink, Category, Tag;
| Constructor Summary | |
|---|---|
JsonParser(java.lang.String json)
Initializes a JsonParser with the given json string. |
|
| Method Summary | |
|---|---|
java.lang.String |
getJson()
|
Category |
parseJsonAsCategory()
Parses the JSON as a Category. |
Event |
parseJsonAsEvent()
Parses the JSON as an Event. |
Deserializable |
parseJsonAsGeneric()
Parses the JSON as a generic POI. |
ListEvent |
parseJsonAsListOfEvents()
Parses the JSON as a ListEvent. |
ListPointOfInterest |
parseJsonAsListOfPois()
Parses the JSON as a ListPointOfInterest. |
ListRoute |
parseJsonAsListOfRoutes()
Parses the JSON as a ListRoute. |
ListPOIS |
parseJsonAsListPOIS()
Parses the JSON as a ListPOIS. |
PointOfInterest |
parseJsonAsPointOfInterest()
Parses the JSON as a PointOfInterest. |
Resources |
parseJsonAsResources()
Parses the JSON as a Resources. |
Route |
parseJsonAsRoute()
Parses the JSON as a Route. |
ListTag |
parseJsonAsTags()
Parses the JSON as a ListTag. |
void |
setJson(java.lang.String json)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsonParser(java.lang.String json)
json - the json string containing a given description.| Method Detail |
|---|
public java.lang.String getJson()
public void setJson(java.lang.String json)
public PointOfInterest parseJsonAsPointOfInterest()
throws UnknownErrorException
PointOfInterest.
PointOfInterest containing the content of the JSON message.
UnknownErrorException - thrown in case of unforeseen errors.
public Event parseJsonAsEvent()
throws UnknownErrorException
Event.
Event containing the content of the JSON message.
UnknownErrorException - thrown in case of unforeseen errors.
public Route parseJsonAsRoute()
throws UnknownErrorException
Route.
Route containing the content of the JSON message
UnknownErrorException - thrown in case of unforeseen errors.
public ListPointOfInterest parseJsonAsListOfPois()
throws UnknownErrorException
ListPointOfInterest.
ListPointOfInterest containing the content of the JSON message.
UnknownErrorException - thrown in case of unforeseen errors.
public ListEvent parseJsonAsListOfEvents()
throws UnknownErrorException
ListEvent.
ListEvent containing the content of the JSON message.
UnknownErrorException - thrown in case of unforeseen errors.
public ListRoute parseJsonAsListOfRoutes()
throws UnknownErrorException
ListRoute.
ListRoute containing the content of the JSON message.
UnknownErrorException - thrown in case of unforeseen errors.
public Resources parseJsonAsResources()
throws UnknownErrorException
Resources.
Resources containing the content of the JSON message
UnknownErrorException - thrown in case of unforeseen errors.
public Category parseJsonAsCategory()
throws UnknownErrorException
Category.
Category containing the content of the JSON message
UnknownErrorException - thrown in case of unforeseen errors.
public ListTag parseJsonAsTags()
throws UnknownErrorException
ListTag.
ListTag containing the content of the JSON message.
UnknownErrorException - thrown in case of unforeseen errors.
public ListPOIS parseJsonAsListPOIS()
throws UnknownErrorException
ListPOIS.
ListPOIS containing the content of the JSON message.
UnknownErrorException - thrown in case of unforeseen errors.
public Deserializable parseJsonAsGeneric()
throws UnknownErrorException
POI.
POI containing the content of the JSON message.
UnknownErrorException - thrown in case of unforeseen errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||