|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdtaus.core.text.Message
Application message.
Application messages consist of at least the two properties and . The property will be initialized during instantiation to hold the timestamp of instance creation. Property holds the arguments to use for formatting message text. It is recommended that subclasses of this class are declared so that calling on a message instance always returns a type uniquely identifying a message type in the system.
MessageEventSource,
Serialized Form| Field Summary | |
static Comparator |
ASCENDING
Comparator for sorting messsages in ascending order of occurence. |
static Comparator |
DESCENDING
Comparator for sorting messsages in descending order of occurence. |
| Constructor Summary | |
Message()
Creates a new instance. |
|
| Method Summary | |
Object |
clone()
Creates and returns a copy of this object. |
boolean |
equals(Object o)
Indicates whether some other object is equal to this one. |
abstract Object[] |
getFormatArguments(Locale locale)
Getter for property . |
abstract String |
getText(Locale locale)
Gets the formatted message text. |
long |
getTimestamp()
Getter for property . |
int |
hashCode()
Returns a hash code value for this object. |
String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final Comparator ASCENDING
public static final Comparator DESCENDING
| Constructor Detail |
public Message()
| Method Detail |
public Object clone()
public final boolean equals(Object o)
Messages internally cary a UID which is created during instantiation. This UID is used for comparing with the instance.
o - the reference object with which to compare.
UIDpublic abstract Object[] getFormatArguments(Locale locale)
locale - the locale to be used for the arguments to return.
public abstract String getText(Locale locale)
locale - the locale to be used for the text to return.public final long getTimestamp()
public final int hashCode()
public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||