Kanzi  3.9.7
Java API
MessageType< MessageArgumentsType extends MessageArguments > Class Template Reference

An instance of a MessageType represents a single message type in the Kanzi message system. More...

Inheritance diagram for MessageType< MessageArgumentsType extends MessageArguments >:
[legend]

Public Member Functions

 MessageType (MessageRouting routing, Class< MessageArgumentsType > messageArgumentClass)
 Creates a new message type without a name. More...
 
 MessageType (String name, MessageRouting routing, Class< MessageArgumentsType > messageArgumentClass)
 Creates a new message type. More...
 
boolean equals (Object object)
 
Metaclass getArgumentsMetaclass ()
 Gets the metaclass of the message arguments class associated with the message type. More...
 
String getName ()
 Gets the fully qualified name of the message type in the form "Class.MessageType". More...
 
long getNative ()
 Gets a pointer to the backing C++ instance. More...
 
MessageRouting getRouting ()
 Gets the message routing of the message type. More...
 
MessageTypeWrapper getWrapper ()
 Gets a wrapper for a MessageType object. More...
 
int hashCode ()
 
String toString ()
 Gets the string presentation of the MessageType. More...
 

Detailed Description

An instance of a MessageType represents a single message type in the Kanzi message system.

A message type exists throughout the lifetime of an application.

To work with the existing message types, use AbstractMessageType.

Parameters
<MessageArgumentsType>Associated message arguments class, which holds the property type definitions for the arguments of this message type. If you do not have a message arguments class, you can use the base class MessageArguments.

Constructor & Destructor Documentation

MessageType ( MessageRouting  routing,
Class< MessageArgumentsType >  messageArgumentClass 
)

Creates a new message type without a name.

The name is assigned by metadata registration. The name of the message type will have "Message." prefix. Followed by the metaclass' name the message type is being added to, and finally the name of the field that is owning the message type. If the field's name has a "Message" suffix, it gets trimmed from the name.

Parameters
routingType of message routing to use with this message type.
messageArgumentClassClass of the associated message-argument type.
MessageType ( String  name,
MessageRouting  routing,
Class< MessageArgumentsType >  messageArgumentClass 
)

Creates a new message type.

Parameters
nameFully qualified name of the message type.
routingType of message routing to use with this message type.
messageArgumentClassClass of the associated message-argument type.

Member Function Documentation

Metaclass getArgumentsMetaclass ( )

Gets the metaclass of the message arguments class associated with the message type.

Returns
Metaclass of message arguments class associated with the message type.
String getName ( )

Gets the fully qualified name of the message type in the form "Class.MessageType".

Returns
The fully qualified name of the message type.
long getNative ( )

Gets a pointer to the backing C++ instance.

Returns
A pointer to the backing C++ instance. Type: const AbstractMessageTypeDescriptor*.
MessageRouting getRouting ( )

Gets the message routing of the message type.

Returns
MessageRouting mode of the message type.
MessageTypeWrapper getWrapper ( )

Gets a wrapper for a MessageType object.

Returns
A MessageTypeWrapper object pointing to a MessageType object.
String toString ( )

Gets the string presentation of the MessageType.

Returns
String presentation of the MessageType.