01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: * <elseif> SCXML element.
30: *
31: */
32: public class ElseIf extends Action {
33:
34: /**
35: * Serial version UID.
36: */
37: private static final long serialVersionUID = 1L;
38:
39: /**
40: * An conditional expression which can be evaluated to true or false.
41: */
42: private String cond;
43:
44: /**
45: * Constructor.
46: */
47: public ElseIf() {
48: super ();
49: }
50:
51: /**
52: * Get the conditional expression.
53: *
54: * @return Returns the cond.
55: */
56: public final String getCond() {
57: return cond;
58: }
59:
60: /**
61: * Set the conditional expression.
62: *
63: * @param cond The cond to set.
64: */
65: public final void setCond(final String cond) {
66: this .cond = cond;
67: }
68:
69: /**
70: * {@inheritDoc}
71: */
72: public void execute(final EventDispatcher evtDispatcher,
73: final ErrorReporter errRep, final SCInstance scInstance,
74: final Log appLog, final Collection derivedEvents)
75: throws ModelException, SCXMLExpressionException {
76: // nothing to do, the <if> container will take care of this
77: return;
78: }
79:
80: }
|