1 19 20 package ca.mcgill.sable.soot.ui; 21 22 import java.util.Vector ; 23 24 public class SootOption { 25 26 private Vector children; 27 private String label; 28 private SootOption parent; 29 private String alias; 30 31 public SootOption() { 32 33 } 34 35 38 public SootOption(String label, String alias) { 39 setLabel(label); 40 setAlias(alias); 41 } 42 43 public void addChild(SootOption t) { 44 if (getChildren() == null) { 45 setChildren(new Vector ()); 46 } 47 t.setParent(this); 48 getChildren().add(t); 49 } 50 51 52 56 public Vector getChildren() { 57 return children; 58 } 59 60 64 public String getLabel() { 65 return label; 66 } 67 68 72 public void setChildren(Vector children) { 73 this.children = children; 74 } 75 76 80 public void setLabel(String label) { 81 this.label = label; 82 } 83 84 88 public SootOption getParent() { 89 return parent; 90 } 91 92 96 public void setParent(SootOption parent) { 97 this.parent = parent; 98 } 99 100 103 public String getAlias() { 104 return alias; 105 } 106 107 110 public void setAlias(String string) { 111 alias = string; 112 } 113 114 } 115 | Popular Tags |