View Javadoc

1   /*
2    *
3    *   Copyright 2005 The Apache Software Foundation.
4    *
5    *  Licensed under the Apache License, Version 2.0 (the "License");
6    *  you may not use this file except in compliance with the License.
7    *  You may obtain a copy of the License at
8    *
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   *
11   *  Unless required by applicable law or agreed to in writing, software
12   *  distributed under the License is distributed on an "AS IS" BASIS,
13   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   *  See the License for the specific language governing permissions and
15   *  limitations under the License.
16   *
17   */
18  package org.apache.commons.scxml.model;
19  
20  import java.util.Collection;
21  
22  import org.apache.commons.logging.Log;
23  import org.apache.commons.scxml.ErrorReporter;
24  import org.apache.commons.scxml.EventDispatcher;
25  import org.apache.commons.scxml.SCInstance;
26  import org.apache.commons.scxml.SCXMLExpressionException;
27  
28  /***
29   * The class in this SCXML object model that corresponds to the
30   * <exit> SCXML element, which is a shorthand notation for
31   * an empty anonymous final state.
32   *
33   */
34  public class Exit extends Action {
35  
36      /***
37       * The optional expression.
38       */
39      private String expr;
40  
41      /***
42       * The optional namelist.
43       */
44      private String namelist;
45  
46      /***
47       * Constructor.
48       */
49      public Exit() {
50          super();
51      }
52  
53      /***
54       * Get the expression.
55       *
56       * @return String Returns the expr.
57       */
58      public final String getExpr() {
59          return expr;
60      }
61  
62      /***
63       * Set the expression.
64       *
65       * @param expr The expr to set.
66       */
67      public final void setExpr(final String expr) {
68          this.expr = expr;
69      }
70  
71      /***
72       * Get the namelist.
73       *
74       * @return String Returns the namelist.
75       */
76      public final String getNamelist() {
77          return namelist;
78      }
79  
80      /***
81       * Set the namelist.
82       *
83       * @param namelist The namelist to set.
84       */
85      public final void setNamelist(final String namelist) {
86          this.namelist = namelist;
87      }
88  
89      /***
90       * {@inheritDoc}
91       */
92      public void execute(final EventDispatcher evtDispatcher,
93              final ErrorReporter errRep, final SCInstance scInstance,
94              final Log appLog, final Collection derivedEvents)
95      throws ModelException, SCXMLExpressionException {
96          // we're done
97          return;
98      }
99  
100 }
101