1 58 package org.apache.ecs.vxml; 59 60 65 public class Grammar extends VXMLElement 66 { 67 68 72 public Grammar() 73 { 74 super("grammar"); 75 } 76 77 78 87 public Grammar(String src, String scope, String t, 88 String caching, String fetchint, String fetchtimeout) 89 { 90 this(); 91 setSrc(src); 92 setScope(scope); 93 setType(t); 94 setCaching(caching); 95 setFetchint(fetchint); 96 setFetchtimeout(fetchtimeout); 97 } 98 99 103 public Grammar(String t) 104 { 105 this(); 106 setType(t); 107 } 108 109 114 public Grammar(String src, String t) 115 { 116 this(); 117 setSrc(src); 118 setType(t); 119 } 120 121 125 public Grammar setSrc(String src) 126 { 127 addAttribute("src", src); 128 return this; 129 } 130 131 135 public Grammar setScope(String scope) 136 { 137 addAttribute("scope", scope); 138 return this; 139 } 140 141 142 146 public Grammar setType(String t) 147 { 148 addAttribute("type", t); 149 return this; 150 } 151 152 156 public Grammar setCaching(String caching) 157 { 158 addAttribute("caching", caching); 159 return this; 160 } 161 162 166 public Grammar setFetchint(String fetchint) 167 { 168 addAttribute("fetchint", fetchint); 169 return this; 170 } 171 172 176 public Grammar setFetchtimeout(String fetchtimeout) 177 { 178 addAttribute("fetchtimeout", fetchtimeout); 179 return this; 180 } 181 182 } 183 | Popular Tags |