001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.commons.scxml.model;
018:
019: import java.util.Collection;
020:
021: import org.apache.commons.logging.Log;
022: import org.apache.commons.scxml.ErrorReporter;
023: import org.apache.commons.scxml.EventDispatcher;
024: import org.apache.commons.scxml.SCInstance;
025: import org.apache.commons.scxml.SCXMLExpressionException;
026:
027: /**
028: * The class in this SCXML object model that corresponds to the
029: * <exit> SCXML element, which is a shorthand notation for
030: * an empty anonymous final state.
031: *
032: */
033: public class Exit extends Action {
034:
035: /**
036: * Serial version UID.
037: */
038: private static final long serialVersionUID = 1L;
039:
040: /**
041: * The optional expression.
042: */
043: private String expr;
044:
045: /**
046: * The optional namelist.
047: */
048: private String namelist;
049:
050: /**
051: * Constructor.
052: */
053: public Exit() {
054: super ();
055: }
056:
057: /**
058: * Get the expression.
059: *
060: * @return String Returns the expr.
061: */
062: public final String getExpr() {
063: return expr;
064: }
065:
066: /**
067: * Set the expression.
068: *
069: * @param expr The expr to set.
070: */
071: public final void setExpr(final String expr) {
072: this .expr = expr;
073: }
074:
075: /**
076: * Get the namelist.
077: *
078: * @return String Returns the namelist.
079: */
080: public final String getNamelist() {
081: return namelist;
082: }
083:
084: /**
085: * Set the namelist.
086: *
087: * @param namelist The namelist to set.
088: */
089: public final void setNamelist(final String namelist) {
090: this .namelist = namelist;
091: }
092:
093: /**
094: * {@inheritDoc}
095: */
096: public void execute(final EventDispatcher evtDispatcher,
097: final ErrorReporter errRep, final SCInstance scInstance,
098: final Log appLog, final Collection derivedEvents)
099: throws ModelException, SCXMLExpressionException {
100: // we're done
101: return;
102: }
103:
104: }
|