org.specrunner.result
Class Status
java.lang.Object
org.specrunner.util.xom.AbstractType<Status>
org.specrunner.result.Status
- All Implemented Interfaces:
- Comparable<Status>, IPresentation
- Direct Known Subclasses:
- Detail, Failure, Ignored, Info, Success, Warning
public abstract class Status
- extends AbstractType<Status>
A status.
- Author:
- Thiago Santos
|
Field Summary |
protected boolean |
error
If it stands for an error. |
|
Constructor Summary |
protected |
Status(String name,
double importance,
boolean error)
Creates a status. |
|
Method Summary |
boolean |
isError()
true, if stands for an error, false, otherwise. |
void |
setError(boolean error)
Set error status. |
error
protected boolean error
- If it stands for an error.
Status
protected Status(String name,
double importance,
boolean error)
- Creates a status.
- Parameters:
name - The name.importance - The importante.error - The error flag.
isError
public boolean isError()
- true, if stands for an error, false, otherwise.
- Returns:
- The error flag.
setError
public void setError(boolean error)
- Set error status.
- Parameters:
error - The error.
Copyright © 2014. All rights reserved.