Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.51 KB

message.md

File metadata and controls

56 lines (38 loc) · 1.51 KB

CometD Message package

The message package defines structure of tree-form name-value dictionaries to keep content of CometD messages.

The structure is quite self-explaining.

classDiagram
  direction RL


class IMessageElement
<<interface>> IMessageElement

class IMessageElementObject
<<interface>> IMessageElementObject

class IMessageElementArray
<<interface>> IMessageElementArray

class IMessageElementNull
<<interface>> IMessageElementNull

class IMessageElementInteger
<<interface>> IMessageElementInteger

class IMessageElementLong
<<interface>> IMessageElementLong

class IMessageElementDouble
<<interface>> IMessageElementDouble

class IMessageElementBoolean
<<interface>> IMessageElementBoolean

class IMessageElementString
<<interface>> IMessageElementString

IMessageElementObject --|> IMessageElement
IMessageElementArray --|> IMessageElement
IMessageElementNull --|> IMessageElement
IMessageElementInteger --|> IMessageElement
IMessageElementLong --|> IMessageElement
IMessageElementDouble --|> IMessageElement
IMessageElementBoolean --|> IMessageElement
IMessageElementString --|> IMessageElement

IMessageElementArray *-- "0..*" IMessageElement : contains(index -> value)

IMessageElementObject *-- "0..*" IMessageElement : contains(name -> value)
Loading

Each interface has an implementation.

There is also an extension MessageElementExtension that simplifies access to primitive values (e.g. integer, string) and performs data type conversion if needed.