KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > tools > common > dd > PluginData


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /**
25  * This generated bean class PluginData matches the schema element plugin-data
26  *
27  * Generated on Wed Aug 13 12:12:26 PDT 2003
28  */

29
30 package com.sun.enterprise.tools.common.dd;
31
32 import org.w3c.dom.*;
33 import org.netbeans.modules.schema2beans.*;
34 import java.beans.*;
35 import java.util.*;
36
37 // BEGIN_NOI18N
38

39 public class PluginData extends com.sun.enterprise.tools.common.dd.SunBaseBean
40 {
41
42     static Vector comparators = new Vector();
43
44     static public final String JavaDoc AUTO_GENERATE_SQL = "AutoGenerateSql"; // NOI18N
45
static public final String JavaDoc CLIENT_JAR_PATH = "ClientJarPath"; // NOI18N
46
static public final String JavaDoc CLIENT_ARGS = "ClientArgs"; // NOI18N
47

48     public PluginData() {
49         this(Common.USE_DEFAULT_VALUES);
50     }
51
52     public PluginData(int options)
53     {
54         super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
55         // Properties (see root bean comments for the bean graph)
56
this.createProperty("auto-generate-sql", // NOI18N
57
AUTO_GENERATE_SQL,
58             Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY,
59             String JavaDoc.class);
60         this.createProperty("client-jar-path", // NOI18N
61
CLIENT_JAR_PATH,
62             Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY,
63             String JavaDoc.class);
64         this.createProperty("client-args", // NOI18N
65
CLIENT_ARGS,
66             Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY,
67             String JavaDoc.class);
68         this.initialize(options);
69     }
70
71     // Setting the default values of the properties
72
void initialize(int options)
73     {
74             
75     }
76
77     // This attribute is optional
78
public void setAutoGenerateSql(String JavaDoc value) {
79         this.setValue(AUTO_GENERATE_SQL, value);
80     }
81
82     //
83
public String JavaDoc getAutoGenerateSql() {
84         return (String JavaDoc)this.getValue(AUTO_GENERATE_SQL);
85     }
86
87     // This attribute is optional
88
public void setClientJarPath(String JavaDoc value) {
89         this.setValue(CLIENT_JAR_PATH, value);
90     }
91
92     //
93
public String JavaDoc getClientJarPath() {
94         return (String JavaDoc)this.getValue(CLIENT_JAR_PATH);
95     }
96
97     // This attribute is optional
98
public void setClientArgs(String JavaDoc value) {
99         this.setValue(CLIENT_ARGS, value);
100     }
101
102     //
103
public String JavaDoc getClientArgs() {
104         return (String JavaDoc)this.getValue(CLIENT_ARGS);
105     }
106
107     //
108
public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
109         comparators.add(c);
110     }
111
112     //
113
public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
114         comparators.remove(c);
115     }
116     public void validate() throws org.netbeans.modules.schema2beans.ValidateException {
117         boolean restrictionFailure = false;
118         // Validating property autoGenerateSql
119
if (getAutoGenerateSql() != null) {
120         }
121         // Validating property clientJarPath
122
if (getClientJarPath() != null) {
123         }
124         // Validating property clientArgs
125
if (getClientArgs() != null) {
126         }
127     }
128
129     // Dump the content of this bean returning it as a String
130
public void dump(StringBuffer JavaDoc str, String JavaDoc indent){
131         String JavaDoc s;
132         Object JavaDoc o;
133         org.netbeans.modules.schema2beans.BaseBean n;
134         str.append(indent);
135         str.append("AutoGenerateSql"); // NOI18N
136
str.append(indent+"\t"); // NOI18N
137
str.append("<"); // NOI18N
138
s = this.getAutoGenerateSql();
139         str.append((s==null?"null":s.trim())); // NOI18N
140
str.append(">\n"); // NOI18N
141
this.dumpAttributes(AUTO_GENERATE_SQL, 0, str, indent);
142
143         str.append(indent);
144         str.append("ClientJarPath"); // NOI18N
145
str.append(indent+"\t"); // NOI18N
146
str.append("<"); // NOI18N
147
s = this.getClientJarPath();
148         str.append((s==null?"null":s.trim())); // NOI18N
149
str.append(">\n"); // NOI18N
150
this.dumpAttributes(CLIENT_JAR_PATH, 0, str, indent);
151
152         str.append(indent);
153         str.append("ClientArgs"); // NOI18N
154
str.append(indent+"\t"); // NOI18N
155
str.append("<"); // NOI18N
156
s = this.getClientArgs();
157         str.append((s==null?"null":s.trim())); // NOI18N
158
str.append(">\n"); // NOI18N
159
this.dumpAttributes(CLIENT_ARGS, 0, str, indent);
160
161     }
162     public String JavaDoc dumpBeanNode(){
163         StringBuffer JavaDoc str = new StringBuffer JavaDoc();
164         str.append("PluginData\n"); // NOI18N
165
this.dump(str, "\n "); // NOI18N
166
return str.toString();
167     }}
168
169 // END_NOI18N
170

