JavaJsonSupport

csw.params.core.formats.JavaJsonSupport
object JavaJsonSupport extends JsonSupport

Attributes

Graph
Supertypes
trait JsonSupport
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

def readAltAzCoord(json: JsValue): AltAzCoord

Attributes

Inherited from:
JsonSupport
def readCometCoord(json: JsValue): CometCoord

Attributes

Inherited from:
JsonSupport
def readEqCoord(json: JsValue): EqCoord

Attributes

Inherited from:
JsonSupport
def readEqFrame(json: JsValue): EqFrame

Attributes

Inherited from:
JsonSupport
def readEvent[A <: Event](json: JsValue): A

Reads an event back from JSON

Reads an event back from JSON

Type parameters

A

the type of the event (use Any and match on the type if you don't know)

Value parameters

json

the parsed JSON

Attributes

Returns

an instance of the given event type, or an exception if the JSON is not valid for that type

Inherited from:
JsonSupport

Attributes

Inherited from:
JsonSupport
def readProperMotion(json: JsValue): ProperMotion

Attributes

Inherited from:
JsonSupport
def readResult(json: JsValue): Result

Reads a Result back from JSON

Reads a Result back from JSON

Value parameters

json

the parsed JSON

Attributes

Returns

an instance of Result, or an exception if the JSON is not valid for that type

Inherited from:
JsonSupport
def readSequenceCommand[A <: SequenceCommand](json: JsValue): A

Reads a SequenceCommand back from JSON

Reads a SequenceCommand back from JSON

Type parameters

A

the type of the command (implied)

Value parameters

json

the parsed JSON

Attributes

Returns

an instance of the given SequenceCommand type, or an exception if the JSON is not valid for that type

Inherited from:
JsonSupport

Attributes

Inherited from:
JsonSupport
def readStateVariable[A <: StateVariable](json: JsValue): A

Reads a StateVariable back from JSON

Reads a StateVariable back from JSON

Type parameters

A

the type of the StateVariable (implied)

Value parameters

json

the parsed JSON

Attributes

Returns

an instance of the given StateVariable, or an exception if the JSON is not valid for that type

Inherited from:
JsonSupport
def reads[T : Decoder](x: JsValue): T

Attributes

Inherited from:
JsonSupport
def writeAltAzCoord(pm: AltAzCoord): JsValue

Attributes

Inherited from:
JsonSupport
def writeCometCoord(pm: CometCoord): JsValue

Attributes

Inherited from:
JsonSupport
def writeEqCoord(pm: EqCoord): JsValue

Attributes

Inherited from:
JsonSupport
def writeEqFrame(pm: EqFrame): JsValue

Attributes

Inherited from:
JsonSupport
def writeEvent(event: Event): JsValue

Writes an event to JSON

Writes an event to JSON

Value parameters

event

any instance of EventType

Attributes

Returns

a JsValue object representing the event

Inherited from:
JsonSupport

Attributes

Inherited from:
JsonSupport
def writeProperMotion(pm: ProperMotion): JsValue

Attributes

Inherited from:
JsonSupport
def writeResult(result: Result): JsValue

Writes a Result to JSON

Writes a Result to JSON

Value parameters

result

any instance of Result

Attributes

Returns

a JsValue object representing the Result

Inherited from:
JsonSupport
def writeSequenceCommand(result: SequenceCommand): JsValue

Writes a SequenceParameterSet to JSON

Writes a SequenceParameterSet to JSON

Value parameters

result

any instance of SequenceCommand

Attributes

Returns

a JsValue object representing the SequenceCommand

Inherited from:
JsonSupport

Attributes

Inherited from:
JsonSupport
def writeStateVariable(stateVariable: StateVariable): JsValue

Writes a state variable to JSON

Writes a state variable to JSON

Value parameters

stateVariable

any instance of StateVariable

Attributes

Returns

a JsValue object representing the StateVariable

Inherited from:
JsonSupport
def writes[T : Encoder](x: T): JsValue

Attributes

Inherited from:
JsonSupport