1 58 package org.apache.ecs.vxml; 59 60 65 public class Choice extends VXMLElement 66 { 67 68 72 public Choice() 73 { 74 super("choice"); 75 } 76 77 78 89 public Choice(String dtmf, String next, String event, String expr, 90 String caching, String fetchaudio, String fetchint, String fetchtimeout) 91 { 92 this(); 93 setDtmf(dtmf); 94 setNext(next); 95 setEvent(event); 96 setExpr(expr); 97 setCaching(caching); 98 setFetchaudio(fetchaudio); 99 setFetchint(fetchint); 100 setFetchtimeout(fetchtimeout); 101 } 102 103 107 public Choice(String next) 108 { 109 this(); 110 setNext(next); 111 } 112 113 118 public Choice(String dtmf, String next) 119 { 120 this(); 121 setDtmf(dtmf); 122 setNext(next); 123 } 124 125 129 public Choice setDtmf(String dtmf) 130 { 131 addAttribute("dtmf", dtmf); 132 return this; 133 } 134 135 139 public Choice setNext(String next) 140 { 141 addAttribute("next", next); 142 return this; 143 } 144 145 146 150 public Choice setEvent(String event) 151 { 152 addAttribute("event", event); 153 return this; 154 } 155 156 160 public Choice setExpr(String expr) 161 { 162 addAttribute("expr", expr); 163 return this; 164 } 165 166 170 public Choice setCaching(String caching) 171 { 172 addAttribute("caching", caching); 173 return this; 174 } 175 176 180 public Choice setFetchaudio(String fetchaudio) 181 { 182 addAttribute("fetchaudio", fetchaudio); 183 return this; 184 } 185 186 190 public Choice setFetchint(String fetchint) 191 { 192 addAttribute("fetchint", fetchint); 193 return this; 194 } 195 196 200 public Choice setFetchtimeout(String fetchtimeout) 201 { 202 addAttribute("fetchtimeout", fetchtimeout); 203 return this; 204 } 205 206 207 } 208 | Popular Tags |