KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > tools > common > dd > webapp > CacheMapping


1 /**
2  * This generated bean class CacheMapping matches the schema element cache-mapping
3  *
4  * Generated on Fri Apr 02 16:57:40 PST 2004
5  */

6
7 package com.sun.enterprise.tools.common.dd.webapp;
8
9 import org.w3c.dom.*;
10 import org.netbeans.modules.schema2beans.*;
11 import java.beans.*;
12 import java.util.*;
13
14 // BEGIN_NOI18N
15

16 public class CacheMapping extends com.sun.enterprise.tools.common.dd.SunBaseBean
17 {
18
19     static Vector comparators = new Vector();
20
21     static public final String JavaDoc SERVLET_NAME = "ServletName"; // NOI18N
22
static public final String JavaDoc URL_PATTERN = "UrlPattern"; // NOI18N
23
static public final String JavaDoc CACHE_HELPER_REF = "CacheHelperRef"; // NOI18N
24
static public final String JavaDoc DISPATCHER = "Dispatcher"; // NOI18N
25
static public final String JavaDoc TIMEOUT = "Timeout"; // NOI18N
26
static public final String JavaDoc TIMEOUTNAME = "TimeoutName"; // NOI18N
27
static public final String JavaDoc TIMEOUTSCOPE = "TimeoutScope"; // NOI18N
28
static public final String JavaDoc REFRESH_FIELD = "RefreshField"; // NOI18N
29
static public final String JavaDoc REFRESHFIELDNAME = "RefreshFieldName"; // NOI18N
30
static public final String JavaDoc REFRESHFIELDSCOPE = "RefreshFieldScope"; // NOI18N
31
static public final String JavaDoc HTTP_METHOD = "HttpMethod"; // NOI18N
32
static public final String JavaDoc KEY_FIELD = "KeyField"; // NOI18N
33
static public final String JavaDoc KEYFIELDNAME = "KeyFieldName"; // NOI18N
34
static public final String JavaDoc KEYFIELDSCOPE = "KeyFieldScope"; // NOI18N
35
static public final String JavaDoc CONSTRAINT_FIELD = "ConstraintField"; // NOI18N
36

37     public CacheMapping() {
38         this(Common.USE_DEFAULT_VALUES);
39     }
40
41     public CacheMapping(int options)
42     {
43         super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
44         // Properties (see root bean comments for the bean graph)
45
this.createProperty("servlet-name", // NOI18N
46
SERVLET_NAME, Common.SEQUENCE_OR |
47             Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
48             String JavaDoc.class);
49         this.createProperty("url-pattern", // NOI18N
50
URL_PATTERN, Common.SEQUENCE_OR |
51             Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
52             String JavaDoc.class);
53         this.createProperty("cache-helper-ref", // NOI18N
54
CACHE_HELPER_REF, Common.SEQUENCE_OR |
55             Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
56             String JavaDoc.class);
57         this.createProperty("dispatcher", // NOI18N
58
DISPATCHER,
59             Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY,
60             String JavaDoc.class);
61         this.createProperty("timeout", // NOI18N
62
TIMEOUT,
63             Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY,
64             String JavaDoc.class);
65         this.createAttribute(TIMEOUT, "name", "Name",
66                         AttrProp.CDATA | AttrProp.IMPLIED,
67                         null, null);
68         this.createAttribute(TIMEOUT, "scope", "Scope",
69                         AttrProp.CDATA,
70                         null, "request.attribute");
71         this.createProperty("refresh-field", // NOI18N
72
REFRESH_FIELD,
73             Common.TYPE_0_1 | Common.TYPE_BOOLEAN | Common.TYPE_KEY,
74             Boolean JavaDoc.class);
75         this.createAttribute(REFRESH_FIELD, "name", "Name",
76                         AttrProp.CDATA | AttrProp.REQUIRED,
77                         null, null);
78         this.createAttribute(REFRESH_FIELD, "scope", "Scope",
79                         AttrProp.CDATA,
80                         null, "request.parameter");
81         this.createProperty("http-method", // NOI18N
82
HTTP_METHOD,
83             Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY,
84             String JavaDoc.class);
85         this.createProperty("key-field", // NOI18N
86
KEY_FIELD,
87             Common.TYPE_0_N | Common.TYPE_BOOLEAN | Common.TYPE_KEY,
88             Boolean JavaDoc.class);
89         this.createAttribute(KEY_FIELD, "name", "Name",
90                         AttrProp.CDATA | AttrProp.REQUIRED,
91                         null, null);
92         this.createAttribute(KEY_FIELD, "scope", "Scope",
93                         AttrProp.CDATA,
94                         null, "request.parameter");
95         this.createProperty("constraint-field", // NOI18N
96
CONSTRAINT_FIELD,
97             Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
98             ConstraintField.class);
99         this.createAttribute(CONSTRAINT_FIELD, "name", "Name",
100                         AttrProp.CDATA | AttrProp.REQUIRED,
101                         null, null);
102         this.createAttribute(CONSTRAINT_FIELD, "scope", "Scope",
103                         AttrProp.CDATA,
104                         null, "request.parameter");
105         this.createAttribute(CONSTRAINT_FIELD, "cache-on-match", "CacheOnMatch",
106                         AttrProp.CDATA,
107                         null, "true");
108         this.createAttribute(CONSTRAINT_FIELD, "cache-on-match-failure", "CacheOnMatchFailure",
109                         AttrProp.CDATA,
110                         null, "false");
111         this.initialize(options);
112     }
113
114     // Setting the default values of the properties
115
void initialize(int options)
116     {
117                                 
118     }
119
120     // This attribute is mandatory
121
public void setServletName(String JavaDoc value) {
122         this.setValue(SERVLET_NAME, value);
123     }
124
125     //
126
public String JavaDoc getServletName() {
127         return (String JavaDoc)this.getValue(SERVLET_NAME);
128     }
129
130     // This attribute is mandatory
131
public void setUrlPattern(String JavaDoc value) {
132         this.setValue(URL_PATTERN, value);
133     }
134
135     //
136
public String JavaDoc getUrlPattern() {
137         return (String JavaDoc)this.getValue(URL_PATTERN);
138     }
139
140     // This attribute is mandatory
141
public void setCacheHelperRef(String JavaDoc value) {
142         this.setValue(CACHE_HELPER_REF, value);
143     }
144
145     //
146
public String JavaDoc getCacheHelperRef() {
147         return (String JavaDoc)this.getValue(CACHE_HELPER_REF);
148     }
149
150     // This attribute is an array, possibly empty
151
public void setDispatcher(int index, String JavaDoc value) {
152         this.setValue(DISPATCHER, index, value);
153     }
154
155     //
156
public String JavaDoc getDispatcher(int index) {
157         return (String JavaDoc)this.getValue(DISPATCHER, index);
158     }
159
160     // This attribute is an array, possibly empty
161
public void setDispatcher(String JavaDoc[] value) {
162         this.setValue(DISPATCHER, value);
163     }
164
165     //
166
public String JavaDoc[] getDispatcher() {
167         return (String JavaDoc[])this.getValues(DISPATCHER);
168     }
169
170     // Return the number of properties
171
public int sizeDispatcher() {
172         return this.size(DISPATCHER);
173     }
174
175     // Add a new element returning its index in the list
176
public int addDispatcher(String JavaDoc value) {
177         return this.addValue(DISPATCHER, value);
178     }
179
180     //
181
// Remove an element using its reference
182
// Returns the index the element had in the list
183
//
184
public int removeDispatcher(String JavaDoc value) {
185         return this.removeValue(DISPATCHER, value);
186     }
187
188     // This attribute is optional
189
public void setTimeout(String JavaDoc value) {
190         this.setValue(TIMEOUT, value);
191     }
192
193     //
194
public String JavaDoc getTimeout() {
195         return (String JavaDoc)this.getValue(TIMEOUT);
196     }
197
198     // This attribute is optional
199
public void setTimeoutName(java.lang.String JavaDoc value) {
200         // Make sure we've got a place to put this attribute.
201
if (size(TIMEOUT) == 0) {
202             setValue(TIMEOUT, "");
203         }
204         setAttributeValue(TIMEOUT, "Name", value);
205     }
206
207     //
208
public java.lang.String JavaDoc getTimeoutName() {
209         // If our element does not exist, then the attribute does not exist.
210
if (size(TIMEOUT) == 0) {
211             return null;
212         } else {
213             return getAttributeValue(TIMEOUT, "Name");
214         }
215     }
216
217     // This attribute is mandatory
218
public void setTimeoutScope(java.lang.String JavaDoc value) {
219         // Make sure we've got a place to put this attribute.
220
if (size(TIMEOUT) == 0) {
221             setValue(TIMEOUT, "");
222         }
223         setAttributeValue(TIMEOUT, "Scope", value);
224     }
225
226     //
227
public java.lang.String JavaDoc getTimeoutScope() {
228         // If our element does not exist, then the attribute does not exist.
229
if (size(TIMEOUT) == 0) {
230             return null;
231         } else {
232             return getAttributeValue(TIMEOUT, "Scope");
233         }
234     }
235
236     // This attribute is optional
237
public void setRefreshField(boolean value) {
238         this.setValue(REFRESH_FIELD, (value ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE));
239     }
240
241     //
242
public boolean isRefreshField() {
243         Boolean JavaDoc ret = (Boolean JavaDoc)this.getValue(REFRESH_FIELD);
244         if (ret == null)
245             ret = (Boolean JavaDoc)Common.defaultScalarValue(Common.TYPE_BOOLEAN);
246         return ((java.lang.Boolean JavaDoc)ret).booleanValue();
247     }
248
249     // This attribute is mandatory
250
public void setRefreshFieldName(java.lang.String JavaDoc value) {
251         // Make sure we've got a place to put this attribute.
252
if (size(REFRESH_FIELD) == 0) {
253             setValue(REFRESH_FIELD, "");
254         }
255         setAttributeValue(REFRESH_FIELD, "Name", value);
256     }
257
258     //
259
public java.lang.String JavaDoc getRefreshFieldName() {
260         // If our element does not exist, then the attribute does not exist.
261
if (size(REFRESH_FIELD) == 0) {
262             return null;
263         } else {
264             return getAttributeValue(REFRESH_FIELD, "Name");
265         }
266     }
267
268     // This attribute is mandatory
269
public void setRefreshFieldScope(java.lang.String JavaDoc value) {
270         // Make sure we've got a place to put this attribute.
271
if (size(REFRESH_FIELD) == 0) {
272             setValue(REFRESH_FIELD, "");
273         }
274         setAttributeValue(REFRESH_FIELD, "Scope", value);
275     }
276
277     //
278
public java.lang.String JavaDoc getRefreshFieldScope() {
279         // If our element does not exist, then the attribute does not exist.
280
if (size(REFRESH_FIELD) == 0) {
281             return null;
282         } else {
283             return getAttributeValue(REFRESH_FIELD, "Scope");
284         }
285     }
286
287     // This attribute is an array, possibly empty
288
public void setHttpMethod(int index, String JavaDoc value) {
289         this.setValue(HTTP_METHOD, index, value);
290     }
291
292     //
293
public String JavaDoc getHttpMethod(int index) {
294         return (String JavaDoc)this.getValue(HTTP_METHOD, index);
295     }
296
297     // This attribute is an array, possibly empty
298
public void setHttpMethod(String JavaDoc[] value) {
299         this.setValue(HTTP_METHOD, value);
300     }
301
302     //
303
public String JavaDoc[] getHttpMethod() {
304         return (String JavaDoc[])this.getValues(HTTP_METHOD);
305     }
306
307     // Return the number of properties
308
public int sizeHttpMethod() {
309         return this.size(HTTP_METHOD);
310     }
311
312     // Add a new element returning its index in the list
313
public int addHttpMethod(String JavaDoc value) {
314         return this.addValue(HTTP_METHOD, value);
315     }
316
317     //
318
// Remove an element using its reference
319
// Returns the index the element had in the list
320
//
321
public int removeHttpMethod(String JavaDoc value) {
322         return this.removeValue(HTTP_METHOD, value);
323     }
324
325     // This attribute is an array, possibly empty
326
public void setKeyField(int index, boolean value) {
327         this.setValue(KEY_FIELD, index, (value ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE));
328     }
329
330     //
331
public boolean isKeyField(int index) {
332         Boolean JavaDoc ret = (Boolean JavaDoc)this.getValue(KEY_FIELD, index);
333         if (ret == null)
334             ret = (Boolean JavaDoc)Common.defaultScalarValue(Common.TYPE_BOOLEAN);
335         return ((java.lang.Boolean JavaDoc)ret).booleanValue();
336     }
337
338     // This attribute is an array, possibly empty
339
public void setKeyField(boolean[] value) {
340         Boolean JavaDoc[] values = null;
341         if (value != null)
342         {
343             values = new Boolean JavaDoc[value.length];
344             for (int i=0; i<value.length; i++)
345                 values[i] = new Boolean JavaDoc(value[i]);
346         }
347         this.setValue(KEY_FIELD, values);
348     }
349
350     //
351
public boolean[] getKeyField() {
352         boolean[] ret = null;
353         Boolean JavaDoc[] values = (Boolean JavaDoc[])this.getValues(KEY_FIELD);
354         if (values != null)
355         {
356             ret = new boolean[values.length];
357             for (int i=0; i<values.length; i++)
358                 ret[i] = values[i].booleanValue();
359         }
360         return ret;
361     }
362
363     // Return the number of properties
364
public int sizeKeyField() {
365         return this.size(KEY_FIELD);
366     }
367
368     // Add a new element returning its index in the list
369
public int addKeyField(boolean value) {
370         return this.addValue(KEY_FIELD, (value ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE));
371     }
372
373     //
374
// Remove an element using its reference
375
// Returns the index the element had in the list
376
//
377
public int removeKeyField(boolean value) {
378         return this.removeValue(KEY_FIELD, (value ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE));
379     }
380
381     //
382
// Remove an element using its index
383
//
384
public void removeKeyField(int index) {
385         this.removeValue(KEY_FIELD, index);
386     }
387
388     // This attribute is an array, possibly empty
389
public void setKeyFieldName(int index, java.lang.String JavaDoc value) {
390         // Make sure we've got a place to put this attribute.
391
if (size(KEY_FIELD) == 0) {
392             addValue(KEY_FIELD, "");
393         }
394         setAttributeValue(KEY_FIELD, index, "Name", value);
395     }
396
397     //
398
public java.lang.String JavaDoc getKeyFieldName(int index) {
399         // If our element does not exist, then the attribute does not exist.
400
if (size(KEY_FIELD) == 0) {
401             return null;
402         } else {
403             return getAttributeValue(KEY_FIELD, index, "Name");
404         }
405     }
406
407     // This attribute is an array, possibly empty
408
public void setKeyFieldScope(int index, java.lang.String JavaDoc value) {
409         // Make sure we've got a place to put this attribute.
410
if (size(KEY_FIELD) == 0) {
411             addValue(KEY_FIELD, "");
412         }
413         setAttributeValue(KEY_FIELD, index, "Scope", value);
414     }
415
416     //
417
public java.lang.String JavaDoc getKeyFieldScope(int index) {
418         // If our element does not exist, then the attribute does not exist.
419
if (size(KEY_FIELD) == 0) {
420             return null;
421         } else {
422             return getAttributeValue(KEY_FIELD, index, "Scope");
423         }
424     }
425
426     // This attribute is an array, possibly empty
427
public void setConstraintField(int index, ConstraintField value) {
428         this.setValue(CONSTRAINT_FIELD, index, value);
429     }
430
431     //
432
public ConstraintField getConstraintField(int index) {
433         return (ConstraintField)this.getValue(CONSTRAINT_FIELD, index);
434     }
435
436     // This attribute is an array, possibly empty
437
public void setConstraintField(ConstraintField[] value) {
438         this.setValue(CONSTRAINT_FIELD, value);
439     }
440
441     //
442
public ConstraintField[] getConstraintField() {
443         return (ConstraintField[])this.getValues(CONSTRAINT_FIELD);
444     }
445
446     // Return the number of properties
447
public int sizeConstraintField() {
448         return this.size(CONSTRAINT_FIELD);
449     }
450
451     // Add a new element returning its index in the list
452
public int addConstraintField(com.sun.enterprise.tools.common.dd.webapp.ConstraintField value) {
453         return this.addValue(CONSTRAINT_FIELD, value);
454     }
455
456     //
457
// Remove an element using its reference
458
// Returns the index the element had in the list
459
//
460
public int removeConstraintField(com.sun.enterprise.tools.common.dd.webapp.ConstraintField value) {
461         return this.removeValue(CONSTRAINT_FIELD, value);
462     }
463
464     //
465
public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
466         comparators.add(c);
467     }
468
469     //
470
public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
471         comparators.remove(c);
472     }
473     public void validate() throws org.netbeans.modules.schema2beans.ValidateException {
474         boolean restrictionFailure = false;
475         // Validating property servletName
476
if (getServletName() != null) {
477         }
478         int orCount = 0;
479         if (getServletName() != null) {
480             ++orCount;
481         }
482         // Validating property urlPattern
483
if (getUrlPattern() != null) {
484         }
485         if (getUrlPattern() != null) {
486             ++orCount;
487         }
488         // Validating property cacheHelperRef
489
if (getCacheHelperRef() != null) {
490         }
491         if (getCacheHelperRef() != null) {
492             ++orCount;
493         }
494         // Validating property dispatcher
495
for (int _index = 0; _index < sizeDispatcher(); ++_index) {
496             String JavaDoc element = getDispatcher(_index);
497             if (element != null) {
498             }
499         }
500         // Validating property timeout
501
if (getTimeout() != null) {
502         }
503         // Validating property timeoutName
504
if (getTimeoutName() != null) {
505         }
506         // Validating property timeoutScope
507
if (getTimeoutScope() == null) {
508             throw new org.netbeans.modules.schema2beans.ValidateException("getTimeoutScope() == null", "timeoutScope", this); // NOI18N
509
}
510         // Validating property refreshField
511
// Validating property refreshFieldName
512
if (getRefreshFieldName() == null) {
513             throw new org.netbeans.modules.schema2beans.ValidateException("getRefreshFieldName() == null", "refreshFieldName", this); // NOI18N
514
}
515         // Validating property refreshFieldScope
516
if (getRefreshFieldScope() == null) {
517             throw new org.netbeans.modules.schema2beans.ValidateException("getRefreshFieldScope() == null", "refreshFieldScope", this); // NOI18N
518
}
519         // Validating property httpMethod
520
for (int _index = 0; _index < sizeHttpMethod(); ++_index) {
521             String JavaDoc element = getHttpMethod(_index);
522             if (element != null) {
523             }
524         }
525         // Validating property keyField
526
for (int _index = 0; _index < sizeKeyField(); ++_index) {
527             boolean element = isKeyField(_index);
528         }
529         // Validating property keyFieldName
530
// Validating property keyFieldScope
531
// Validating property constraintField
532
for (int _index = 0; _index < sizeConstraintField(); ++_index) {
533             com.sun.enterprise.tools.common.dd.webapp.ConstraintField element = getConstraintField(_index);
534             if (element != null) {
535                 element.validate();
536             }
537         }
538         if (orCount != 1) {
539             throw new org.netbeans.modules.schema2beans.ValidateException("orCount ("+orCount+") != 1", "mutually exclusive properties", this); // NOI18N
540
}
541     }
542
543     // Dump the content of this bean returning it as a String
544
public void dump(StringBuffer JavaDoc str, String JavaDoc indent){
545         String JavaDoc s;
546         Object JavaDoc o;
547         org.netbeans.modules.schema2beans.BaseBean n;
548         str.append(indent);
549         str.append("ServletName"); // NOI18N
550
str.append(indent+"\t"); // NOI18N
551
str.append("<"); // NOI18N
552
s = this.getServletName();
553         str.append((s==null?"null":s.trim())); // NOI18N
554
str.append(">\n"); // NOI18N
555
this.dumpAttributes(SERVLET_NAME, 0, str, indent);
556
557         str.append(indent);
558         str.append("UrlPattern"); // NOI18N
559
str.append(indent+"\t"); // NOI18N
560
str.append("<"); // NOI18N
561
s = this.getUrlPattern();
562         str.append((s==null?"null":s.trim())); // NOI18N
563
str.append(">\n"); // NOI18N
564
this.dumpAttributes(URL_PATTERN, 0, str, indent);
565
566         str.append(indent);
567         str.append("CacheHelperRef"); // NOI18N
568
str.append(indent+"\t"); // NOI18N
569
str.append("<"); // NOI18N
570
s = this.getCacheHelperRef();
571         str.append((s==null?"null":s.trim())); // NOI18N
572
str.append(">\n"); // NOI18N
573
this.dumpAttributes(CACHE_HELPER_REF, 0, str, indent);
574
575         str.append(indent);
576         str.append("Dispatcher["+this.sizeDispatcher()+"]"); // NOI18N
577
for(int i=0; i<this.sizeDispatcher(); i++)
578         {
579             str.append(indent+"\t");
580             str.append("#"+i+":");
581             str.append(indent+"\t"); // NOI18N
582
str.append("<"); // NOI18N
583
s = this.getDispatcher(i);
584             str.append((s==null?"null":s.trim())); // NOI18N
585
str.append(">\n"); // NOI18N
586
this.dumpAttributes(DISPATCHER, i, str, indent);
587         }
588
589         str.append(indent);
590         str.append("Timeout"); // NOI18N
591
str.append(indent+"\t"); // NOI18N
592
str.append("<"); // NOI18N
593
s = this.getTimeout();
594         str.append((s==null?"null":s.trim())); // NOI18N
595
str.append(">\n"); // NOI18N
596
this.dumpAttributes(TIMEOUT, 0, str, indent);
597
598         str.append(indent);
599         str.append("RefreshField"); // NOI18N
600
str.append(indent+"\t"); // NOI18N
601
str.append((this.isRefreshField()?"true":"false"));
602         this.dumpAttributes(REFRESH_FIELD, 0, str, indent);
603
604         str.append(indent);
605         str.append("HttpMethod["+this.sizeHttpMethod()+"]"); // NOI18N
606
for(int i=0; i<this.sizeHttpMethod(); i++)
607         {
608             str.append(indent+"\t");
609             str.append("#"+i+":");
610             str.append(indent+"\t"); // NOI18N
611
str.append("<"); // NOI18N
612
s = this.getHttpMethod(i);
613             str.append((s==null?"null":s.trim())); // NOI18N
614
str.append(">\n"); // NOI18N
615
this.dumpAttributes(HTTP_METHOD, i, str, indent);
616         }
617
618         str.append(indent);
619         str.append("KeyField["+this.sizeKeyField()+"]"); // NOI18N
620
for(int i=0; i<this.sizeKeyField(); i++)
621         {
622             str.append(indent+"\t");
623             str.append("#"+i+":");
624             str.append(indent+"\t"); // NOI18N
625
str.append((this.isKeyField(i)?"true":"false"));
626             this.dumpAttributes(KEY_FIELD, i, str, indent);
627         }
628
629         str.append(indent);
630         str.append("ConstraintField["+this.sizeConstraintField()+"]"); // NOI18N
631
for(int i=0; i<this.sizeConstraintField(); i++)
632         {
633             str.append(indent+"\t");
634             str.append("#"+i+":");
635             n = (org.netbeans.modules.schema2beans.BaseBean) this.getConstraintField(i);
636             if (n != null)
637                 n.dump(str, indent + "\t"); // NOI18N
638
else
639                 str.append(indent+"\tnull"); // NOI18N
640
this.dumpAttributes(CONSTRAINT_FIELD, i, str, indent);
641         }
642
643     }
644     public String JavaDoc dumpBeanNode(){
645         StringBuffer JavaDoc str = new StringBuffer JavaDoc();
646         str.append("CacheMapping\n"); // NOI18N
647
this.dump(str, "\n "); // NOI18N
648
return str.toString();
649     }}
650
651 // END_NOI18N
652

653
654 /*
655  * The contents of this file are subject to the terms
656  * of the Common Development and Distribution License
657  * (the License). You may not use this file except in
658  * compliance with the License.
659  *
660  * You can obtain a copy of the license at
661  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
662  * glassfish/bootstrap/legal/CDDLv1.0.txt.
663  * See the License for the specific language governing
664  * permissions and limitations under the License.
665  *
666  * When distributing Covered Code, include this CDDL
667  * Header Notice in each file and include the License file
668  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
669  * If applicable, add the following below the CDDL Header,
670  * with the fields enclosed by brackets [] replaced by
671  * you own identifying information:
672  * "Portions Copyrighted [year] [name of copyright owner]"
673  *
674  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
675  */

676
Popular Tags