View Javadoc

1   /*
2       Jameleon - An automation testing tool..
3       Copyright (C) 2006-2007 Christian W. Hargraves (engrean@hotmail.com)
4       
5       This library is free software; you can redistribute it and/or
6       modify it under the terms of the GNU Lesser General Public
7       License as published by the Free Software Foundation; either
8       version 2.1 of the License, or (at your option) any later version.
9       This library is distributed in the hope that it will be useful,
10      but WITHOUT ANY WARRANTY; without even the implied warranty of
11      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12      Lesser General Public License for more details.
13      You should have received a copy of the GNU Lesser General Public
14      License along with this library; if not, write to the Free Software
15      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16  */
17  package net.sf.jameleon.result;
18  
19  /***
20   * Describes a tag as being able to record function results. This interface helps define
21   * which parent tag can contain function tags and therefore function results. This enables
22   * the functional point to not be concerned with the logistics of which parent tag to search for
23   * and how to add the FunctionResult to that tag.
24   */
25  public interface FunctionResultRecordable {
26  
27      /***
28       * Records a FunctionResult to the tag's results and sets the FunctionResult's parent
29       * result to itself
30       * @param result - the result to record
31       */
32      public void recordFunctionResult(FunctionResult result);
33  
34  }