View Javadoc

1   /*
2    wsmo4j extension - a Choreography API and Reference Implementation
3   
4    Copyright (c) 2005, University of Innsbruck, Austria
5   
6    This library is free software; you can redistribute it and/or modify it under
7    the terms of the GNU Lesser General Public License as published by the Free
8    Software Foundation; either version 2.1 of the License, or (at your option)
9    any later version.
10   This library is distributed in the hope that it will be useful, but WITHOUT
11   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12   FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13   details.
14   You should have received a copy of the GNU Lesser General Public License along
15   with this library; if not, write to the Free Software Foundation, Inc.,
16   59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17   */
18  package org.wsmo.service.rule;
19  
20  import org.wsmo.common.*;
21  
22  /**
23   * Upper Rule Interface for Orchestration.
24   * 
25   * <pre>
26   *      Created on Jul 26, 2005
27   *      Committed by $Author: vassil_momtchev $
28   *      $Source$
29   * </pre>
30   * 
31   * @author James Scicluna
32   * @author Thomas Haselwanter
33   * @author Holger Lausen
34   * 
35   * @version $Revision: 1844 $ $Date: 2006-10-24 17:11:48 +0300 (Tue, 24 Oct 2006) $
36   */
37  public interface Rule {
38  
39      /**
40       * Acceptor method for the Visitor.
41       * 
42       * @param visitor
43       *            Rule-Visitor object
44       */
45      public void accept(Visitor visitor);
46  
47      /**
48       * Returns a string representation of the Rule.
49       * 
50       * @return String representing the rule object.
51       */
52      public String toString(TopEntity te);
53  }