171
172 /*
173         The following schema file has been used for generation:
174
175 <!--
176 This is the root element which binds an ejb reference to a jndi name.
177 -->
178 <!ELEMENT ejb-ref (ejb-ref-name, jndi-name)>
179
180 <!--
181 This node holds all the runtime bindings of a resource env reference.
182 -->
183 <!ELEMENT resource-env-ref ( resource-env-ref-name, jndi-name )>
184
185 <!--
186 This node holds all the runtime bindings of a resource reference.
187 -->
188 <!ELEMENT resource-ref (res-ref-name, jndi-name, default-resource-principal?)>
189
190 <!ELEMENT default-resource-principal (name, password)>
191
192 <!ELEMENT security-role-mapping (role-name, (principal-name | group-name)+)>
193
194 <!--
195 Information about a web service endpoint.
196 -->
197 <!ELEMENT webservice-endpoint ( port-component-name, endpoint-address-uri?, login-config?, transport-guarantee?, service-qname?, tie-class?, servlet-impl-class? )>
198
199 <!--
200 Optional authentication configuration for an EJB web service endpoint.
201 Not needed for servet web service endpoints. Their security configuration
202 is contained in the standard web application descriptor.
203 -->
204 <!ELEMENT login-config ( auth-method )>
205
206 <!--
207 The service-qname element declares the specific WSDL service
208 element that is being refered to. It is not set by the deployer.
209 It is derived during deployment.
210 -->
211 <!ELEMENT service-qname (namespaceURI, localpart)>
212
213 <!--
214 Runtime information about a web service.
215 wsdl-publish-location is optionally used to specify
216 where the final wsdl and any dependent files should be stored. This location
217 resides on the file system from which deployment is initiated.
218 -->
219 <!ELEMENT webservice-description ( webservice-description-name, wsdl-publish-location? )>
220
221 <!--
222 Runtime settings for a web service reference. In the simplest case,
223 there is no runtime information required for a service ref. Runtime info
224 is only needed in the following cases :
225  * to define the port that should be used to resolve a container-managed port
226  * to define default Stub/Call property settings for Stub objects
227  * to define the URL of a final WSDL document to be used instead of
228 the one packaged with a service-ref
229 -->
230 <!ELEMENT service-ref ( service-ref-name, port-info*, call-property*, wsdl-override?, service-impl-class?, service-qname? )>
231
232 <!--
233 Information for a port within a service-reference.
234
235 Either service-endpoint-interface or wsdl-port or both
236 (service-endpoint-interface and wsdl-port) should be specified.
237
238 If both are specified, wsdl-port represents the
239 port the container should choose for container-managed port selection.
240
241 The same wsdl-port value must not appear in
242 more than one port-info entry within the same service-ref.
243
244 If a particular service-endpoint-interface is using container-managed port
245 selection, it must not appear in more than one port-info entry
246 within the same service-ref.
247 -->
248 <!ELEMENT port-info ( service-endpoint-interface?, wsdl-port?, stub-property*, call-property* )>
249
250 <!--
251 Port used in port-info.
252 -->
253 <!ELEMENT wsdl-port ( namespaceURI, localpart )>
254
255 <!--
256 JAXRPC property values that should be set on a stub before it's returned to
257 to the web service client. The property names can be any properties supported
258 by the JAXRPC Stub implementation. See javadoc for javax.xml.rpc.Stub
259 -->
260 <!ELEMENT stub-property ( name, value )>
261
262 <!--
263 JAXRPC property values that should be set on a Call object before it's
264 returned to the web service client. The property names can be any
265 properties supported by the JAXRPC Call implementation. See javadoc
266 for javax.xml.rpc.Call
267 -->
268 <!ELEMENT call-property ( name, value )>
269
270 <!--
271 This info is used only by studio plug-in;it is NOT the part of the orgianl DTD.
272 Used by plugin to store parameters needed to execute an Application client.
273 -->
274 <!ELEMENT plugin-data ( auto-generate-sql?, client-jar-path?, client-args? )>
275 <!ELEMENT auto-generate-sql (#PCDATA)>
276 <!ELEMENT client-jar-path (#PCDATA)>
277 <!ELEMENT client-args (#PCDATA)>
278
279 <!--
280 The ejb ref name locates the name of the ejb reference in the application.
281 -->
282 <!ELEMENT ejb-ref-name (#PCDATA)>
283
284 <!--
285 The text in this node is a jndi name.
286 -->
287 <!ELEMENT jndi-name (#PCDATA)>
288
289 <!--
290 The name of a resource env reference.
291 -->
292 <!ELEMENT resource-env-ref-name (#PCDATA)>
293
294 <!--
295 The name of a resource reference.
296 -->
297 <!ELEMENT res-ref-name (#PCDATA)>
298
299 <!--
300 This text nodes holds a name string.
301 -->
302 <!ELEMENT name (#PCDATA)>
303
304 <!--
305 This element holds password text.
306 -->
307 <!ELEMENT password (#PCDATA)>
308
309 <!ELEMENT role-name (#PCDATA)>
310
311 <!ELEMENT principal-name (#PCDATA)>
312
313 <!ELEMENT group-name (#PCDATA)>
314
315 <!--
316 Unique name of a port component within a module
317 -->
318 <!ELEMENT port-component-name ( #PCDATA )>
319
320 <!--
321 Relative path combined with web server root to form fully qualified
322 endpoint address for a web service endpoint. For servlet endpoints, this
323 value is relative to the servlet's web application context root. In
324 all cases, this value must be a fixed pattern(i.e. no "*" allowed).
325 If the web service endpoint is a servlet that only implements a single
326 endpoint has only one url-pattern, it is not necessary to set
327 this value since the container can derive it from web.xml.
328 -->
329 <!ELEMENT endpoint-address-uri ( #PCDATA )>
330
331 <!--
332 The namespaceURI element indicates a URI.
333 -->
334 <!ELEMENT namespaceURI (#PCDATA)>
335
336 <!--
337 The localpart element indicates the local part of a QNAME.
338 -->
339 <!ELEMENT localpart (#PCDATA)>
340
341 <!--
342 auth-method element describes the authentication method. The only supported value
343 is USERNAME_PASSWORD
344 -->
345 <!ELEMENT auth-method ( #PCDATA )>
346
347 <!--
348 Specifies that the communication between client and server should
349 be NONE, INTEGRAL, or CONFIDENTIAL. NONE means that the application
350 does not require any transport guarantees. A value of INTEGRAL means
351 that the application requires that the data sent between the client
352 and server be sent in such a way that it can't be changed in transit.
353 CONFIDENTIAL means that the application requires that the data be
354 transmitted in a fashion that prevents other entities from observing
355 the contents of the transmission. In most cases, the presence of the
356 INTEGRAL or CONFIDENTIAL flag will indicate that the use of SSL is
357 required.
358 -->
359 <!ELEMENT transport-guarantee ( #PCDATA )>
360
361 <!--
362 The name of tie implementation class for a port-component. This is
363 not specified by the deployer. It is derived during deployment.
364 -->
365 <!ELEMENT tie-class (#PCDATA)>
366
367 <!--
368 Name of application-written servlet impl class contained in deployed war.
369 This is not set by the deployer. It is derived by the container
370 during deployment.
371 -->
372 <!ELEMENT servlet-impl-class (#PCDATA)>
373
374 <!--
375 Unique name of a webservice within a module
376 -->
377 <!ELEMENT webservice-description-name ( #PCDATA )>
378
379 <!--
380 file: URL of a directory to which a web-service-description's wsdl should be
381 published during deployment. Any required files will be published to this
382 directory, preserving their location relative to the module-specific
383 wsdl directory(META-INF/wsdl or WEB-INF/wsdl).
384
385 Example :
386
387   For an ejb.jar whose webservices.xml wsdl-file element contains
388     META-INF/wsdl/a/Foo.wsdl
389
390   <wsdl-publish-location>file:/home/user1/publish
391   </wsdl-publish-location>
392
393   The final wsdl will be stored in /home/user1/publish/a/Foo.wsdl
394 -->
395 <!ELEMENT wsdl-publish-location ( #PCDATA )>
396
397 <!--
398 Coded name (relative to java:comp/env) for a service-reference
399 -->
400 <!ELEMENT service-ref-name ( #PCDATA )>
401
402 <!--
403 Fully qualified name of service endpoint interface
404 -->
405 <!ELEMENT service-endpoint-interface ( #PCDATA )>
406
407 <!--
408 This text nodes holds a value string.
409 -->
410 <!ELEMENT value (#PCDATA)>
411
412 <!--
413 This is a valid URL pointing to a final WSDL document. It is optional.
414 If specified, the WSDL document at this URL will be used during
415 deployment instead of the WSDL document associated with the
416 service-ref in the standard deployment descriptor.
417
418 Examples :
419
420   // available via HTTP
421   <wsdl-override>http://localhost:8000/myservice/myport?WSDL</wsdl-override>
422
423   // in a file
424   <wsdl-override>file:/home/user1/myfinalwsdl.wsdl</wsdl-override>
425 -->
426 <!ELEMENT wsdl-override ( #PCDATA )>
427
428 <!--
429 Name of generated service implementation class. This is not set by the
430 deployer. It is derived during deployment.
431 -->
432 <!ELEMENT service-impl-class ( #PCDATA )>
433
434 <!--
435 This node holds information about a logical message destination
436 -->
437 <!ELEMENT message-destination (message-destination-name, jndi-name)>
438
439 <!--
440 This node holds the name of a logical message destination
441 -->
442 <!ELEMENT message-destination-name (#PCDATA)>
443
444 */

445
Popular Tags