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 import org.enhydra.shark.xpdl.XMLEmptyChoiceElement; 8 9 14 public class StartFinishModes extends XMLComplexChoice { 15 16 public StartFinishModes (StartMode parent) { 17 super(parent,"Mode", true); 18 fillChoices(); 19 } 20 public StartFinishModes (FinishMode parent) { 21 super(parent,"Mode", true); 22 fillChoices(); 23 } 24 25 public void fillChoices () { 26 choices=new ArrayList (); 27 choices.add(new XMLEmptyChoiceElement(this)); 28 choices.add(new Automatic(this)); 29 choices.add(new Manual(this)); 30 choosen=(XMLElement)choices.get(0); 31 } 32 33 public XMLEmptyChoiceElement getEmptyChoiceElement () { 34 return (XMLEmptyChoiceElement)choices.get(0); 35 } 36 37 public void setEmptyChoiceElement () { 38 choosen=(XMLEmptyChoiceElement)choices.get(0); 39 } 40 41 public Automatic getAutomatic () { 42 return (Automatic)choices.get(1); 43 } 44 45 public void setAutomatic () { 46 choosen=(Automatic)choices.get(1); 47 } 48 49 public Manual getManual () { 50 return (Manual)choices.get(2); 51 } 52 53 public void setManual () { 54 choosen=(Manual)choices.get(2); 55 } 56 57 } 58 59 | Popular Tags |