1 package org.enhydra.shark.xpdl.elements; 2 3 import java.util.ArrayList ; 4 5 import org.enhydra.shark.xpdl.XMLComplexChoice; 6 import org.enhydra.shark.xpdl.XMLElement; 7 8 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 (); 21 choices.add(new No(this)); 22 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 |