BaltradDex
BALTRAD Data Exchange System
|
Public Member Functions | |
String | userAccountToJson (User user) |
User | jsonToUserAccount (String json) |
String | dataSourcesToJson (Set< DataSource > dataSources) |
Set< DataSource > | jsonToDataSources (String json) |
String | subscriptionsToJson (List< Subscription > subscriptions) |
List< Subscription > | jsonToSubscriptions (String json) |
Protocol handler for the json language
String eu.baltrad.dex.net.protocol.json.JsonProtocol.dataSourcesToJson | ( | Set< DataSource > | dataSources | ) |
Creates a json string from a set of data sources
dataSources | the data sources |
Implemented in eu.baltrad.dex.net.protocol.json.impl.JsonProtocol20, and eu.baltrad.dex.net.protocol.json.impl.JsonProtocol21.
Set< DataSource > eu.baltrad.dex.net.protocol.json.JsonProtocol.jsonToDataSources | ( | String | json | ) |
Parses a json string into a set of data sources
json | the json string |
RuntimeException |
Implemented in eu.baltrad.dex.net.protocol.json.impl.JsonProtocol20, and eu.baltrad.dex.net.protocol.json.impl.JsonProtocol21.
List< Subscription > eu.baltrad.dex.net.protocol.json.JsonProtocol.jsonToSubscriptions | ( | String | json | ) |
Parses a json string into a list of subscriptions
json |
RuntimeException |
Implemented in eu.baltrad.dex.net.protocol.json.impl.JsonProtocol20.
User eu.baltrad.dex.net.protocol.json.JsonProtocol.jsonToUserAccount | ( | String | json | ) |
Parses a json string into a user object
json | the json string |
Implemented in eu.baltrad.dex.net.protocol.json.impl.JsonProtocol20.
String eu.baltrad.dex.net.protocol.json.JsonProtocol.subscriptionsToJson | ( | List< Subscription > | subscriptions | ) |
Creates a json string from a list of subscriptions
subscriptions | the subscriptions |
Implemented in eu.baltrad.dex.net.protocol.json.impl.JsonProtocol20.
String eu.baltrad.dex.net.protocol.json.JsonProtocol.userAccountToJson | ( | User | user | ) |
Creates a json string from a user object
user | the user object |
Implemented in eu.baltrad.dex.net.protocol.json.impl.JsonProtocol20.