KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > xpdl > elements > ImplementationTypes


1 package org.enhydra.shark.xpdl.elements;
2
3 import java.util.ArrayList JavaDoc;
4
5 import org.enhydra.shark.xpdl.XMLComplexChoice;
6 import org.enhydra.shark.xpdl.XMLElement;
7
8 /**
9  * Represents the type of implementations for Activity from XPDL schema.
10  *
11  * @author Sasa Bojanic
12  */

13 public class ImplementationTypes extends XMLComplexChoice {
14
15    public ImplementationTypes (Implementation parent) {
16       super(parent,"Type", true);
17    }
18
19    protected void fillChoices () {
20       choices=new ArrayList JavaDoc();
21       choices.add(new No(this));
22       // we use tools instead of tool
23
choices.add(new Tools(this));
24       choices.add(new SubFlow(this));
25       choosen=(XMLElement)choices.get(0);
26    }
27    
28    public No getNo () {
29       return (No)choices.get(0);
30    }
31
32    public void setNo () {
33       choosen=(No)choices.get(0);
34    }
35    
36    public Tools getTools () {
37       return (Tools)choices.get(1);
38    }
39
40    public void setTools () {
41       choosen=(Tools)choices.get(1);
42    }
43
44    public SubFlow getSubFlow () {
45       return (SubFlow)choices.get(2);
46    }
47
48    public void setSubFlow () {
49       choosen=(SubFlow)choices.get(2);
50    }
51
52 }
53
54
Popular Tags