KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ecs > vxml > Property


1 /*
2  * ====================================================================
3  *
4  * The Apache Software License, Version 1.1
5  *
6  * Copyright (c) 2000-2003 The Apache Software Foundation. All rights
7  * reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions
11  * are met:
12  *
13  * 1. Redistributions of source code must retain the above copyright
14  * notice, this list of conditions and the following disclaimer.
15  *
16  * 2. Redistributions in binary form must reproduce the above copyright
17  * notice, this list of conditions and the following disclaimer in
18  * the documentation and/or other materials provided with the
19  * distribution.
20  *
21  * 3. The end-user documentation included with the redistribution, if
22  * any, must include the following acknowlegement:
23  * "This product includes software developed by the
24  * Apache Software Foundation (http://www.apache.org/)."
25  * Alternately, this acknowlegement may appear in the software itself,
26  * if and wherever such third-party acknowlegements normally appear.
27  *
28  * 4. The names "The Jakarta Project", "Jakarta Element Construction Set",
29  * "Jakarta ECS" , and "Apache Software Foundation" must not be used
30  * to endorse or promote products derived
31  * from this software without prior written permission. For written
32  * permission, please contact apache@apache.org.
33  *
34  * 5. Products derived from this software may not be called "Apache",
35  * "Jakarta Element Construction Set" nor "Jakarta ECS" nor may "Apache"
36  * appear in their names without prior written permission of the Apache Group.
37  *
38  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
39  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
40  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
41  * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
42  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
43  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
44  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
45  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
46  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
47  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
48  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
49  * SUCH DAMAGE.
50  * ====================================================================
51  *
52  * This software consists of voluntary contributions made by many
53  * individuals on behalf of the Apache Software Foundation. For more
54  * information on the Apache Software Foundation, please see
55  * <http://www.apache.org/>.
56  *
57  */

58 package org.apache.ecs.vxml;
59
60
61 /**
62     This class implements the property element
63
64     @author Written by <a HREF="mailto:jcarol@us.ibm.com">Carol Jones</a>
65 */

