KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > config > serverbeans > JavaConfig


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 JavaConfig matches the DTD element java-config
26  *
27  */

28
29 package com.sun.enterprise.config.serverbeans;
30
31 import org.w3c.dom.*;
32 import org.netbeans.modules.schema2beans.*;
33 import java.beans.*;
34 import java.util.*;
35 import java.io.Serializable JavaDoc;
36 import com.sun.enterprise.config.ConfigBean;
37 import com.sun.enterprise.config.ConfigException;
38 import com.sun.enterprise.config.StaleWriteConfigException;
39 import com.sun.enterprise.util.i18n.StringManager;
40
41 // BEGIN_NOI18N
42

43 public class JavaConfig extends ConfigBean implements Serializable JavaDoc
44 {
45
46     static Vector comparators = new Vector();
47     private static final org.netbeans.modules.schema2beans.Version runtimeVersion = new org.netbeans.modules.schema2beans.Version(4, 2, 0);
48
49     static public final String JavaDoc PROFILER = "Profiler";
50     static public final String JavaDoc JVM_OPTIONS = "JvmOptions";
51     static public final String JavaDoc ELEMENT_PROPERTY = "ElementProperty";
52
53     public JavaConfig() {
54         this(Common.USE_DEFAULT_VALUES);
55     }
56
57     public JavaConfig(int options)
58     {
59         super(comparators, runtimeVersion);
60         // Properties (see root bean comments for the bean graph)
61
initPropertyTables(3);
62         this.createProperty("profiler", PROFILER,
63             Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY,
64             Profiler.class);
65         this.createAttribute(PROFILER, "name", "Name",
66                         AttrProp.CDATA | AttrProp.REQUIRED,
67                         null, null);
68         this.createAttribute(PROFILER, "classpath", "Classpath",
69                         AttrProp.CDATA | AttrProp.IMPLIED,
70                         null, null);
71         this.createAttribute(PROFILER, "native-library-path", "NativeLibraryPath",
72                         AttrProp.CDATA | AttrProp.IMPLIED,
73                         null, null);
74         this.createAttribute(PROFILER, "enabled", "Enabled",
75                         AttrProp.CDATA,
76                         null, "true");
77         this.createProperty("jvm-options", JVM_OPTIONS, Common.SEQUENCE_OR |
78             Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY,
79             String JavaDoc.class);
80         this.createProperty("property", ELEMENT_PROPERTY, Common.SEQUENCE_OR |
81             Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
82             ElementProperty.class);
83         this.createAttribute(ELEMENT_PROPERTY, "name", "Name",
84                         AttrProp.CDATA | AttrProp.REQUIRED,
85                         null, null);
86         this.createAttribute(ELEMENT_PROPERTY, "value", "Value",
87                         AttrProp.CDATA | AttrProp.REQUIRED,
88                         null, null);
89         this.initialize(options);
90     }
91
92     // Setting the default values of the properties
93
void initialize(int options) {
94
95     }
96
97     // This attribute is optional
98
public void setProfiler(Profiler value) {
99         this.setValue(PROFILER, value);
100     }
101
102     // Get Method
103
public Profiler getProfiler() {
104         return (Profiler)this.getValue(PROFILER);
105     }
106
107     // This attribute is an array, possibly empty
108
public void setJvmOptions(String JavaDoc[] value) {
109         this.setValue(JVM_OPTIONS, value);
110     }
111
112     // Getter Method
113
public String JavaDoc[] getJvmOptions() {
114         return (String JavaDoc[])this.getValues(JVM_OPTIONS);
115     }
116
117     // Return the number of properties
118
public int sizeJvmOptions() {
119         return this.size(JVM_OPTIONS);
120     }
121
122     // Add a new element returning its index in the list
123
public int addJvmOptions(String JavaDoc value)
124             throws ConfigException{
125         return addJvmOptions(value, true);
126     }
127
128     // Add a new element returning its index in the list with a boolean flag
129
public int addJvmOptions(String JavaDoc value, boolean overwrite)
130             throws ConfigException{
131         return this.addValue(JVM_OPTIONS, value, overwrite);
132     }
133
134     //
135
// Remove an element using its reference
136
// Returns the index the element had in the list
137
//
138
public int removeJvmOptions(String JavaDoc value){
139         return this.removeValue(JVM_OPTIONS, value);
140     }
141
142     //
143
// Remove an element using its reference
144
// Returns the index the element had in the list
145
// with boolean overwrite
146
//
147
public int removeJvmOptions(String JavaDoc value, boolean overwrite)
148             throws StaleWriteConfigException{
149         return this.removeValue(JVM_OPTIONS, value, overwrite);
150     }
151
152     // This attribute is an array, possibly empty
153
public void setElementProperty(int index, ElementProperty value) {
154         this.setValue(ELEMENT_PROPERTY, index, value);
155     }
156
157     // Get Method
158
public ElementProperty getElementProperty(int index) {
159         return (ElementProperty)this.getValue(ELEMENT_PROPERTY, index);
160     }
161
162     // This attribute is an array, possibly empty
163
public void setElementProperty(ElementProperty[] value) {
164         this.setValue(ELEMENT_PROPERTY, value);
165     }
166
167     // Getter Method
168
public ElementProperty[] getElementProperty() {
169         return (ElementProperty[])this.getValues(ELEMENT_PROPERTY);
170     }
171
172     // Return the number of properties
173
public int sizeElementProperty() {
174         return this.size(ELEMENT_PROPERTY);
175     }
176
177     // Add a new element returning its index in the list
178
public int addElementProperty(ElementProperty value)
179             throws ConfigException{
180         return addElementProperty(value, true);
181     }
182
183     // Add a new element returning its index in the list with a boolean flag
184
public int addElementProperty(ElementProperty value, boolean overwrite)
185             throws ConfigException{
186         ElementProperty old = getElementPropertyByName(value.getName());
187         if(old != null) {
188             throw new ConfigException(StringManager.getManager(JavaConfig.class).getString("cannotAddDuplicate", "ElementProperty"));
189         }
190         return this.addValue(ELEMENT_PROPERTY, value, overwrite);
191     }
192
193     //
194
// Remove an element using its reference
195
// Returns the index the element had in the list
196
//
197
public int removeElementProperty(ElementProperty value){
198         return this.removeValue(ELEMENT_PROPERTY, value);
199     }
200
201     //
202
// Remove an element using its reference
203
// Returns the index the element had in the list
204
// with boolean overwrite
205
//
206
public int removeElementProperty(ElementProperty value, boolean overwrite)
207             throws StaleWriteConfigException{
208         return this.removeValue(ELEMENT_PROPERTY, value, overwrite);
209     }
210
211     public ElementProperty getElementPropertyByName(String JavaDoc id) {
212      if (null != id) { id = id.trim(); }
213     ElementProperty[] o = getElementProperty();
214      if (o == null) return null;
215
216      for (int i=0; i < o.length; i++) {
217          if(o[i].getAttributeValue(Common.convertName(ServerTags.NAME)).equals(id)) {
218              return o[i];
219          }
220      }
221
222         return null;
223         
224     }
225     /**
226     * Getter for JavaHome of the Element java-config
227     * @return the JavaHome of the Element java-config
228     */

229     public String JavaDoc getJavaHome() {
230         return getAttributeValue(ServerTags.JAVA_HOME);
231     }
232     /**
233     * Modify the JavaHome of the Element java-config
234     * @param v the new value
235     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
236     */

237     public void setJavaHome(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
238         setAttributeValue(ServerTags.JAVA_HOME, v, overwrite);
239     }
240     /**
241     * Modify the JavaHome of the Element java-config
242     * @param v the new value
243     */

244     public void setJavaHome(String JavaDoc v) {
245         setAttributeValue(ServerTags.JAVA_HOME, v);
246     }
247     /**
248     * Get the default value of JavaHome from dtd
249     */

250     public static String JavaDoc getDefaultJavaHome() {
251         return "${com.sun.aas.javaRoot}".trim();
252     }
253     /**
254     * Getter for DebugEnabled of the Element java-config
255     * @return the DebugEnabled of the Element java-config
256     */

257     public boolean isDebugEnabled() {
258         return toBoolean(getAttributeValue(ServerTags.DEBUG_ENABLED));
259     }
260     /**
261     * Modify the DebugEnabled of the Element java-config
262     * @param v the new value
263     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
264     */

265     public void setDebugEnabled(boolean v, boolean overwrite) throws StaleWriteConfigException {
266         setAttributeValue(ServerTags.DEBUG_ENABLED, ""+(v==true), overwrite);
267     }
268     /**
269     * Modify the DebugEnabled of the Element java-config
270     * @param v the new value
271     */

272     public void setDebugEnabled(boolean v) {
273         setAttributeValue(ServerTags.DEBUG_ENABLED, ""+(v==true));
274     }
275     /**
276     * Get the default value of DebugEnabled from dtd
277     */

278     public static String JavaDoc getDefaultDebugEnabled() {
279         return "false".trim();
280     }
281     /**
282     * Getter for DebugOptions of the Element java-config
283     * @return the DebugOptions of the Element java-config
284     */

285     public String JavaDoc getDebugOptions() {
286         return getAttributeValue(ServerTags.DEBUG_OPTIONS);
287     }
288     /**
289     * Modify the DebugOptions of the Element java-config
290     * @param v the new value
291     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
292     */

293     public void setDebugOptions(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
294         setAttributeValue(ServerTags.DEBUG_OPTIONS, v, overwrite);
295     }
296     /**
297     * Modify the DebugOptions of the Element java-config
298     * @param v the new value
299     */

300     public void setDebugOptions(String JavaDoc v) {
301         setAttributeValue(ServerTags.DEBUG_OPTIONS, v);
302     }
303     /**
304     * Get the default value of DebugOptions from dtd
305     */

306     public static String JavaDoc getDefaultDebugOptions() {
307         return "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n".trim();
308     }
309     /**
310     * Getter for RmicOptions of the Element java-config
311     * @return the RmicOptions of the Element java-config
312     */

313     public String JavaDoc getRmicOptions() {
314         return getAttributeValue(ServerTags.RMIC_OPTIONS);
315     }
316     /**
317     * Modify the RmicOptions of the Element java-config
318     * @param v the new value
319     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
320     */

321     public void setRmicOptions(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
322         setAttributeValue(ServerTags.RMIC_OPTIONS, v, overwrite);
323     }
324     /**
325     * Modify the RmicOptions of the Element java-config
326     * @param v the new value
327     */

328     public void setRmicOptions(String JavaDoc v) {
329         setAttributeValue(ServerTags.RMIC_OPTIONS, v);
330     }
331     /**
332     * Get the default value of RmicOptions from dtd
333     */

334     public static String JavaDoc getDefaultRmicOptions() {
335         return "-iiop -poa -alwaysgenerate -keepgenerated -g".trim();
336     }
337     /**
338     * Getter for JavacOptions of the Element java-config
339     * @return the JavacOptions of the Element java-config
340     */

341     public String JavaDoc getJavacOptions() {
342         return getAttributeValue(ServerTags.JAVAC_OPTIONS);
343     }
344     /**
345     * Modify the JavacOptions of the Element java-config
346     * @param v the new value
347     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
348     */

349     public void setJavacOptions(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
350         setAttributeValue(ServerTags.JAVAC_OPTIONS, v, overwrite);
351     }
352     /**
353     * Modify the JavacOptions of the Element java-config
354     * @param v the new value
355     */

356     public void setJavacOptions(String JavaDoc v) {
357         setAttributeValue(ServerTags.JAVAC_OPTIONS, v);
358     }
359     /**
360     * Get the default value of JavacOptions from dtd
361     */

362     public static String JavaDoc getDefaultJavacOptions() {
363         return "-g".trim();
364     }
365     /**
366     * Getter for ClasspathPrefix of the Element java-config
367     * @return the ClasspathPrefix of the Element java-config
368     */

369     public String JavaDoc getClasspathPrefix() {
370             return getAttributeValue(ServerTags.CLASSPATH_PREFIX);
371     }
372     /**
373     * Modify the ClasspathPrefix of the Element java-config
374     * @param v the new value
375     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
376     */

377     public void setClasspathPrefix(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
378         setAttributeValue(ServerTags.CLASSPATH_PREFIX, v, overwrite);
379     }
380     /**
381     * Modify the ClasspathPrefix of the Element java-config
382     * @param v the new value
383     */

384     public void setClasspathPrefix(String JavaDoc v) {
385         setAttributeValue(ServerTags.CLASSPATH_PREFIX, v);
386     }
387     /**
388     * Getter for ClasspathSuffix of the Element java-config
389     * @return the ClasspathSuffix of the Element java-config
390     */

391     public String JavaDoc getClasspathSuffix() {
392             return getAttributeValue(ServerTags.CLASSPATH_SUFFIX);
393     }
394     /**
395     * Modify the ClasspathSuffix of the Element java-config
396     * @param v the new value
397     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
398     */

399     public void setClasspathSuffix(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
400         setAttributeValue(ServerTags.CLASSPATH_SUFFIX, v, overwrite);
401     }
402     /**
403     * Modify the ClasspathSuffix of the Element java-config
404     * @param v the new value
405     */

406     public void setClasspathSuffix(String JavaDoc v) {
407         setAttributeValue(ServerTags.CLASSPATH_SUFFIX, v);
408     }
409     /**
410     * Getter for ServerClasspath of the Element java-config
411     * @return the ServerClasspath of the Element java-config
412     */

413     public String JavaDoc getServerClasspath() {
414             return getAttributeValue(ServerTags.SERVER_CLASSPATH);
415     }
416     /**
417     * Modify the ServerClasspath of the Element java-config
418     * @param v the new value
419     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
420     */

421     public void setServerClasspath(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
422         setAttributeValue(ServerTags.SERVER_CLASSPATH, v, overwrite);
423     }
424     /**
425     * Modify the ServerClasspath of the Element java-config
426     * @param v the new value
427     */

428     public void setServerClasspath(String JavaDoc v) {
429         setAttributeValue(ServerTags.SERVER_CLASSPATH, v);
430     }
431     /**
432     * Getter for SystemClasspath of the Element java-config
433     * @return the SystemClasspath of the Element java-config
434     */

435     public String JavaDoc getSystemClasspath() {
436             return getAttributeValue(ServerTags.SYSTEM_CLASSPATH);
437     }
438     /**
439     * Modify the SystemClasspath of the Element java-config
440     * @param v the new value
441     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
442     */

443     public void setSystemClasspath(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
444         setAttributeValue(ServerTags.SYSTEM_CLASSPATH, v, overwrite);
445     }
446     /**
447     * Modify the SystemClasspath of the Element java-config
448     * @param v the new value
449     */

450     public void setSystemClasspath(String JavaDoc v) {
451         setAttributeValue(ServerTags.SYSTEM_CLASSPATH, v);
452     }
453     /**
454     * Getter for NativeLibraryPathPrefix of the Element java-config
455     * @return the NativeLibraryPathPrefix of the Element java-config
456     */

457     public String JavaDoc getNativeLibraryPathPrefix() {
458             return getAttributeValue(ServerTags.NATIVE_LIBRARY_PATH_PREFIX);
459     }
460     /**
461     * Modify the NativeLibraryPathPrefix of the Element java-config
462     * @param v the new value
463     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
464     */

465     public void setNativeLibraryPathPrefix(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
466         setAttributeValue(ServerTags.NATIVE_LIBRARY_PATH_PREFIX, v, overwrite);
467     }
468     /**
469     * Modify the NativeLibraryPathPrefix of the Element java-config
470     * @param v the new value
471     */

472     public void setNativeLibraryPathPrefix(String JavaDoc v) {
473         setAttributeValue(ServerTags.NATIVE_LIBRARY_PATH_PREFIX, v);
474     }
475     /**
476     * Getter for NativeLibraryPathSuffix of the Element java-config
477     * @return the NativeLibraryPathSuffix of the Element java-config
478     */

479     public String JavaDoc getNativeLibraryPathSuffix() {
480             return getAttributeValue(ServerTags.NATIVE_LIBRARY_PATH_SUFFIX);
481     }
482     /**
483     * Modify the NativeLibraryPathSuffix of the Element java-config
484     * @param v the new value
485     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
486     */

487     public void setNativeLibraryPathSuffix(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
488         setAttributeValue(ServerTags.NATIVE_LIBRARY_PATH_SUFFIX, v, overwrite);
489     }
490     /**
491     * Modify the NativeLibraryPathSuffix of the Element java-config
492     * @param v the new value
493     */

494     public void setNativeLibraryPathSuffix(String JavaDoc v) {
495         setAttributeValue(ServerTags.NATIVE_LIBRARY_PATH_SUFFIX, v);
496     }
497     /**
498     * Getter for BytecodePreprocessors of the Element java-config
499     * @return the BytecodePreprocessors of the Element java-config
500     */

501     public String JavaDoc getBytecodePreprocessors() {
502             return getAttributeValue(ServerTags.BYTECODE_PREPROCESSORS);
503     }
504     /**
505     * Modify the BytecodePreprocessors of the Element java-config
506     * @param v the new value
507     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
508     */

509     public void setBytecodePreprocessors(String JavaDoc v, boolean overwrite) throws StaleWriteConfigException {
510         setAttributeValue(ServerTags.BYTECODE_PREPROCESSORS, v, overwrite);
511     }
512     /**
513     * Modify the BytecodePreprocessors of the Element java-config
514     * @param v the new value
515     */

516     public void setBytecodePreprocessors(String JavaDoc v) {
517         setAttributeValue(ServerTags.BYTECODE_PREPROCESSORS, v);
518     }
519     /**
520     * Getter for EnvClasspathIgnored of the Element java-config
521     * @return the EnvClasspathIgnored of the Element java-config
522     */

523     public boolean isEnvClasspathIgnored() {
524         return toBoolean(getAttributeValue(ServerTags.ENV_CLASSPATH_IGNORED));
525     }
526     /**
527     * Modify the EnvClasspathIgnored of the Element java-config
528     * @param v the new value
529     * @throws StaleWriteConfigException if overwrite is false and file changed on disk
530     */

531     public void setEnvClasspathIgnored(boolean v, boolean overwrite) throws StaleWriteConfigException {
532         setAttributeValue(ServerTags.ENV_CLASSPATH_IGNORED, ""+(v==true), overwrite);
533     }
534     /**
535     * Modify the EnvClasspathIgnored of the Element java-config
536     * @param v the new value
537     */

538     public void setEnvClasspathIgnored(boolean v) {
539         setAttributeValue(ServerTags.ENV_CLASSPATH_IGNORED, ""+(v==true));
540     }
541     /**
542     * Get the default value of EnvClasspathIgnored from dtd
543     */

544     public static String JavaDoc getDefaultEnvClasspathIgnored() {
545         return "true".trim();
546     }
547     /**
548      * Create a new bean using it's default constructor.
549      * This does not add it to any bean graph.
550      */

551     public Profiler newProfiler() {
552         return new Profiler();
553     }
554
555     /**
556      * Create a new bean using it's default constructor.
557      * This does not add it to any bean graph.
558      */

559     public ElementProperty newElementProperty() {
560         return new ElementProperty();
561     }
562
563     /**
564     * get the xpath representation for this element
565     * returns something like abc[@name='value'] or abc
566     * depending on the type of the bean
567     */

568     protected String JavaDoc getRelativeXPath() {
569         String JavaDoc ret = null;
570         ret = "java-config";
571         return (null != ret ? ret.trim() : null);
572     }
573
574     /*
575     * generic method to get default value from dtd
576     */

577     public static String JavaDoc getDefaultAttributeValue(String JavaDoc attr) {
578         if(attr == null) return null;
579         attr = attr.trim();
580         if(attr.equals(ServerTags.JAVA_HOME)) return "${com.sun.aas.javaRoot}".trim();
581         if(attr.equals(ServerTags.DEBUG_ENABLED)) return "false".trim();
582         if(attr.equals(ServerTags.DEBUG_OPTIONS)) return "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n".trim();
583         if(attr.equals(ServerTags.RMIC_OPTIONS)) return "-iiop -poa -alwaysgenerate -keepgenerated -g".trim();
584         if(attr.equals(ServerTags.JAVAC_OPTIONS)) return "-g".trim();
585         if(attr.equals(ServerTags.ENV_CLASSPATH_IGNORED)) return "true".trim();
586     return null;
587     }
588     //
589
public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
590         comparators.add(c);
591     }
592
593     //
594
public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
595         comparators.remove(c);
596     }
597     public void validate() throws org.netbeans.modules.schema2beans.ValidateException {
598     }
599
600     // Dump the content of this bean returning it as a String
601
public void dump(StringBuffer JavaDoc str, String JavaDoc indent){
602         String JavaDoc s;
603         Object JavaDoc o;
604         org.netbeans.modules.schema2beans.BaseBean n;
605         str.append(indent);
606         str.append("Profiler"); // NOI18N
607
n = (org.netbeans.modules.schema2beans.BaseBean) this.getProfiler();
608         if (n != null)
609             n.dump(str, indent + "\t"); // NOI18N
610
else
611             str.append(indent+"\tnull"); // NOI18N
612
this.dumpAttributes(PROFILER, 0, str, indent);
613
614         str.append(indent);
615         str.append("JvmOptions["+this.sizeJvmOptions()+"]"); // NOI18N
616
for(int i=0; i<this.sizeJvmOptions(); i++)
617         {
618             str.append(indent+"\t");
619             str.append("#"+i+":");
620             str.append(indent+"\t"); // NOI18N
621
str.append("<"); // NOI18N
622
o = this.getValue(JVM_OPTIONS, i);
623             str.append((o==null?"null":o.toString().trim())); // NOI18N
624
str.append(">\n"); // NOI18N
625
this.dumpAttributes(JVM_OPTIONS, i, str, indent);
626         }
627
628         str.append(indent);
629         str.append("ElementProperty["+this.sizeElementProperty()+"]"); // NOI18N
630
for(int i=0; i<this.sizeElementProperty(); i++)
631         {
632             str.append(indent+"\t");
633             str.append("#"+i+":");
634             n = (org.netbeans.modules.schema2beans.BaseBean) this.getElementProperty(i);
635             if (n != null)
636                 n.dump(str, indent + "\t"); // NOI18N
637
else
638                 str.append(indent+"\tnull"); // NOI18N
639
this.dumpAttributes(ELEMENT_PROPERTY, i, str, indent);
640         }
641
642     }
643     public String JavaDoc dumpBeanNode(){
644         StringBuffer JavaDoc str = new StringBuffer JavaDoc();
645         str.append("JavaConfig\n"); // NOI18N
646
this.dump(str, "\n "); // NOI18N
647
return str.toString();
648     }}
649
650 // END_NOI18N
651

652
Popular Tags