|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.result.core.ResultImpl
public class ResultImpl
Default result implementation.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
ResultImpl(Status status,
IBlock source,
String message,
Throwable failure,
IWritable writable)
The result instance creator. |
|
| Method Summary | |
|---|---|
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. |
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 |
setStatus(Status status)
Set status. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Status status
protected IBlock source
protected String message
protected Throwable failure
protected IWritable writable
| Constructor Detail |
|---|
public ResultImpl(Status status,
IBlock source,
String message,
Throwable failure,
IWritable writable)
status - The status.source - The source block.message - The message.failure - The failure.writable - The writable resources.| Method Detail |
|---|
public Status getStatus()
IStatus
getStatus in interface IStatuspublic void setStatus(Status status)
IStatusVariable
setStatus in interface IStatusVariablestatus - The status.public boolean hasBlock()
IResult
hasBlock in interface IResultpublic IBlock getBlock()
IResult
getBlock in interface IResultpublic boolean hasMessage()
IResult
hasMessage in interface IResultpublic String getMessage()
IResult
getMessage in interface IResultpublic boolean hasFailure()
IResult
hasFailure in interface IResultpublic Throwable getFailure()
IResult
getFailure in interface IResultpublic boolean hasWritable()
IResult
hasWritable in interface IResultpublic IWritable getWritable()
IResult
getWritable in interface IResultpublic ActionType getActionType()
IActionType
getActionType in interface IActionTypepublic String asString()
IPresentation
asString in interface IPresentationpublic nu.xom.Node asNode()
IPresentation
asNode in interface IPresentationpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||