66 public class Property extends VXMLElement
67 {
68
69     /**
70     Basic constructor. You need to set the attributes using the
71     set* methods.
72     */

73     public Property()
74     {
75     super("property");
76     }
77
78      
79     /**
80     Sets the confidencelevel="" attribute
81     @param confidencelevel the confidencelevel="" attribute
82     */

83     public Property setConfidencelevel(String JavaDoc confidencelevel)
84     {
85     addAttribute("name", "confidencelevel");
86     addAttribute("value", confidencelevel);
87     return this;
88     }
89
90     
91     /**
92     Sets the sensitivity="" attribute
93     @param sensitivity the sensitivity="" attribute
94     */

95     public Property setSensitivity(String JavaDoc sensitivity)
96     {
97     addAttribute("name", "sensitivity");
98     addAttribute("value", sensitivity);
99     return this;
100     }
101
102     /**
103     Sets the speedvsaccuracy="" attribute
104     @param speedvsaccuracy the speedvsaccuracy="" attribute
105     */

106     public Property setSpeedvsaccuracy(String JavaDoc speedvsaccuracy)
107     {
108     addAttribute("name", "speedvsaccuracy");
109     addAttribute("value", speedvsaccuracy);
110     return this;
111     }
112     
113     /**
114     Sets the completetimeout="" attribute
115     @param completetimeout the completetimeout="" attribute
116     */

117     public Property setCompletetimeout(String JavaDoc completetimeout)
118     {
119     addAttribute("name", "completetimeout");
120     addAttribute("value", completetimeout);
121     return this;
122     }
123
124     /**
125     Sets the incompletetimeout="" attribute
126     @param incompletetimeout the incompletetimeout="" attribute
127     */

128     public Property setIncompletetimeout(String JavaDoc incompletetimeout)
129     {
130     addAttribute("name", "incompletetimeout");
131     addAttribute("value", incompletetimeout);
132     return this;
133     }
134
135     /**
136     Sets the interdigittimeout="" attribute
137     @param interdigittimeout the interdigittimeout="" attribute
138     */

139     public Property setInterdigittimeout(String JavaDoc interdigittimeout)
140     {
141     addAttribute("name", "interdigittimeout");
142     addAttribute("value", interdigittimeout);
143     return this;
144     }
145
146     /**
147     Sets the termtimeout="" attribute
148     @param termtimeout the termtimeout="" attribute
149     */

150     public Property setTermtimeout(String JavaDoc termtimeout)
151     {
152     addAttribute("name", "termtimeout");
153     addAttribute("value", termtimeout);
154     return this;
155     }
156
157     /**
158     Sets the termchar="" attribute
159     @param termchar the termchar="" attribute
160     */

161     public Property setTermchar(String JavaDoc termchar)
162     {
163     addAttribute("name", "termchar");
164     addAttribute("value", termchar);
165     return this;
166     }
167
168     /**
169     Sets the bargein="" attribute
170     @param bargein the bargein="" attribute
171     */

172     public Property setBargein(String JavaDoc bargein)
173     {
174     addAttribute("name", "bargein");
175     addAttribute("value", bargein);
176     return this;
177     }
178
179     /**
180     Sets the timeout="" attribute
181     @param timeout the timeout="" attribute
182     */

183     public Property setTimeout(String JavaDoc timeout)
184     {
185     addAttribute("name", "timeout");
186     addAttribute("value", timeout);
187     return this;
188     }
189
190     /**
191     Sets the caching="" attribute
192     @param caching the caching="" attribute
193     */

194     public Property setCaching(String JavaDoc caching)
195     {
196     addAttribute("name", "caching");
197     addAttribute("value", caching);
198     return this;
199     }
200
201     /**
202     Sets the audiofetchhint="" attribute
203     @param audiofetchhint the audiofetchhint="" attribute
204     */

205     public Property setAudiofetchhint(String JavaDoc audiofetchhint)
206     {
207     addAttribute("name", "audiofetchhint");
208     addAttribute("value", audiofetchhint);
209     return this;
210     }
211
212     /**
213     Sets the documentfetchhint="" attribute
214     @param documentfetchhint the documentfetchhint="" attribute
215     */

216     public Property setDocumentfetchhint(String JavaDoc documentfetchhint)
217     {
218     addAttribute("name", "documentfetchhint");
219     addAttribute("value", documentfetchhint);
220     return this;
221     }
222
223     /**
224     Sets the grammarfetchint="" attribute
225     @param grammarfetchint the grammarfetchint="" attribute
226     */

227     public Property setGrammarfetchint(String JavaDoc grammarfetchint)
228     {
229     addAttribute("name", "grammarfetchint");
230     addAttribute("value", grammarfetchint);
231     return this;
232     }
233
234     /**
235     Sets the objectfetchint="" attribute
236     @param objectfetchint the objectfetchint="" attribute
237     */

238     public Property setObjectfetchint(String JavaDoc objectfetchint)
239     {
240     addAttribute("name", "objectfetchint");
241     addAttribute("value", objectfetchint);
242     return this;
243     }
244
245     /**
246     Sets the scriptfetchhint="" attribute
247     @param scriptfetchhint the scriptfetchhint="" attribute
248     */

249     public Property setScriptfetchhint(String JavaDoc scriptfetchhint)
250     {
251     addAttribute("name", "scriptfetchhint");
252     addAttribute("value", scriptfetchhint);
253     return this;
254     }
255
256     /**
257     Sets the fetchaudio="" attribute
258     @param fetchaudio the fetchaudio="" attribute
259     */

260     public Property setFetchaudio(String JavaDoc fetchaudio)
261     {
262     addAttribute("name", "fetchaudio");
263     addAttribute("value", fetchaudio);
264     return this;
265     }
266
267     /**
268     Sets the fetchtimeout="" attribute
269     @param fetchtimeout the fetchtimeout="" attribute
270     */

271     public Property setFetchtimeout(String JavaDoc fetchtimeout)
272     {
273     addAttribute("name", "fetchtimeout");
274     addAttribute("value", fetchtimeout);
275     return this;
276     }
277
278     /**
279     Sets the inputmodes="" attribute
280     @param inputmodes the inputmodes="" attribute
281     */

282     public Property setInputmodes(String JavaDoc inputmodes)
283     {
284     addAttribute("name", "inputmodes");
285     addAttribute("value", inputmodes);
286     return this;
287     }
288         
289     
290 }
291
Popular Tags