BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.net.protocol.json.JsonProtocol Interface Reference
Inheritance diagram for eu.baltrad.dex.net.protocol.json.JsonProtocol:
eu.baltrad.dex.net.protocol.json.impl.JsonProtocol20 eu.baltrad.dex.net.protocol.json.impl.JsonProtocol21

Public Member Functions

String userAccountToJson (User user)
 
User jsonToUserAccount (String json)
 
String dataSourcesToJson (Set< DataSource > dataSources)
 
Set< DataSourcejsonToDataSources (String json)
 
String subscriptionsToJson (List< Subscription > subscriptions)
 
List< SubscriptionjsonToSubscriptions (String json)
 

Detailed Description

Protocol handler for the json language

Author
Anders Henja

Member Function Documentation

◆ dataSourcesToJson()

String eu.baltrad.dex.net.protocol.json.JsonProtocol.dataSourcesToJson ( Set< DataSource > dataSources)

Creates a json string from a set of data sources

Parameters
dataSourcesthe data sources
Returns
a json string representation of this set

Implemented in eu.baltrad.dex.net.protocol.json.impl.JsonProtocol20, and eu.baltrad.dex.net.protocol.json.impl.JsonProtocol21.

◆ jsonToDataSources()

Set< DataSource > eu.baltrad.dex.net.protocol.json.JsonProtocol.jsonToDataSources ( String json)

Parses a json string into a set of data sources

Parameters
jsonthe json string
Returns
a set of data sources
Exceptions
RuntimeException

Implemented in eu.baltrad.dex.net.protocol.json.impl.JsonProtocol20, and eu.baltrad.dex.net.protocol.json.impl.JsonProtocol21.

◆ jsonToSubscriptions()

List< Subscription > eu.baltrad.dex.net.protocol.json.JsonProtocol.jsonToSubscriptions ( String json)

Parses a json string into a list of subscriptions

Parameters
json
Returns
the list of subscriptions
Exceptions
RuntimeException

Implemented in eu.baltrad.dex.net.protocol.json.impl.JsonProtocol20.

◆ jsonToUserAccount()

User eu.baltrad.dex.net.protocol.json.JsonProtocol.jsonToUserAccount ( String json)

Parses a json string into a user object

Parameters
jsonthe json string
Returns
the user object

Implemented in eu.baltrad.dex.net.protocol.json.impl.JsonProtocol20.

◆ subscriptionsToJson()

String eu.baltrad.dex.net.protocol.json.JsonProtocol.subscriptionsToJson ( List< Subscription > subscriptions)

Creates a json string from a list of subscriptions

Parameters
subscriptionsthe subscriptions
Returns
the json string

Implemented in eu.baltrad.dex.net.protocol.json.impl.JsonProtocol20.

◆ userAccountToJson()

String eu.baltrad.dex.net.protocol.json.JsonProtocol.userAccountToJson ( User user)

Creates a json string from a user object

Parameters
userthe user object
Returns
the json string

Implemented in eu.baltrad.dex.net.protocol.json.impl.JsonProtocol20.


The documentation for this interface was generated from the following file: