View Javadoc

1   /*
2    * $Id: Throw.java,v 1.1 2004/12/15 14:18:11 patforna Exp $
3    *
4    * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
5    * Berne University of Applied Sciences
6    * School of Engineering and Information Technology
7    * All rights reserved.
8    */
9   package bexee.model.activity;
10  
11  import org.apache.xml.utils.QName;
12  
13  import bexee.model.elements.Variable;
14  
15  /***
16   * This throw activity will throw a fault when called.
17   * 
18   * @author Patric Fornasier
19   * @author Pawel Kowalski
20   * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:11 $
21   */
22  public interface Throw extends Activity {
23  
24      //***************************************************/
25      // xml attributes
26      //***************************************************/
27  
28      /***
29       * Set the fault name of the fault to be thrown.
30       * 
31       * @param faultName
32       *            a <code>QName</code> value
33       */
34      public void setFaultName(QName faultName);
35  
36      /***
37       * Get the fault name of the fault to be thrown.
38       * 
39       * @return a <code>QName</code> value
40       */
41      public QName getFaultName();
42  
43      /***
44       * Set the variable of the fault to be thrown.
45       * 
46       * @param variable
47       *            a <code>Variable</code> value
48       */
49      public void setFaultVariable(Variable variable);
50  
51      /***
52       * Get the variable of the fault to be thrown.
53       * 
54       * @return a <code>Variable</code> value
55       */
56      public Variable getFaultVariable();
57  
58  }