View Javadoc

    1   /*
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  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  package org.apache.commons.scxml.model;
    18
    19  import java.util.Collection;
    20
    21  import org.apache.commons.logging.Log;
    22  import org.apache.commons.scxml.ErrorReporter;
    23  import org.apache.commons.scxml.EventDispatcher;
    24  import org.apache.commons.scxml.SCInstance;
    25  import org.apache.commons.scxml.SCXMLExpressionException;
    26
    27  /***
    28   * The class in this SCXML object model that corresponds to the
    29   * &lt;exit&gt; SCXML element, which is a shorthand notation for
    30   * an empty anonymous final state.
    31   *
    32   */
    33  public class Exit extends Action {
    34
    35      /***
    36       * Serial version UID.
    37       */
    38      private static final long serialVersionUID = 1L;
    39
    40      /***
    41       * The optional expression.
    42       */
    43      private String expr;
    44
    45      /***
    46       * The optional namelist.
    47       */
    48      private String namelist;
    49
    50      /***
    51       * Constructor.
    52       */
    53      public Exit() {
    54          super();
    55      }
    56
    57      /***
    58       * Get the expression.
    59       *
    60       * @return String Returns the expr.
    61       */
    62      public final String getExpr() {
    63          return expr;
    64      }
    65
    66      /***
    67       * Set the expression.
    68       *
    69       * @param expr The expr to set.
    70       */
    71      public final void setExpr(final String expr) {
    72          this.expr = expr;
    73      }
    74
    75      /***
    76       * Get the namelist.
    77       *
    78       * @return String Returns the namelist.
    79       */
    80      public final String getNamelist() {
    81          return namelist;
    82      }
    83
    84      /***
    85       * Set the namelist.
    86       *
    87       * @param namelist The namelist to set.
    88       */
    89      public final void setNamelist(final String namelist) {
    90          this.namelist = namelist;
    91      }
    92
    93      /***
    94       * {@inheritDoc}
    95       */
    96      public void execute(final EventDispatcher evtDispatcher,
    97              final ErrorReporter errRep, final SCInstance scInstance,
    98              final Log appLog, final Collection derivedEvents)
    99      throws ModelException, SCXMLExpressionException {
    100         // we're done
    101         return;
    102     }
    103
    104 }
    105