KickJava   Java API By Example, From Geeks To Geeks.

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


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 object element
63
64     @author Written by <a HREF="mailto:jcarol@us.ibm.com">Carol Jones</a>
65 */

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

73     public Object()
74     {
75     super("object");
76     }
77
78     /**
79     This constructor creates a &lt;object&gt; tag.
80     @param name the name="" attribute
81     @param expr the expr="" attribute
82     @param cond the cond="" attribute
83     @param classid the classid="" attribute
84     @param codebase the codebase="" attribute
85     @param codetype the codetype="" attribute
86     @param data the data="" attribute
87     @param t the type="" attribute
88     @param archive the archive="" attribute
89     @param caching the caching="" attribute
90     @param fetchaudio the fetchaudio="" attribute
91     @param fetchint the fetchint="" attribute
92     @param fetchtimeout the fetchtimeout="" attribute
93     */

94     public Object(String JavaDoc name, String JavaDoc expr, String JavaDoc cond, String JavaDoc classid, String JavaDoc codebase,
95                   String JavaDoc codetype, String JavaDoc data, String JavaDoc t, String JavaDoc archive, String JavaDoc caching,
96                   String JavaDoc fetchaudio, String JavaDoc fetchint, String JavaDoc fetchtimeout)
97     {
98     this();
99     setName(name);
100     setExpr(expr);
101     setCond(cond);
102     setClassid(classid);
103     setCodebase(codebase);
104     setCodetype(codetype);
105     setData(data);
106     setType(t);
107     setArchive(archive);
108     setCaching(caching);
109     setFetchaudio(fetchaudio);
110     setFetchint(fetchint);
111     setFetchtimeout(fetchtimeout);
112     }
113     
114     /**
115     This constructor creates a &lt;object&gt; tag.
116     @param name the name="" attribute
117     @param classid the classid="" attribute
118     @param data the data="" attribute
119     */

120     public Object(String JavaDoc name, String JavaDoc classid, String JavaDoc data)
121     {
122     this();
123     setName(name);
124     setClassid(classid);
125     setData(data);
126     }
127
128     /**
129     This constructor creates a &lt;object&gt; tag.
130     @param name the name="" attribute
131     @param classid the classid="" attribute
132     */

133     public Object(String JavaDoc name, String JavaDoc classid)
134     {
135     this();
136     setName(name);
137     setClassid(classid);
138     }
139     
140     /**
141     Sets the name="" attribute
142     @param name the name="" attribute
143     */

144     public org.apache.ecs.vxml.Object setName(String JavaDoc name)
145     {
146     addAttribute("name", name);
147     return this;
148     }
149
150     /**
151     Sets the expr="" attribute
152     @param expr the expr="" attribute
153     */

154     public org.apache.ecs.vxml.Object setExpr(String JavaDoc expr)
155     {
156     addAttribute("expr", expr);
157     return this;
158     }
159
160     /**
161     Sets the cond="" attribute
162     @param cond the cond="" attribute
163     */

164     public org.apache.ecs.vxml.Object setCond(String JavaDoc cond)
165     {
166     addAttribute("cond", cond);
167     return this;
168     }
169
170     /**
171     Sets the classid="" attribute
172     @param classid the classid="" attribute
173     */

174     public org.apache.ecs.vxml.Object setClassid(String JavaDoc classid)
175     {
176     addAttribute("classid", classid);
177     return this;
178     }
179
180     /**
181     Sets the codebase="" attribute
182     @param codebase the codebase="" attribute
183     */

184     public org.apache.ecs.vxml.Object setCodebase(String JavaDoc codebase)
185     {
186     addAttribute("codebase", codebase);
187     return this;
188     }
189
190     /**
191     Sets the codetype="" attribute
192     @param codetype the codetype="" attribute
193     */

194     public org.apache.ecs.vxml.Object setCodetype(String JavaDoc codetype)
195     {
196     addAttribute("codetype", codetype);
197     return this;
198     }
199     
200     /**
201     Sets the data="" attribute
202     @param data the data="" attribute
203     */

204     public org.apache.ecs.vxml.Object setData(String JavaDoc data)
205     {
206     addAttribute("data", data);
207     return this;
208     }
209
210     /**
211     Sets the type="" attribute
212     @param type the type="" attribute
213     */

214     public org.apache.ecs.vxml.Object setType(String JavaDoc type)
215     {
216     addAttribute("type", type);
217     return this;
218     }
219
220     /**
221     Sets the archive="" attribute
222     @param archive the archive="" attribute
223     */

224     public org.apache.ecs.vxml.Object setArchive(String JavaDoc archive)
225     {
226     addAttribute("archive", archive);
227     return this;
228     }
229
230     /**
231     Sets the caching="" attribute
232     @param caching the caching="" attribute
233     */

234     public org.apache.ecs.vxml.Object setCaching(String JavaDoc caching)
235     {
236     addAttribute("caching", caching);
237     return this;
238     }
239
240     /**
241     Sets the fetchaudio="" attribute
242     @param fetchaudio the fetchaudio="" attribute
243     */

244     public org.apache.ecs.vxml.Object setFetchaudio(String JavaDoc fetchaudio)
245     {
246     addAttribute("fetchaudio", fetchaudio);
247     return this;
248     }
249
250     /**
251     Sets the fetchint="" attribute
252     @param fetchint the fetchint="" attribute
253     */

254     public org.apache.ecs.vxml.Object setFetchint(String JavaDoc fetchint)
255     {
256     addAttribute("fetchint", fetchint);
257     return this;
258     }
259
260     /**
261     Sets the fetchtimeout="" attribute
262     @param fetchtimeout the fetchtimeout="" attribute
263     */

264     public org.apache.ecs.vxml.Object setFetchtimeout(String JavaDoc fetchtimeout)
265     {
266     addAttribute("fetchtimeout", fetchtimeout);
267     return this;
268     }
269
270 }
271
Popular Tags