|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.media.mn8.MessageFormatter
Class responsible for formatting logging messages. Loading them from the resource bundles and properly formatting them to be displayed.
Method Summary | |
String |
getInterpMessage(String type_id,
String message_id,
String optional,
int line)
The main method for displaying system interpretation related messages for mn8. |
String |
getMessage(String type_id,
String message_id)
The main method for displaying system messages for mn8. |
String |
getMessage(String type_id,
String message_id,
String optional)
The main method for displaying system messages for mn8. |
String |
getMessage(String type_id,
String message_id,
String optional,
String suplementary)
The main method for displaying system messages for mn8. |
String |
getMessageInfo(String message_id)
|
static MessageFormatter |
getReference()
Method for getting the MessageFormatter instance. |
String |
getTypeInfo(String type_id)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static MessageFormatter getReference()
public String getMessage(String type_id, String message_id)
type_id
- The type of the messages (error, warning, ...). This is
actually an key in the resource bundle where the actual value which will be
displayed is hold. mn8.messages.type. has to be inserted before the key in the resource
bundle to store such messages types.
mn8.messages.type.warning=[WARNING]
message_id
- The id of the messages. This is
actually an key in the resource bundle where the actual value which will be
displayed is hold. mn8.messages. has to be inserted before the key in the resource
bundle to store such messages.
mn8.messages.file_missing=Sorry the file: xxx.jar \n is mising.
public String getMessage(String type_id, String message_id, String optional)
type_id
- The type of the messages (error, warning, ...). This is
actually an key in the resource bundle where the actual value which will be
displayed is hold. mn8.messages.type. has to be inserted before the key in the resource
bundle to store such messages types.
mn8.messages.type.warning=[WARNING]
message_id
- The id of the messages. This is
actually an key in the resource bundle where the actual value which will be
displayed is hold. mn8.messages. has to be inserted before the key in the resource
bundle to store such messages.
mn8.messages.file_missing=Sorry the file: xxx.jar \n is mising.
optional
- Another text to be added to the message. Usualy displayed on the same line.
public String getInterpMessage(String type_id, String message_id, String optional, int line)
type_id
- The type of the messages (error, warning, ...). This is
actually an key in the resource bundle where the actual value which will be
displayed is hold. mn8.messages.type. has to be inserted before the key in the resource
bundle to store such messages types.
mn8.messages.type.warning=[WARNING]
message_id
- The id of the messages. This is
actually an key in the resource bundle where the actual value which will be
displayed is hold. mn8.messages. has to be inserted before the key in the resource
bundle to store such messages.
mn8.messages.file_missing=Sorry the file: xxx.jar \n is mising.
optional
- Another text to be added to the message. Usualy displayed on the same line.line
- The line number of the erroneous message.
public String getMessage(String type_id, String message_id, String optional, String suplementary)
type_id
- The type of the messages (error, warning, ...). This is
actually an key in the resource bundle where the actual value which will be
displayed is hold. mn8.messages.type. has to be inserted before the key in the resource
bundle to store such messages types.
mn8.messages.type.warning=[WARNING]
message_id
- The id of the messages. This is
actually an key in the resource bundle where the actual value which will be
displayed is hold. mn8.messages. has to be inserted before the key in the resource
bundle to store such messages.
mn8.messages.file_missing=Sorry the file: xxx.jar \n is mising.
optional
- Another text to be added to the message. Usualy displayed on the same line.
public String getMessageInfo(String message_id)
public String getTypeInfo(String type_id)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |