org.specrunner.annotator.core
Class AnnotatorTitle

java.lang.Object
  extended by org.specrunner.annotator.core.AnnotatorTitle
All Implemented Interfaces:
IAnnotator

public class AnnotatorTitle
extends Object
implements IAnnotator

Add/Append title with result information.

Author:
Thiago Santos

Constructor Summary
AnnotatorTitle()
           
 
Method Summary
protected  void addTitle(nu.xom.Node node, String message, Throwable error)
          Add title to a node based on error.
 void annotate(IResultSet result)
          Annotates the result information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatorTitle

public AnnotatorTitle()
Method Detail

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.

addTitle

protected void addTitle(nu.xom.Node node,
                        String message,
                        Throwable error)
                 throws AnnotatorException
Add title to a node based on error.

Parameters:
node - The node.
message - The message.
error - The error.
Throws:
AnnotatorException - On annotation errors.


Copyright © 2014. All rights reserved.