|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.MessageDescription
This class defines message descriptions (errors, warnings, notices, ...). The message format is a text message with placeholders for its arguments of the form {0}, {1}, ... . Each placeholder will be replaced by the string representation of the corresponding argument.
| Field Summary | |
private String |
format
|
private int |
level
|
static int |
LVL_CAUTION
|
static int |
LVL_ERROR
|
static int |
LVL_INFO
|
static int |
LVL_NOTICE
|
static int |
LVL_UNDEFINED
|
static int |
LVL_WARNING_1
|
static int |
LVL_WARNING_2
|
static int |
LVL_WARNING_3
|
static int |
LVL_WARNING_UNCHECKED
|
private String |
reference
|
| Constructor Summary | |
MessageDescription(String format,
String reference,
int level)
Constructs a message description |
|
| Method Summary | |
String |
format(Object[] parameters)
Returns a string explaining the error. |
String |
getFormat()
Returns the message format. |
int |
getLevel()
Returns the level of this message. |
String |
getReference()
Returns a reference to a documentation on this message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int LVL_UNDEFINED
public static final int LVL_ERROR
public static final int LVL_CAUTION
public static final int LVL_WARNING_1
public static final int LVL_WARNING_2
public static final int LVL_WARNING_3
public static final int LVL_NOTICE
public static final int LVL_INFO
public static final int LVL_WARNING_UNCHECKED
private String format
private String reference
private int level
| Constructor Detail |
public MessageDescription(String format,
String reference,
int level)
format - the textual message format (with placeholders)reference - the document describing the reason for this messagelevel - the severity level of this message | Method Detail |
public String getFormat()
public String getReference()
public int getLevel()
public String format(Object[] parameters)
parameters - the array of parameters
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||