DynamicMessageType is a handle to an existing message type. More...
Public Member Functions | |
DynamicMessageType (MessageType< MessageArgumentsType > messageType) | |
Creates a reference to an existing message type. | |
DynamicMessageType (String name, Class< MessageArgumentsType > messageArgumentClass) | |
Creates a reference to an existing message type. | |
Public Member Functions inherited from MessageType< MessageArgumentsType > | |
MessageType (MessageRouting routing, Class< MessageArgumentsType > messageArgumentClass) | |
Creates a new message type without a name. | |
MessageType (String name, MessageRouting routing, Class< MessageArgumentsType > messageArgumentClass) | |
Creates a new message type. | |
boolean | equals (Object object) |
Metaclass | getArgumentsMetaclass () |
Gets the metaclass of the message arguments class associated with the message type. | |
String | getName () |
Gets the fully qualified name of the message type in the form "Class.MessageType". | |
long | getNative () |
Gets a pointer to the backing C++ instance. | |
MessageRouting | getRouting () |
Gets the message routing of the message type. | |
MessageTypeWrapper | getWrapper () |
Gets a wrapper for a MessageType object. | |
int | hashCode () |
String | toString () |
Gets the string presentation of the MessageType. | |
DynamicMessageType is a handle to an existing message type.
You can use it to add and remove a message handler or to dispatch a message of that type on a node.
You can use a DynamicMessageType to access message types by their message arguments type and fully qualified name. When you do not have the message arguments type or it is irrelevant, access message types using the AbstractMessageType type.
You can pass DynamicMessageType directly to functions that take the com.rightware.kanzi.MessageType
argument. You can also query all message type info from DynamicMessageType.
<MessageArgumentsType> | Associated message arguments class, which holds the property type definitions for the arguments of this message type. |
DynamicMessageType | ( | String | name, |
Class< MessageArgumentsType > | messageArgumentClass ) |
Creates a reference to an existing message type.
name | Fully qualified name of the message type. |
messageArgumentClass | Class of the associated message-argument type. |
DynamicMessageType | ( | MessageType< MessageArgumentsType > | messageType | ) |
Creates a reference to an existing message type.
messageType | Reference to an existing message type. |