|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.ContextUtil.ContextResult
public static class ContextUtil.ContextResult
Class for holding the result of a call to the
InteractivePlugin.isInContext(GuiContext, Object)
method.
Field Summary | |
---|---|
private PluginConfiguration |
config
|
private String |
contextMessage
|
private PluginDefinition |
plugin
|
private Throwable |
throwable
|
Constructor Summary | |
---|---|
|
ContextUtil.ContextResult(PluginDefinition plugin,
PluginConfiguration config,
String contextMessage)
Create a new warning-level result object. |
|
ContextUtil.ContextResult(PluginDefinition plugin,
PluginConfiguration config,
Throwable t)
Create a new error-level result object. |
private |
ContextUtil.ContextResult(SessionControl sc,
PluginDefinition plugin,
PluginConfiguration config,
GuiContext context,
Object currentItem)
|
Method Summary | |
---|---|
String |
getContextMessage()
Get the warning level message, or the message from Throwable.getMessage() if this is an error-level object. |
Throwable |
getError()
Get the exception that caused the error, or null if this is a warning-level object. |
String |
getName()
Get the name of the plug-in configuration or, if the configuration is null, of the plug-in definition |
PluginConfiguration |
getPluginConfiguration()
Get the plugin configuration that was checked, or null. |
PluginDefinition |
getPluginDefinition()
Get the plugin definition that was checked. |
boolean |
isError()
If this is an error-level object. |
boolean |
isInContext()
If the context check was successful and generate no warnings or error. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final PluginDefinition plugin
private final PluginConfiguration config
private String contextMessage
private Throwable throwable
Constructor Detail |
---|
private ContextUtil.ContextResult(SessionControl sc, PluginDefinition plugin, PluginConfiguration config, GuiContext context, Object currentItem)
public ContextUtil.ContextResult(PluginDefinition plugin, PluginConfiguration config, String contextMessage)
plugin
- The plugin definitionconfig
- The plugin configuration or nullcontextMessage
- The warning message, or null if there is no warning or errorpublic ContextUtil.ContextResult(PluginDefinition plugin, PluginConfiguration config, Throwable t)
plugin
- The plugin definitionconfig
- The plugin configuration or nullt
- The exception that caused the errorMethod Detail |
---|
public PluginDefinition getPluginDefinition()
public PluginConfiguration getPluginConfiguration()
public String getContextMessage()
Throwable.getMessage()
if this is an error-level object.
public Throwable getError()
public String getName()
public boolean isInContext()
public boolean isError()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |