1 /**
2 * $Id: BaseSwitchFlowNodeDefImpl.java 58 2006-11-08 14:52:38Z maldito_orco $
3 *
4 * =========================================================================
5 *
6 * Copyright 2005 Tubo
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20 package org.tubo.configuration.def.baseimpl;
21
22
23 import org.apache.commons.logging.Log;
24 import org.apache.commons.logging.LogFactory;
25
26 import org.tubo.configuration.def.SwitchCaseDef;
27 import org.tubo.configuration.def.SwitchFlowNodeDef;
28
29 import java.util.List;
30 import java.util.ArrayList;
31
32 /**
33 * <p></p>
34 * <p>
35 * Created: Jul 8, 2005 6:50:24 PM <br>
36 * Last Modification Date: $Date: 2006-11-08 11:52:38 -0300 (Wed, 08 Nov 2006) $
37 * </p>
38 *
39 * @author maldito_orco (maldito_orco@users.sourceforge.net)
40 * @version $Revision: 58 $
41 */
42 public class BaseSwitchFlowNodeDefImpl extends BaseFlowNodeDefImpl implements SwitchFlowNodeDef {
43 public static final String RCS_ID = "$Id: BaseSwitchFlowNodeDefImpl.java 58 2006-11-08 14:52:38Z maldito_orco $";
44 private static Log log = LogFactory.getLog(BaseSwitchFlowNodeDefImpl.class);
45
46 private String choise = null;
47 private List caseDefs = new ArrayList();
48 private SwitchCaseDef defaultCaseDef = null;
49
50 public String getChoise() { return choise; }
51 public void setChoise(String choise) {
52 this.choise = choise;
53 }
54
55 public List getCaseDefs() { return caseDefs; }
56 public void add(SwitchCaseDef newCase) {
57 caseDefs.add(newCase);
58 }
59
60 public SwitchCaseDef getDefaultCaseDef() { return defaultCaseDef; }
61 public void setDefault(SwitchCaseDef defaultCaseDef) {
62 this.defaultCaseDef = defaultCaseDef;
63 }
64 }