|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jdtaus.core.text.Message
public abstract class Message
Application message.
Application messages consist of at least the two properties
timestamp and formatArguments. The timestamp property
will be initialized during instantiation to hold the timestamp of instance
creation. Property formatArguments holds the arguments to use
for formatting message text. It is recommended that subclasses of this class
are declared final so that calling getClass() on a message
instance always returns a type uniquely identifying a message type in the
system.
MessageEvent,
Serialized Form| Field Summary | |
|---|---|
static Comparator |
ASCENDING
Comparator for sorting messages in ascending order of occurence. |
static Comparator |
DESCENDING
Comparator for sorting messages in descending order of occurence. |
| Constructor Summary | |
|---|---|
Message()
Creates a new Message 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 formatArguments. |
abstract String |
getText(Locale locale)
Gets the formatted message text. |
long |
getTimestamp()
Getter for property timestamp. |
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
Note:
This comparator imposes orderings that are inconsistent with equals.
public static final Comparator DESCENDING
Note:
This comparator imposes orderings that are inconsistent with equals.
| Constructor Detail |
|---|
public Message()
Message instance.
| Method Detail |
|---|
public Object clone()
clone in class Objectpublic final boolean equals(Object o)
Messages internally cary a UID which is created during instantiation.
This UID is used for comparing o with the instance.
equals in class Objecto - the reference object with which to compare.
true if this object is the same as o;
false otherwise.UIDpublic abstract Object[] getFormatArguments(Locale locale)
formatArguments.
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.
locale.public final long getTimestamp()
timestamp.
public final int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||