public class

Message

extends Object
java.lang.Object
   ↳ com.esri.core.symbol.advanced.Message

Class Overview

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.

Summary

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<StringObject> properties)
Adds the properties as a map.
String getID()
Get the message ID.
Map<StringObject> 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<StringObject> 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

Public Constructors

public Message ()

Initializes a Message object.

public Message (JsonParser parser)

Initializes a Message object from an JsonParsor object.

Parameters
parser JsonParser object which represents a message in JSON format.

public Message (Message other)

Initializes a Message object from other message.

Parameters
other the other message.

Public Methods

public void addProperties (Map<StringObject> properties)

Adds the properties as a map. The new properties are added into the old properties.

Parameters
properties the properties to add.

public String getID ()

Get the message ID.

Returns
  • the message ID string.

public Map<StringObject> getProperties ()

Gets the properties as a map.

Returns
  • the property map.

public Object getProperty (String name)

Returns the property value in specified name.

Parameters
name property name.
Returns
  • property value.

public void setID (String id)

Sets the message ID.

Parameters
id the id to set

public void setProperties (Map<StringObject> properties)

Sets the properties as a map. The old properties are replaced.

Parameters
properties the properties to set

public void setProperty (String name, Object value)

Sets the property with specified name-value pair. If the property already exists, the old value is replaced.

Parameters
name property name.
value property value.

public String toString ()