public class Message
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private Catalog |
itsCatalog
The catalog this message belongs to.
|
private java.lang.String |
itsMessageId
The message ID.
|
private int |
itsSeverity
The message's severity.
|
Constructor and Description |
---|
Message(Catalog catalog,
java.lang.String messageId,
int severity)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
details()
Returns the details of the message
|
java.lang.String |
detailsWithId()
Returns the details of the message
|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one
|
java.lang.String |
formatText(java.lang.Object[] args)
Formats the message using the specified parameters
|
java.lang.String |
formatTextWithId(java.lang.Object[] args)
Formats the message using the specified parameters.
|
Catalog |
getCatalog()
Returns the catalog the message belongs to
|
java.lang.String |
getMessageId()
Returns the message's id
|
java.lang.String |
getQualifiedId()
Returns the message's qualified id which is the concatenation of the catalog id and the message id
|
int |
getSeverity()
Returns the message's severity
|
int |
hashCode()
Returns a hash code value for the object
|
java.lang.String |
text()
Returns the text of the message
|
java.lang.String |
textWithId()
Returns the text of the message prefixed by its qualified id
|
java.lang.String |
toString()
Returns the qualified id of the message as its string representation
|
private Catalog itsCatalog
private java.lang.String itsMessageId
private int itsSeverity
public Message(Catalog catalog, java.lang.String messageId, int severity)
public Catalog getCatalog()
public java.lang.String getQualifiedId()
public java.lang.String getMessageId()
public int getSeverity()
public java.lang.String text()
public java.lang.String textWithId()
public java.lang.String details()
public java.lang.String detailsWithId()
public java.lang.String formatText(java.lang.Object[] args)
public java.lang.String formatTextWithId(java.lang.Object[] args)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object