public class AsyncMessage
extends java.lang.Object
Constructor and Description |
---|
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.
|
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 date
|
Modifier and Type | Method and 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.
|
public AsyncMessage(org.w3c.dom.Document doc, ConnectionAttributes session)
doc
- XML Document sent from the server.session
- Session infopublic AsyncMessage(int nr, java.lang.String ins, com.uc4.translate.Message translator)
nr
- Message Numberins
- Inserttranslator
- Translatorpublic AsyncMessage(DateTime date, int nr, java.lang.String ins, com.uc4.translate.Message translator)
nr
- Message Numberins
- Inserttranslator
- Translatorpublic DateTime getDate()
public java.lang.String getInsert()
public int getNumber()
public char getType()
public java.lang.String getText()