| java.lang.Object | |
| ↳ | com.esri.core.symbol.advanced.Message |
Message contains properties which can be processed by MessageProcessor. Apart from message ID, all other
properties are name-value pairs which should be recognizable to the target message processor.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Message()
Initializes a Message object.
| |||||||||||
|
Message(JsonParser parser)
Initializes a Message object from an JsonParsor object.
| |||||||||||
|
Message(Message other)
Initializes a Message object from other message.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
addProperties(Map<String, Object> properties)
Adds the properties as a map.
| ||||||||||
| String |
getID()
Get the message ID.
| ||||||||||
| Map<String, Object> |
getProperties()
Gets the properties as a map.
| ||||||||||
| Object |
getProperty(String name)
Returns the property value in specified name.
| ||||||||||
| void |
setID(String id)
Sets the message ID.
| ||||||||||
| void |
setProperties(Map<String, Object> properties)
Sets the properties as a map.
| ||||||||||
| void |
setProperty(String name, Object value)
Sets the property with specified name-value pair.
| ||||||||||
| String | toString() | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Initializes a Message object.
Initializes a Message object from an JsonParsor object.
| parser | JsonParser object which represents a message in JSON format. |
|---|
Initializes a Message object from other message.
| other | the other message. |
|---|
Adds the properties as a map. The new properties are added into the old properties.
| properties | the properties to add. |
|---|
Returns the property value in specified name.
| name | property name. |
|---|
Sets the properties as a map. The old properties are replaced.
| properties | the properties to set |
|---|
Sets the property with specified name-value pair. If the property already exists, the old value is replaced.
| name | property name. |
|---|---|
| value | property value. |