1 58 package org.apache.ecs.vxml; 59 60 61 66 public class Field extends VXMLElement 67 { 68 69 73 public Field() 74 { 75 super("field"); 76 } 77 78 79 88 public Field(String name, String expr, String cond, 89 String t, String slot, String modal) 90 { 91 this(); 92 setName(name); 93 setExpr(expr); 94 setCond(cond); 95 setType(t); 96 setSlot(slot); 97 setModal(modal); 98 } 99 100 104 public Field(String name) 105 { 106 this(); 107 setName(name); 108 } 109 110 115 public Field(String name, String t) 116 { 117 this(); 118 setName(name); 119 setType(t); 120 } 121 122 123 127 public Field setName(String name) 128 { 129 addAttribute("name", name); 130 return this; 131 } 132 133 137 public Field setExpr(String expr) 138 { 139 addAttribute("expr", expr); 140 return this; 141 } 142 143 147 public Field setCond(String cond) 148 { 149 addAttribute("cond", cond); 150 return this; 151 } 152 153 157 public Field setType(String type) 158 { 159 addAttribute("type", type); 160 return this; 161 } 162 163 167 public Field setSlot(String slot) 168 { 169 addAttribute("slot", slot); 170 return this; 171 } 172 173 177 public Field setModal(String modal) 178 { 179 addAttribute("modal", modal); 180 return this; 181 } 182 } 183 | Popular Tags |