Package com.uc4.communication
Class AsyncMessage
- java.lang.Object
-
- com.uc4.communication.AsyncMessage
-
public class AsyncMessage extends java.lang.Object
Represents an asynchronous message. An asynchronous message is a message in the UC4 message window.
-
-
Constructor Summary
Constructors Constructor Description AsyncMessage(int nr, java.lang.String ins, com.uc4.translate.Message translator)
Deprecated.this assumes NOW as the current date.AsyncMessage(DateTime date, int nr, java.lang.String ins, com.uc4.translate.Message translator)
Creates a new asynchronous message.AsyncMessage(org.w3c.dom.Document doc, ConnectionAttributes session)
Creates an asynchronous message from an XML Document.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateTime
getDate()
Returns the date for this message.java.lang.String
getInsert()
Returns the message insert for this message.int
getNumber()
Returns the number of this message.java.lang.String
getText()
Returns the translatet text.char
getType()
Returns a single character which represents the type of this message.
-
-
-
Constructor Detail
-
AsyncMessage
public AsyncMessage(org.w3c.dom.Document doc, ConnectionAttributes session)
Creates an asynchronous message from an XML Document. Internal use only.- Parameters:
doc
- XML Document sent from the server.session
- Session info
-
AsyncMessage
public AsyncMessage(int nr, java.lang.String ins, com.uc4.translate.Message translator)
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
public AsyncMessage(DateTime date, int nr, java.lang.String ins, com.uc4.translate.Message translator)
Creates a new asynchronous message.- Parameters:
nr
- Message Numberins
- Inserttranslator
- Translator
-
-
Method Detail
-
getDate
public DateTime getDate()
Returns the date for this message.- Returns:
- Message Date
-
getInsert
public java.lang.String 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
public java.lang.String getText()
Returns the translatet text.- Returns:
- text
-
-