public class ResultImpl extends Object implements IResult
| Modifier and Type | Field and Description |
|---|---|
protected Throwable |
failure
The associated failure.
|
protected String |
message
A associated message.
|
protected IBlock |
source
The source block.
|
protected Status |
status
The status.
|
protected IWritable |
writable
The associated writable information.
|
| Constructor and Description |
|---|
ResultImpl(Status status,
IBlock source,
String message,
Throwable failure,
IWritable writable)
The result instance creator.
|
| Modifier and Type | Method and Description |
|---|---|
nu.xom.Node |
asNode()
The object representation as node.
|
String |
asString()
The object representation as string.
|
ActionType |
getActionType()
Get the plugin type.
|
IBlock |
getBlock()
Block related to this result.
|
Throwable |
getFailure()
In case of errors result, an exception hold its information.
|
Boolean |
getFullTrace()
Get full trace status.
|
String |
getMessage()
Message associated to the result.
|
Status |
getStatus()
The object status.
|
IWritable |
getWritable()
Each result can have its extra information, in the form of a writable
object, in other words, a object that know how to write itself.
|
boolean |
hasBlock()
If result has a block.
|
boolean |
hasFailure()
If result has a failure.
|
boolean |
hasMessage()
If result has a message.
|
boolean |
hasWritable()
If result has a writable.
|
void |
setFullTrace(Boolean fullTrace)
Set full trace on results dump.
|
void |
setStatus(Status status)
Set status.
|
String |
toString() |
protected Status status
protected IBlock source
protected String message
protected Throwable failure
protected IWritable writable
public Boolean getFullTrace()
IResultgetFullTrace in interface IResultpublic void setFullTrace(Boolean fullTrace)
IResultsetFullTrace in interface IResultfullTrace - true, to show full trace, false, otherwise. Default is 'true'.public void setStatus(Status status)
IStatusVariablesetStatus in interface IStatusVariablestatus - The status.public boolean hasBlock()
IResultpublic IBlock getBlock()
IResultpublic boolean hasMessage()
IResulthasMessage in interface IResultpublic String getMessage()
IResultgetMessage in interface IResultpublic boolean hasFailure()
IResulthasFailure in interface IResultpublic Throwable getFailure()
IResultgetFailure in interface IResultpublic boolean hasWritable()
IResulthasWritable in interface IResultpublic IWritable getWritable()
IResultgetWritable in interface IResultpublic ActionType getActionType()
IActionTypegetActionType in interface IActionTypepublic String asString()
IPresentationasString in interface IPresentationpublic nu.xom.Node asNode()
IPresentationasNode in interface IPresentationCopyright © 2016. All rights reserved.