org.specrunner.result
Class Status

java.lang.Object
  extended by org.specrunner.util.xom.AbstractType<Status>
      extended by 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.
 
Fields inherited from class org.specrunner.util.xom.AbstractType
importance, name
 
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.
 
Methods inherited from class org.specrunner.util.xom.AbstractType
asNode, asString, compareTo, equals, getCssName, getName, hashCode, max, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

error

protected boolean error
If it stands for an error.

Constructor Detail

Status

protected Status(String name,
                 double importance,
                 boolean error)
Creates a status.

Parameters:
name - The name.
importance - The importante.
error - The error flag.
Method Detail

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.