BEAST
eu.baltrad.beast.admin.JsonGenerator Interface Reference

Provides functionality for generating jsonified objects. More...

Inheritance diagram for eu.baltrad.beast.admin.JsonGenerator:
eu.baltrad.beast.admin.JsonGeneratorImpl

Public Member Functions

String toJson (CommandResponse response)
 Generates a JSON message from a command response object.
 
String toJson (Adaptor adaptor)
 Creates a JSON message from an adaptor.
 
String toJsonFromAdaptors (List< Adaptor > adaptors)
 Creates a JSON message from a list of adaptors.
 
String toJson (Route route)
 Generates a JSON message from a route object.
 
String toJsonFromRoutes (List< Route > routes)
 Generates a JSON message from a list of routes.
 
String toJson (CronEntry entry)
 Generates a JSON message from a cron entry.
 
String toJsonFromCronEntries (List< CronEntry > entries)
 Generates a JSON message from a list of cron entries.
 
String toJson (AnomalyDetector detector)
 Generates a JSON message from an anomaly detector.
 
String toJsonFromAnomalyDetectorList (List< AnomalyDetector > detectors)
 Generates a JSON message from a list of anomaly detectors.
 
String toJson (User user)
 Generates a JSON message from a user.
 
String toJsonFromUsers (List< User > users)
 Generates a JSON message from a list of users.
 
String toJson (Settings settings)
 Generates a JSON message from settings.
 

Detailed Description

Provides functionality for generating jsonified objects.

Author
anders

Member Function Documentation

◆ toJson() [1/7]

String eu.baltrad.beast.admin.JsonGenerator.toJson ( Adaptor adaptor)

Creates a JSON message from an adaptor.

Parameters
adaptorthe adaptor
Returns
the json string

Implemented in eu.baltrad.beast.admin.JsonGeneratorImpl.

◆ toJson() [2/7]

String eu.baltrad.beast.admin.JsonGenerator.toJson ( AnomalyDetector detector)

Generates a JSON message from an anomaly detector.

Parameters
detectorthe detector
Returns
the json string

Implemented in eu.baltrad.beast.admin.JsonGeneratorImpl.

◆ toJson() [3/7]

String eu.baltrad.beast.admin.JsonGenerator.toJson ( CommandResponse response)

Generates a JSON message from a command response object.

Parameters
responsethe response object
Returns
the json string

Implemented in eu.baltrad.beast.admin.JsonGeneratorImpl.

◆ toJson() [4/7]

String eu.baltrad.beast.admin.JsonGenerator.toJson ( CronEntry entry)

Generates a JSON message from a cron entry.

Parameters
entrythe entry
Returns
the json string

Implemented in eu.baltrad.beast.admin.JsonGeneratorImpl.

◆ toJson() [5/7]

String eu.baltrad.beast.admin.JsonGenerator.toJson ( Route route)

Generates a JSON message from a route object.

Parameters
routethe route
Returns
the json string

Implemented in eu.baltrad.beast.admin.JsonGeneratorImpl.

◆ toJson() [6/7]

String eu.baltrad.beast.admin.JsonGenerator.toJson ( Settings settings)

Generates a JSON message from settings.

Parameters
settingsthe settings
Returns
the JSON string

Implemented in eu.baltrad.beast.admin.JsonGeneratorImpl.

◆ toJson() [7/7]

String eu.baltrad.beast.admin.JsonGenerator.toJson ( User user)

Generates a JSON message from a user.

Parameters
userthe user
Returns
the JSON string

Implemented in eu.baltrad.beast.admin.JsonGeneratorImpl.

◆ toJsonFromAdaptors()

String eu.baltrad.beast.admin.JsonGenerator.toJsonFromAdaptors ( List< Adaptor > adaptors)

Creates a JSON message from a list of adaptors.

Parameters
adaptorsthe adaptor
Returns
the json string

Implemented in eu.baltrad.beast.admin.JsonGeneratorImpl.

◆ toJsonFromAnomalyDetectorList()

String eu.baltrad.beast.admin.JsonGenerator.toJsonFromAnomalyDetectorList ( List< AnomalyDetector > detectors)

Generates a JSON message from a list of anomaly detectors.

Parameters
detectorsthe detectors
Returns
the JSON string

Implemented in eu.baltrad.beast.admin.JsonGeneratorImpl.

◆ toJsonFromCronEntries()

String eu.baltrad.beast.admin.JsonGenerator.toJsonFromCronEntries ( List< CronEntry > entries)

Generates a JSON message from a list of cron entries.

Parameters
entriesthe cron entries
Returns
the json string

Implemented in eu.baltrad.beast.admin.JsonGeneratorImpl.

◆ toJsonFromRoutes()

String eu.baltrad.beast.admin.JsonGenerator.toJsonFromRoutes ( List< Route > routes)

Generates a JSON message from a list of routes.

Parameters
routesthe list of routes
Returns
the json string

Implemented in eu.baltrad.beast.admin.JsonGeneratorImpl.

◆ toJsonFromUsers()

String eu.baltrad.beast.admin.JsonGenerator.toJsonFromUsers ( List< User > users)

Generates a JSON message from a list of users.

Parameters
usersthe users
Returns
the JSON string

Implemented in eu.baltrad.beast.admin.JsonGeneratorImpl.


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