Public Member Functions | Static Public Attributes | Protected Member Functions

com.cosylab.acs.maci.MessageType Class Reference

List of all members.

Public Member Functions

String getName ()
String getDescription ()
String toString ()

Static Public Attributes

static final MessageType MSG_ERROR = new MessageType("MSG_ERROR", "Error message.")
static final MessageType MSG_INFORMATION = new MessageType("MSG_INFORMATION", "Informational message.")

Protected Member Functions

 MessageType (String name, String description)

Detailed Description

Type of the message. Can be either MSG_ERROR or MSG_INFORMATION.

Author:
Matej Sekoranja (matej.sekoranja@cosylab.com)
Version:
@VERSION@

Constructor & Destructor Documentation

com.cosylab.acs.maci.MessageType.MessageType ( String  name,
String  description 
) [protected]

Creates a new message type with its name and description. Contructor is protected to deny creation of unsupported types

Parameters:
name name of the type, non-null
description description of the type, non-null

Member Function Documentation

String com.cosylab.acs.maci.MessageType.getDescription (  ) 

Returns the description of the type.

Returns:
String description of the type
String com.cosylab.acs.maci.MessageType.getName (  ) 

Returns the name of the type.

Returns:
String name of the type
String com.cosylab.acs.maci.MessageType.toString (  ) 

Returns a single-line rendition of this instance into text.

Returns:
internal state of this instance

Member Data Documentation

final MessageType com.cosylab.acs.maci.MessageType.MSG_ERROR = new MessageType("MSG_ERROR", "Error message.") [static]
final MessageType com.cosylab.acs.maci.MessageType.MSG_INFORMATION = new MessageType("MSG_INFORMATION", "Informational message.") [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties