|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.dms.compiler.tools.common.MessageDescription
public class 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 | |
|---|---|
static int |
LVL_CAUTION
|
static int |
LVL_ERROR
|
static int |
LVL_INFO
|
static int |
LVL_NOTICE
|
static int |
LVL_UNDEFINED
|
static int |
LVL_WARNING
|
| 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
public static final int LVL_NOTICE
public static final int LVL_INFO
| 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||