org.specrunner.annotator.core
Class AnnotatorCssStatus
java.lang.Object
org.specrunner.annotator.core.AnnotatorCssStatus
- All Implemented Interfaces:
- IAnnotator
public class AnnotatorCssStatus
- extends Object
- implements IAnnotator
Add CSS style related to result status. For each result node add the
corresponding CSS class to the element.
- Author:
- Thiago Santos
|
Method Summary |
void |
annotate(IResultSet result)
Annotates the result information. |
protected nu.xom.Node |
wrapText(nu.xom.Node target)
Add a span surrounding the failed text. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotatorCssStatus
public AnnotatorCssStatus()
annotate
public void annotate(IResultSet result)
throws AnnotatorException
- Description copied from interface:
IAnnotator
- Annotates the result information.
- Specified by:
annotate in interface IAnnotator
- Parameters:
result - The result set.
- Throws:
AnnotatorException - On annotation errors.
wrapText
protected nu.xom.Node wrapText(nu.xom.Node target)
- Add a span surrounding the failed text.
- Parameters:
target - The target node.
- Returns:
- The new node.
Copyright © 2014. All rights reserved.