Package com.uc4.communication
Class AsyncMessage
java.lang.Object
com.uc4.communication.AsyncMessage
Represents an asynchronous message.
An asynchronous message is a message in the UC4 message window.
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncMessage
(int nr, String ins, com.uc4.translate.Message translator) Deprecated.this assumes NOW as the current date.AsyncMessage
(DateTime date, int nr, String ins, com.uc4.translate.Message translator) Creates a new asynchronous message.AsyncMessage
(Document doc, ConnectionAttributes session) Creates an asynchronous message from an XML Document. -
Method Summary
-
Constructor Details
-
AsyncMessage
Creates an asynchronous message from an XML Document. Internal use only.- Parameters:
doc
- XML Document sent from the server.session
- Session info
-
AsyncMessage
Deprecated.this assumes NOW as the current date. a message should always be created with an actual dateCreates a new asynchronous message.- Parameters:
nr
- Message Numberins
- Inserttranslator
- Translator
-
AsyncMessage
Creates a new asynchronous message.- Parameters:
nr
- Message Numberins
- Inserttranslator
- Translator
-
-
Method Details
-
getDate
Returns the date for this message.- Returns:
- Message Date
-
getInsert
Returns the message insert for this message.- Returns:
- Message Insert
-
getNumber
public int getNumber()Returns the number of this message.- Returns:
- Message Number
-
getType
public char getType()Returns a single character which represents the type of this message.- E ... Error
- I ... Information
- W ... Warning
- Returns:
- type
-
getText
Returns the translatet text.- Returns:
- text
-