org.specrunner.result
Interface IResult

All Superinterfaces:
IActionType, IPresentation, IStatus, IStatusVariable
All Known Implementing Classes:
ResultImpl

public interface IResult
extends IStatusVariable, IActionType, IPresentation

A individual result.

Author:
Thiago Santos

Method Summary
 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.
 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.
 
Methods inherited from interface org.specrunner.result.IStatusVariable
setStatus
 
Methods inherited from interface org.specrunner.result.IStatus
getStatus
 
Methods inherited from interface org.specrunner.plugins.IActionType
getActionType
 
Methods inherited from interface org.specrunner.util.xom.IPresentation
asNode, asString
 

Method Detail

hasBlock

boolean hasBlock()
If result has a block.

Returns:
true, if it has a non null value, false, otherwise.

getBlock

IBlock getBlock()
Block related to this result.

Returns:
The node.

hasMessage

boolean hasMessage()
If result has a message.

Returns:
true, if it has a non null value, false, otherwise.

getMessage

String getMessage()
Message associated to the result.

Returns:
A message, or null, if no message has been set.

hasFailure

boolean hasFailure()
If result has a failure.

Returns:
true, if it has a non null value, false, otherwise.

getFailure

Throwable getFailure()
In case of errors result, an exception hold its information.

Returns:
An error if exists, null, otherwise.

hasWritable

boolean hasWritable()
If result has a writable.

Returns:
true, if it has a non null value, false, otherwise.

getWritable

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.

Returns:
The writable, if exists, null, otherwise.


Copyright © 2014. All rights reserved.