|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.util.tokenizer.SettingsStatus
public class SettingsStatus
An object to pass messages. It supports information, warning, and error messages.
Constructor Summary | |
---|---|
SettingsStatus()
Creates a new status object with no messages. |
Method Summary | |
---|---|
void |
addError(String msg)
Adds an error message to the status object. |
void |
addInfo(String msg)
Adds an informational message to the status object. |
void |
addWarning(String msg)
Adds a warning message to the status object. |
String |
getAllErrorMessages(int maxMsg)
Creates a string containing concatenated error messages, separated by a new line ('\n') character. |
String |
getErrorMessage(int idx)
|
String |
getInfoMessage(int idx)
|
int |
getNumOfAllMessages()
|
int |
getNumOfErrors()
|
int |
getNumOfInfos()
|
int |
getNumOfWarnings()
|
String |
getWarningMessage(int idx)
|
void |
printErrors()
Prints all error messages into the logger as error. |
void |
printInfos()
Prints all info messages into the logger as info. |
void |
printWarnings()
Prints all warning messages into the logger as warning. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SettingsStatus()
Method Detail |
---|
public void addInfo(String msg)
msg
- the info message to addpublic int getNumOfInfos()
public String getInfoMessage(int idx)
idx
- the index of the info message to return (must be
0...NumOfInfos-1)
public void addWarning(String msg)
msg
- the warning message to addpublic int getNumOfWarnings()
public String getWarningMessage(int idx)
idx
- the index of the warning message to return (must be
0...NumOfWarnings-1)
public void addError(String msg)
msg
- the error message to addpublic int getNumOfErrors()
public String getErrorMessage(int idx)
idx
- the index of the error message to return (must be
0...NumOfErors-1)
public int getNumOfAllMessages()
public void printErrors()
public void printWarnings()
public void printInfos()
public String getAllErrorMessages(int maxMsg)
null
.
maxMsg
- the max number of error messages to include in the result.
If set to a number less than or equal 0 all error messages are
included.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |