public class WarningManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WarningManager.WarningOutput |
Constructor and Description |
---|
WarningManager() |
WarningManager(Class<?> forLogger)
Creates a new instance of WarningManager
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
protected String |
createWarning(String message,
Object... arguments) |
protected void |
doWarn(String msg) |
protected String |
format(String message,
Object... arguments)
Derived classes can change the formatting to take into account, say,
pretty printing.
|
String |
getCurrentSectName() |
Class<?> |
getLoggerClass() |
WarningManager.WarningOutput |
getWarningOutput() |
Map<String,List<String>> |
getZSectWarnings() |
void |
setCurrentSectName(String sectName) |
Class<?> |
setLoggerClass(Class<?> cls) |
void |
setWarningOutput(WarningManager.WarningOutput out) |
void |
warn(String message,
Object... arguments)
Basic warning method it creates a warning message by formatting
the given message with the given arguments, and adding such
warning to the map of warnings under the current section name as key.
|
public WarningManager()
public WarningManager(Class<?> forLogger)
forLogger
- protected String format(String message, Object... arguments)
message
- arguments
- public void clear()
public String getCurrentSectName()
public void setCurrentSectName(String sectName)
public Class<?> getLoggerClass()
protected void doWarn(String msg)
public void warn(String message, Object... arguments)
message
- warning string to be formattedarguments
- formatting argumentspublic void setWarningOutput(WarningManager.WarningOutput out)
public WarningManager.WarningOutput getWarningOutput()
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.