public class Message
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_ALERT |
static int |
TYPE_ERROR |
static int |
TYPE_REPLACEMENT_REQUIRED |
static int |
TYPE_WARNING |
Constructor and Description |
---|
Message(int type,
java.lang.String msgId,
java.lang.Object[] msgArgs) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getMsgArgs() |
java.lang.String |
getMsgId() |
int |
getType() |
boolean |
isAlert() |
boolean |
isError() |
boolean |
isReplacementRequired() |
boolean |
isWarning() |
static Message |
newAlert(java.lang.String msgId,
java.lang.Object[] msgArgs) |
static Message |
newError(java.lang.String msgId,
java.lang.Object[] msgArgs) |
static Message |
newReplacementRequired(java.lang.String msgId,
java.lang.Object[] msgArgs) |
static Message |
newWarning(java.lang.String msgId,
java.lang.Object[] msgArgs) |
public static final int TYPE_ERROR
public static final int TYPE_WARNING
public static final int TYPE_ALERT
public static final int TYPE_REPLACEMENT_REQUIRED
public Message(int type, java.lang.String msgId, java.lang.Object[] msgArgs)
public int getType()
public java.lang.String getMsgId()
public java.lang.Object[] getMsgArgs()
public static Message newError(java.lang.String msgId, java.lang.Object[] msgArgs)
public static Message newWarning(java.lang.String msgId, java.lang.Object[] msgArgs)
public static Message newAlert(java.lang.String msgId, java.lang.Object[] msgArgs)
public static Message newReplacementRequired(java.lang.String msgId, java.lang.Object[] msgArgs)
public boolean isError()
public boolean isWarning()
public boolean isAlert()
public boolean isReplacementRequired()