KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > schema2beansdev > S2bConfig


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Code is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 /**
20  * This generated bean class S2bConfig
21  * matches the schema element 's2bConfig'.
22  *
23  *
24  * This class matches the root element of the XML Schema,
25  * and is the root of the bean graph.
26  *
27  * s2bConfig <s2bConfig> : S2bConfig
28  * schemaType <schemaType> : java.lang.String
29  * traceParse <traceParse> : boolean[0,1]
30  * traceGen <traceGen> : boolean[0,1]
31  * traceMisc <traceMisc> : boolean[0,1]
32  * traceDot <traceDot> : boolean[0,1]
33  * filename <filename> : java.io.File[0,1] [Switch]
34  * fileIn <fileIn> : java.io.InputStream[0,1]
35  * docRoot <docRoot> : java.lang.String[0,1] [Switch]
36  * rootDir <rootDir> : java.io.File [Switch]
37  * packagePath <packagePath> : java.lang.String[0,1] [Switch]
38  * indent <indent> : java.lang.String
39  * indentAmount <indentAmount> : int[0,1] [Switch]
40  * mddFile <mddFile> : java.io.File[0,1] [Switch]
41  * mddIn <mddIn> : java.io.InputStream[0,1]
42  * metaDD <metaDD> : org.netbeans.modules.schema2beansdev.metadd.MetaDD[0,1]
43  * doGeneration <doGeneration> : boolean
44  * scalarException <scalarException> : boolean [Switch]
45  * dumpToString <dumpToString> : boolean[0,1] [Switch]
46  * vetoable <vetoable> : boolean[0,1] [Switch]
47  * standalone <standalone> : boolean[0,1] [Switch]
48  * auto <auto> : boolean[0,1] [Switch]
49  * messageOut <messageOut> : java.io.PrintStream[0,1]
50  * outputStreamProvider <outputStreamProvider> : org.netbeans.modules.schema2beansdev.GenBeans.OutputStreamProvider[0,1]
51  * throwErrors <throwErrors> : boolean[0,1] [Switch]
52  * generateXMLIO <generateXMLIO> : boolean
53  * generateValidate <generateValidate> : boolean[0,1] [Switch]
54  * generatePropertyEvents <generatePropertyEvents> : boolean[0,1] [Switch]
55  * generateStoreEvents <generateStoreEvents> : boolean[0,1]
56  * generateTransactions <generateTransactions> : boolean[0,1] [Switch]
57  * attributesAsProperties <attributesAsProperties> : boolean[0,1] [Switch]
58  * generateDelegator <generateDelegator> : boolean[0,1] [Switch]
59  * delegateDir <delegateDir> : java.io.File[0,1] [Switch]
60  * delegatePackage <delegatePackage> : java.lang.String[0,1] [Switch]
61  * generateCommonInterface <generateCommonInterface> : java.lang.String[0,1] [Switch]
62  * defaultsAccessable <defaultsAccessable> : boolean[0,1] [Switch]
63  * useInterfaces <useInterfaces> : boolean[0,1] [Switch]
64  * generateInterfaces <generateInterfaces> : boolean[0,1] [Switch]
65  * keepElementPositions <keepElementPositions> : boolean[0,1] [Switch]
66  * removeUnreferencedNodes <removeUnreferencedNodes> : boolean[0,1] [Switch]
67  * inputURI <inputURI> : java.lang.String[0,1]
68  * indexedPropertyType <indexedPropertyType> : java.lang.String [Switch]
69  * doCompile <doCompile> : boolean[0,1] [Switch]
70  * generateSwitches <generateSwitches> : boolean[0,1] [Switch]
71  * dumpBeanTree <dumpBeanTree> : java.io.File[0,1] [Switch]
72  * generateDotGraph <generateDotGraph> : java.io.File[0,1] [Switch]
73  * processComments <processComments> : boolean[0,1] [Switch]
74  * processDocType <processDocType> : boolean[0,1] [Switch]
75  * checkUpToDate <checkUpToDate> : boolean[0,1] [Switch]
76  * generateParentRefs <generateParentRefs> : boolean[0,1]
77  * generateHasChanged <generateHasChanged> : boolean[0,1] [Switch]
78  * newestSourceTime <newestSourceTime> : long[0,1]
79  * writeBeanGraphFile <writeBeanGraphFile> : java.io.File[0,1] [Switch]
80  * readBeanGraphFiles <readBeanGraphFiles> : java.io.File[0,n] [Switch]
81  * readBeanGraphs <readBeanGraphs> : org.netbeans.modules.schema2beansdev.beangraph.BeanGraph[0,n]
82  * minFeatures <minFeatures> : boolean[0,1] [Switch]
83  * forME <forME> : boolean[0,1] [Switch]
84  * generateTagsFile <generateTagsFile> : boolean[0,1] [Switch]
85  * codeGeneratorFactory <codeGeneratorFactory> : org.netbeans.modules.schema2beansdev.CodeGeneratorFactory[0,1]
86  * generateTimeStamp <generateTimeStamp> : boolean [Switch]
87  * quiet <quiet> : boolean [Switch]
88  * writeConfig <writeConfig> : java.io.File[0,1] [Switch]
89  * readConfig <readConfig> : java.io.File[0,n] [Switch]
90  * makeDefaults <makeDefaults> : boolean [Switch]
91  * setDefaults <setDefaults> : boolean[0,1] [Switch]
92  * trimNonStrings <trimNonStrings> : boolean[0,1] [Switch]
93  * useRuntime <useRuntime> : boolean[0,1] [Switch]
94  * extendBaseBean <extendBaseBean> : boolean[0,1] [Switch]
95  * finder <finder> : java.lang.String[0,n] [Switch]
96  * target <target> : java.lang.String[0,1] [Switch]
97  * staxProduceXMLEventReader <staxProduceXMLEventReader> : boolean[0,1] [Switch]
98  * staxUseXMLEventReader <staxUseXMLEventReader> : boolean[0,1] [Switch]
99  * optionalScalars <optionalScalars> : boolean[0,1] [Switch]
100  * defaultElementType <defaultElementType> : java.lang.String[0,1] [Switch]
101  * respectExtension <respectExtension> : boolean[0,1] [Switch]
102  * logSuspicious <logSuspicious> : boolean[0,1] [Switch]
103  *
104  * @Generated
105  */

106
107 package org.netbeans.modules.schema2beansdev;
108
109 public class S2bConfig {
110     public static final String JavaDoc SCHEMATYPE = "SchemaType"; // NOI18N
111
public static final String JavaDoc TRACEPARSE = "TraceParse"; // NOI18N
112
public static final String JavaDoc TRACEGEN = "TraceGen"; // NOI18N
113
public static final String JavaDoc TRACEMISC = "TraceMisc"; // NOI18N
114
public static final String JavaDoc TRACEDOT = "TraceDot"; // NOI18N
115
public static final String JavaDoc FILENAME = "Filename"; // NOI18N
116
public static final String JavaDoc FILEIN = "FileIn"; // NOI18N
117
public static final String JavaDoc DOCROOT = "DocRoot"; // NOI18N
118
public static final String JavaDoc ROOTDIR = "RootDir"; // NOI18N
119
public static final String JavaDoc PACKAGEPATH = "PackagePath"; // NOI18N
120
public static final String JavaDoc INDENT = "Indent"; // NOI18N
121
public static final String JavaDoc INDENTAMOUNT = "IndentAmount"; // NOI18N
122
public static final String JavaDoc MDDFILE = "MddFile"; // NOI18N
123
public static final String JavaDoc MDDIN = "MddIn"; // NOI18N
124
public static final String JavaDoc METADD = "MetaDD"; // NOI18N
125
public static final String JavaDoc DOGENERATION = "DoGeneration"; // NOI18N
126
public static final String JavaDoc SCALAREXCEPTION = "ScalarException"; // NOI18N
127
public static final String JavaDoc DUMPTOSTRING = "DumpToString"; // NOI18N
128
public static final String JavaDoc VETOABLE = "Vetoable"; // NOI18N
129
public static final String JavaDoc STANDALONE = "Standalone"; // NOI18N
130
public static final String JavaDoc AUTO = "Auto"; // NOI18N
131
public static final String JavaDoc MESSAGEOUT = "MessageOut"; // NOI18N
132
public static final String JavaDoc OUTPUTSTREAMPROVIDER = "OutputStreamProvider"; // NOI18N
133
public static final String JavaDoc THROWERRORS = "ThrowErrors"; // NOI18N
134
public static final String JavaDoc GENERATEXMLIO = "GenerateXMLIO"; // NOI18N
135
public static final String JavaDoc GENERATEVALIDATE = "GenerateValidate"; // NOI18N
136
public static final String JavaDoc GENERATEPROPERTYEVENTS = "GeneratePropertyEvents"; // NOI18N
137
public static final String JavaDoc GENERATESTOREEVENTS = "GenerateStoreEvents"; // NOI18N
138
public static final String JavaDoc GENERATETRANSACTIONS = "GenerateTransactions"; // NOI18N
139
public static final String JavaDoc ATTRIBUTESASPROPERTIES = "AttributesAsProperties"; // NOI18N
140
public static final String JavaDoc GENERATEDELEGATOR = "GenerateDelegator"; // NOI18N
141
public static final String JavaDoc DELEGATEDIR = "DelegateDir"; // NOI18N
142
public static final String JavaDoc DELEGATEPACKAGE = "DelegatePackage"; // NOI18N
143
public static final String JavaDoc GENERATECOMMONINTERFACE = "GenerateCommonInterface"; // NOI18N
144
public static final String JavaDoc DEFAULTSACCESSABLE = "DefaultsAccessable"; // NOI18N
145
public static final String JavaDoc USEINTERFACES = "UseInterfaces"; // NOI18N
146
public static final String JavaDoc GENERATEINTERFACES = "GenerateInterfaces"; // NOI18N
147
public static final String JavaDoc KEEPELEMENTPOSITIONS = "KeepElementPositions"; // NOI18N
148
public static final String JavaDoc REMOVEUNREFERENCEDNODES = "RemoveUnreferencedNodes"; // NOI18N
149
public static final String JavaDoc INPUTURI = "InputURI"; // NOI18N
150
public static final String JavaDoc INDEXEDPROPERTYTYPE = "IndexedPropertyType"; // NOI18N
151
public static final String JavaDoc DOCOMPILE = "DoCompile"; // NOI18N
152
public static final String JavaDoc GENERATESWITCHES = "GenerateSwitches"; // NOI18N
153
public static final String JavaDoc DUMPBEANTREE = "DumpBeanTree"; // NOI18N
154
public static final String JavaDoc GENERATEDOTGRAPH = "GenerateDotGraph"; // NOI18N
155
public static final String JavaDoc PROCESSCOMMENTS = "ProcessComments"; // NOI18N
156
public static final String JavaDoc PROCESSDOCTYPE = "ProcessDocType"; // NOI18N
157
public static final String JavaDoc CHECKUPTODATE = "CheckUpToDate"; // NOI18N
158
public static final String JavaDoc GENERATEPARENTREFS = "GenerateParentRefs"; // NOI18N
159
public static final String JavaDoc GENERATEHASCHANGED = "GenerateHasChanged"; // NOI18N
160
public static final String JavaDoc NEWESTSOURCETIME = "NewestSourceTime"; // NOI18N
161
public static final String JavaDoc WRITEBEANGRAPHFILE = "WriteBeanGraphFile"; // NOI18N
162
public static final String JavaDoc READBEANGRAPHFILES = "ReadBeanGraphFiles"; // NOI18N
163
public static final String JavaDoc READBEANGRAPHS = "ReadBeanGraphs"; // NOI18N
164
public static final String JavaDoc MINFEATURES = "MinFeatures"; // NOI18N
165
public static final String JavaDoc FORME = "ForME"; // NOI18N
166
public static final String JavaDoc GENERATETAGSFILE = "GenerateTagsFile"; // NOI18N
167
public static final String JavaDoc CODEGENERATORFACTORY = "CodeGeneratorFactory"; // NOI18N
168
public static final String JavaDoc GENERATETIMESTAMP = "GenerateTimeStamp"; // NOI18N
169
public static final String JavaDoc QUIET = "Quiet"; // NOI18N
170
public static final String JavaDoc WRITECONFIG = "WriteConfig"; // NOI18N
171
public static final String JavaDoc READCONFIG = "ReadConfig"; // NOI18N
172
public static final String JavaDoc MAKEDEFAULTS = "MakeDefaults"; // NOI18N
173
public static final String JavaDoc SETDEFAULTS = "SetDefaults"; // NOI18N
174
public static final String JavaDoc TRIMNONSTRINGS = "TrimNonStrings"; // NOI18N
175
public static final String JavaDoc USERUNTIME = "UseRuntime"; // NOI18N
176
public static final String JavaDoc EXTENDBASEBEAN = "ExtendBaseBean"; // NOI18N
177
public static final String JavaDoc FINDER = "Finder"; // NOI18N
178
public static final String JavaDoc TARGET = "Target"; // NOI18N
179
public static final String JavaDoc STAXPRODUCEXMLEVENTREADER = "StaxProduceXMLEventReader"; // NOI18N
180
public static final String JavaDoc STAXUSEXMLEVENTREADER = "StaxUseXMLEventReader"; // NOI18N
181
public static final String JavaDoc OPTIONALSCALARS = "OptionalScalars"; // NOI18N
182
public static final String JavaDoc DEFAULTELEMENTTYPE = "DefaultElementType"; // NOI18N
183
public static final String JavaDoc RESPECTEXTENSION = "RespectExtension"; // NOI18N
184
public static final String JavaDoc LOGSUSPICIOUS = "LogSuspicious"; // NOI18N
185

186     private java.lang.String JavaDoc _SchemaType = "xmlschema";
187     private boolean _TraceParse;
188     private boolean _isSet_TraceParse = false;
189     private boolean _TraceGen;
190     private boolean _isSet_TraceGen = false;
191     private boolean _TraceMisc;
192     private boolean _isSet_TraceMisc = false;
193     private boolean _TraceDot;
194     private boolean _isSet_TraceDot = false;
195     private java.io.File JavaDoc _Filename;
196     private java.io.InputStream JavaDoc _FileIn;
197     private java.lang.String JavaDoc _DocRoot;
198     private java.io.File JavaDoc _RootDir = new java.io.File JavaDoc(".");
199     private java.lang.String JavaDoc _PackagePath;
200     private java.lang.String JavaDoc _Indent = "\t";
201     private int _IndentAmount;
202     private boolean _isSet_IndentAmount = false;
203     private java.io.File JavaDoc _MddFile;
204     private java.io.InputStream JavaDoc _MddIn;
205     private org.netbeans.modules.schema2beansdev.metadd.MetaDD _MetaDD;
206     private boolean _DoGeneration = true;
207     private boolean _isSet_DoGeneration = true;
208     private boolean _ScalarException = true;
209     private boolean _isSet_ScalarException = true;
210     private boolean _DumpToString;
211     private boolean _isSet_DumpToString = false;
212     private boolean _Vetoable;
213     private boolean _isSet_Vetoable = false;
214     private boolean _Standalone;
215     private boolean _isSet_Standalone = false;
216     private boolean _Auto;
217     private boolean _isSet_Auto = false;
218     private java.io.PrintStream JavaDoc _MessageOut;
219     private org.netbeans.modules.schema2beansdev.GenBeans.OutputStreamProvider _OutputStreamProvider;
220     private boolean _ThrowErrors;
221     private boolean _isSet_ThrowErrors = false;
222     private boolean _GenerateXMLIO = true;
223     private boolean _isSet_GenerateXMLIO = true;
224     private boolean _GenerateValidate;
225     private boolean _isSet_GenerateValidate = false;
226     private boolean _GeneratePropertyEvents;
227     private boolean _isSet_GeneratePropertyEvents = false;
228     private boolean _GenerateStoreEvents;
229     private boolean _isSet_GenerateStoreEvents = false;
230     private boolean _GenerateTransactions;
231     private boolean _isSet_GenerateTransactions = false;
232     private boolean _AttributesAsProperties;
233     private boolean _isSet_AttributesAsProperties = false;
234     private boolean _GenerateDelegator;
235     private boolean _isSet_GenerateDelegator = false;
236     private java.io.File JavaDoc _DelegateDir;
237     private java.lang.String JavaDoc _DelegatePackage;
238     private java.lang.String JavaDoc _GenerateCommonInterface;
239     private boolean _DefaultsAccessable;
240     private boolean _isSet_DefaultsAccessable = false;
241     private boolean _UseInterfaces;
242     private boolean _isSet_UseInterfaces = false;
243     private boolean _GenerateInterfaces;
244     private boolean _isSet_GenerateInterfaces = false;
245     private boolean _KeepElementPositions;
246     private boolean _isSet_KeepElementPositions = false;
247     private boolean _RemoveUnreferencedNodes;
248     private boolean _isSet_RemoveUnreferencedNodes = false;
249     private java.lang.String JavaDoc _InputURI;
250     private java.lang.String JavaDoc _IndexedPropertyType = "java.util.ArrayList";
251     private boolean _DoCompile;
252     private boolean _isSet_DoCompile = false;
253     private boolean _GenerateSwitches;
254     private boolean _isSet_GenerateSwitches = false;
255     private java.io.File JavaDoc _DumpBeanTree;
256     private java.io.File JavaDoc _GenerateDotGraph;
257     private boolean _ProcessComments;
258     private boolean _isSet_ProcessComments = false;
259     private boolean _ProcessDocType;
260     private boolean _isSet_ProcessDocType = false;
261     private boolean _CheckUpToDate;
262     private boolean _isSet_CheckUpToDate = false;
263     private boolean _GenerateParentRefs;
264     private boolean _isSet_GenerateParentRefs = false;
265     private boolean _GenerateHasChanged;
266     private boolean _isSet_GenerateHasChanged = false;
267     private long _NewestSourceTime;
268     private boolean _isSet_NewestSourceTime = false;
269     private java.io.File JavaDoc _WriteBeanGraphFile;
270     private java.util.List JavaDoc _ReadBeanGraphFiles = new java.util.ArrayList JavaDoc(); // List<java.io.File>
271
private java.util.List JavaDoc _ReadBeanGraphs = new java.util.ArrayList JavaDoc(); // List<org.netbeans.modules.schema2beansdev.beangraph.BeanGraph>
272
private boolean _MinFeatures;
273     private boolean _isSet_MinFeatures = false;
274     private boolean _ForME;
275     private boolean _isSet_ForME = false;
276     private boolean _GenerateTagsFile;
277     private boolean _isSet_GenerateTagsFile = false;
278     private org.netbeans.modules.schema2beansdev.CodeGeneratorFactory _CodeGeneratorFactory;
279     private boolean _GenerateTimeStamp = true;
280     private boolean _isSet_GenerateTimeStamp = true;
281     private boolean _Quiet;
282     private boolean _isSet_Quiet = false;
283     private java.io.File JavaDoc _WriteConfig;
284     private java.util.List JavaDoc _ReadConfig = new java.util.ArrayList JavaDoc(); // List<java.io.File>
285
private boolean _MakeDefaults = true;
286     private boolean _isSet_MakeDefaults = true;
287     private boolean _SetDefaults;
288     private boolean _isSet_SetDefaults = false;
289     private boolean _TrimNonStrings;
290     private boolean _isSet_TrimNonStrings = false;
291     private boolean _UseRuntime;
292     private boolean _isSet_UseRuntime = false;
293     private boolean _ExtendBaseBean;
294     private boolean _isSet_ExtendBaseBean = false;
295     private java.util.List JavaDoc _Finder = new java.util.ArrayList JavaDoc(); // List<java.lang.String>
296
private java.lang.String JavaDoc _Target;
297     private boolean _StaxProduceXMLEventReader;
298     private boolean _isSet_StaxProduceXMLEventReader = false;
299     private boolean _StaxUseXMLEventReader;
300     private boolean _isSet_StaxUseXMLEventReader = false;
301     private boolean _OptionalScalars;
302     private boolean _isSet_OptionalScalars = false;
303     private java.lang.String JavaDoc _DefaultElementType;
304     private boolean _RespectExtension;
305     private boolean _isSet_RespectExtension = false;
306     private boolean _LogSuspicious;
307     private boolean _isSet_LogSuspicious = false;
308     private java.lang.String JavaDoc schemaLocation;
309
310     /**
311      * Normal starting point constructor.
312      */

313     public S2bConfig() {
314     }
315
316     /**
317      * Required parameters constructor
318      */

319     public S2bConfig(java.lang.String JavaDoc schemaType, java.io.File JavaDoc rootDir, java.lang.String JavaDoc indent, boolean doGeneration, boolean scalarException, boolean generateXMLIO, java.lang.String JavaDoc indexedPropertyType, boolean generateTimeStamp, boolean quiet, boolean makeDefaults) {
320         _SchemaType = schemaType;
321         _RootDir = rootDir;
322         _Indent = indent;
323         _DoGeneration = doGeneration;
324         _isSet_DoGeneration = true;
325         _ScalarException = scalarException;
326         _isSet_ScalarException = true;
327         _GenerateXMLIO = generateXMLIO;
328         _isSet_GenerateXMLIO = true;
329         _IndexedPropertyType = indexedPropertyType;
330         _GenerateTimeStamp = generateTimeStamp;
331         _isSet_GenerateTimeStamp = true;
332         _Quiet = quiet;
333         _isSet_Quiet = true;
334         _MakeDefaults = makeDefaults;
335         _isSet_MakeDefaults = true;
336     }
337
338     /**
339      * Deep copy
340      */

341     public S2bConfig(org.netbeans.modules.schema2beansdev.S2bConfig source) {
342         this(source, false);
343     }
344
345     /**
346      * Deep copy
347      * @param justData just copy the XML relevant data
348      */

349     public S2bConfig(org.netbeans.modules.schema2beansdev.S2bConfig source, boolean justData) {
350         _SchemaType = source._SchemaType;
351         _TraceParse = source._TraceParse;
352         _isSet_TraceParse = source._isSet_TraceParse;
353         _TraceGen = source._TraceGen;
354         _isSet_TraceGen = source._isSet_TraceGen;
355         _TraceMisc = source._TraceMisc;
356         _isSet_TraceMisc = source._isSet_TraceMisc;
357         _TraceDot = source._TraceDot;
358         _isSet_TraceDot = source._isSet_TraceDot;
359         _Filename = (source._Filename == null) ? null : new java.io.File JavaDoc(source._Filename.getAbsolutePath());
360         _FileIn = source._FileIn;
361         _DocRoot = source._DocRoot;
362         _RootDir = (source._RootDir == null) ? null : new java.io.File JavaDoc(source._RootDir.getAbsolutePath());
363         _PackagePath = source._PackagePath;
364         _Indent = source._Indent;
365         _IndentAmount = source._IndentAmount;
366         _isSet_IndentAmount = source._isSet_IndentAmount;
367         _MddFile = (source._MddFile == null) ? null : new java.io.File JavaDoc(source._MddFile.getAbsolutePath());
368         _MddIn = source._MddIn;
369         _MetaDD = (source._MetaDD == null) ? null : new org.netbeans.modules.schema2beansdev.metadd.MetaDD(source._MetaDD);
370         _DoGeneration = source._DoGeneration;
371         _isSet_DoGeneration = source._isSet_DoGeneration;
372         _ScalarException = source._ScalarException;
373         _isSet_ScalarException = source._isSet_ScalarException;
374         _DumpToString = source._DumpToString;
375         _isSet_DumpToString = source._isSet_DumpToString;
376         _Vetoable = source._Vetoable;
377         _isSet_Vetoable = source._isSet_Vetoable;
378         _Standalone = source._Standalone;
379         _isSet_Standalone = source._isSet_Standalone;
380         _Auto = source._Auto;
381         _isSet_Auto = source._isSet_Auto;
382         _MessageOut = (source._MessageOut == null) ? null : new java.io.PrintStream JavaDoc(source._MessageOut);
383         _OutputStreamProvider = source._OutputStreamProvider;
384         _ThrowErrors = source._ThrowErrors;
385         _isSet_ThrowErrors = source._isSet_ThrowErrors;
386         _GenerateXMLIO = source._GenerateXMLIO;
387         _isSet_GenerateXMLIO = source._isSet_GenerateXMLIO;
388         _GenerateValidate = source._GenerateValidate;
389         _isSet_GenerateValidate = source._isSet_GenerateValidate;
390         _GeneratePropertyEvents = source._GeneratePropertyEvents;
391         _isSet_GeneratePropertyEvents = source._isSet_GeneratePropertyEvents;
392         _GenerateStoreEvents = source._GenerateStoreEvents;
393         _isSet_GenerateStoreEvents = source._isSet_GenerateStoreEvents;
394         _GenerateTransactions = source._GenerateTransactions;
395         _isSet_GenerateTransactions = source._isSet_GenerateTransactions;
396         _AttributesAsProperties = source._AttributesAsProperties;
397         _isSet_AttributesAsProperties = source._isSet_AttributesAsProperties;
398         _GenerateDelegator = source._GenerateDelegator;
399         _isSet_GenerateDelegator = source._isSet_GenerateDelegator;
400         _DelegateDir = (source._DelegateDir == null) ? null : new java.io.File JavaDoc(source._DelegateDir.getAbsolutePath());
401         _DelegatePackage = source._DelegatePackage;
402         _GenerateCommonInterface = source._GenerateCommonInterface;
403         _DefaultsAccessable = source._DefaultsAccessable;
404         _isSet_DefaultsAccessable = source._isSet_DefaultsAccessable;
405         _UseInterfaces = source._UseInterfaces;
406         _isSet_UseInterfaces = source._isSet_UseInterfaces;
407         _GenerateInterfaces = source._GenerateInterfaces;
408         _isSet_GenerateInterfaces = source._isSet_GenerateInterfaces;
409         _KeepElementPositions = source._KeepElementPositions;
410         _isSet_KeepElementPositions = source._isSet_KeepElementPositions;
411         _RemoveUnreferencedNodes = source._RemoveUnreferencedNodes;
412         _isSet_RemoveUnreferencedNodes = source._isSet_RemoveUnreferencedNodes;
413         _InputURI = source._InputURI;
414         _IndexedPropertyType = source._IndexedPropertyType;
415         _DoCompile = source._DoCompile;
416         _isSet_DoCompile = source._isSet_DoCompile;
417         _GenerateSwitches = source._GenerateSwitches;
418         _isSet_GenerateSwitches = source._isSet_GenerateSwitches;
419         _DumpBeanTree = (source._DumpBeanTree == null) ? null : new java.io.File JavaDoc(source._DumpBeanTree.getAbsolutePath());
420         _GenerateDotGraph = (source._GenerateDotGraph == null) ? null : new java.io.File JavaDoc(source._GenerateDotGraph.getAbsolutePath());
421         _ProcessComments = source._ProcessComments;
422         _isSet_ProcessComments = source._isSet_ProcessComments;
423         _ProcessDocType = source._ProcessDocType;
424         _isSet_ProcessDocType = source._isSet_ProcessDocType;
425         _CheckUpToDate = source._CheckUpToDate;
426         _isSet_CheckUpToDate = source._isSet_CheckUpToDate;
427         _GenerateParentRefs = source._GenerateParentRefs;
428         _isSet_GenerateParentRefs = source._isSet_GenerateParentRefs;
429         _GenerateHasChanged = source._GenerateHasChanged;
430         _isSet_GenerateHasChanged = source._isSet_GenerateHasChanged;
431         _NewestSourceTime = source._NewestSourceTime;
432         _isSet_NewestSourceTime = source._isSet_NewestSourceTime;
433         _WriteBeanGraphFile = (source._WriteBeanGraphFile == null) ? null : new java.io.File JavaDoc(source._WriteBeanGraphFile.getAbsolutePath());
434         for (java.util.Iterator JavaDoc it = source._ReadBeanGraphFiles.iterator();
435             it.hasNext(); ) {
436             java.io.File JavaDoc srcElement = (java.io.File JavaDoc)it.next();
437             _ReadBeanGraphFiles.add((srcElement == null) ? null : new java.io.File JavaDoc(srcElement.getAbsolutePath()));
438         }
439         for (java.util.Iterator JavaDoc it = source._ReadBeanGraphs.iterator();
440             it.hasNext(); ) {
441             org.netbeans.modules.schema2beansdev.beangraph.BeanGraph srcElement = (org.netbeans.modules.schema2beansdev.beangraph.BeanGraph)it.next();
442             _ReadBeanGraphs.add((srcElement == null) ? null : new org.netbeans.modules.schema2beansdev.beangraph.BeanGraph(srcElement));
443         }
444         _MinFeatures = source._MinFeatures;
445         _isSet_MinFeatures = source._isSet_MinFeatures;
446         _ForME = source._ForME;
447         _isSet_ForME = source._isSet_ForME;
448         _GenerateTagsFile = source._GenerateTagsFile;
449         _isSet_GenerateTagsFile = source._isSet_GenerateTagsFile;
450         _CodeGeneratorFactory = source._CodeGeneratorFactory;
451         _GenerateTimeStamp = source._GenerateTimeStamp;
452         _isSet_GenerateTimeStamp = source._isSet_GenerateTimeStamp;
453         _Quiet = source._Quiet;
454         _isSet_Quiet = source._isSet_Quiet;
455         _WriteConfig = (source._WriteConfig == null) ? null : new java.io.File JavaDoc(source._WriteConfig.getAbsolutePath());
456         for (java.util.Iterator JavaDoc it = source._ReadConfig.iterator();
457             it.hasNext(); ) {
458             java.io.File JavaDoc srcElement = (java.io.File JavaDoc)it.next();
459             _ReadConfig.add((srcElement == null) ? null : new java.io.File JavaDoc(srcElement.getAbsolutePath()));
460         }
461         _MakeDefaults = source._MakeDefaults;
462         _isSet_MakeDefaults = source._isSet_MakeDefaults;
463         _SetDefaults = source._SetDefaults;
464         _isSet_SetDefaults = source._isSet_SetDefaults;
465         _TrimNonStrings = source._TrimNonStrings;
466         _isSet_TrimNonStrings = source._isSet_TrimNonStrings;
467         _UseRuntime = source._UseRuntime;
468         _isSet_UseRuntime = source._isSet_UseRuntime;
469         _ExtendBaseBean = source._ExtendBaseBean;
470         _isSet_ExtendBaseBean = source._isSet_ExtendBaseBean;
471         for (java.util.Iterator JavaDoc it = source._Finder.iterator();
472             it.hasNext(); ) {
473             java.lang.String JavaDoc srcElement = (java.lang.String JavaDoc)it.next();
474             _Finder.add(srcElement);
475         }
476         _Target = source._Target;
477         _StaxProduceXMLEventReader = source._StaxProduceXMLEventReader;
478         _isSet_StaxProduceXMLEventReader = source._isSet_StaxProduceXMLEventReader;
479         _StaxUseXMLEventReader = source._StaxUseXMLEventReader;
480         _isSet_StaxUseXMLEventReader = source._isSet_StaxUseXMLEventReader;
481         _OptionalScalars = source._OptionalScalars;
482         _isSet_OptionalScalars = source._isSet_OptionalScalars;
483         _DefaultElementType = source._DefaultElementType;
484         _RespectExtension = source._RespectExtension;
485         _isSet_RespectExtension = source._isSet_RespectExtension;
486         _LogSuspicious = source._LogSuspicious;
487         _isSet_LogSuspicious = source._isSet_LogSuspicious;
488         schemaLocation = source.schemaLocation;
489     }
490
491     // This attribute is mandatory
492
public void setSchemaType(java.lang.String JavaDoc value) {
493         _SchemaType = value;
494     }
495
496     public java.lang.String JavaDoc getSchemaType() {
497         return _SchemaType;
498     }
499
500     // This attribute is optional
501
public void setTraceParse(boolean value) {
502         _TraceParse = value;
503         _isSet_TraceParse = true;
504     }
505
506     public boolean isTraceParse() {
507         return _TraceParse;
508     }
509
510     // This attribute is optional
511
public void setTraceGen(boolean value) {
512         _TraceGen = value;
513         _isSet_TraceGen = true;
514     }
515
516     public boolean isTraceGen() {
517         return _TraceGen;
518     }
519
520     // This attribute is optional
521
public void setTraceMisc(boolean value) {
522         _TraceMisc = value;
523         _isSet_TraceMisc = true;
524     }
525
526     public boolean isTraceMisc() {
527         return _TraceMisc;
528     }
529
530     // This attribute is optional
531
public void setTraceDot(boolean value) {
532         _TraceDot = value;
533         _isSet_TraceDot = true;
534     }
535
536     public boolean isTraceDot() {
537         return _TraceDot;
538     }
539
540     // This attribute is optional
541
public void setFilename(java.io.File JavaDoc value) {
542         _Filename = value;
543     }
544
545     public java.io.File JavaDoc getFilename() {
546         return _Filename;
547     }
548
549     // This attribute is optional
550
public void setFileIn(java.io.InputStream JavaDoc value) {
551         _FileIn = value;
552     }
553
554     public java.io.InputStream JavaDoc getFileIn() {
555         return _FileIn;
556     }
557
558     // This attribute is optional
559
public void setDocRoot(java.lang.String JavaDoc value) {
560         _DocRoot = value;
561     }
562
563     public java.lang.String JavaDoc getDocRoot() {
564         return _DocRoot;
565     }
566
567     // This attribute is mandatory
568
public void setRootDir(java.io.File JavaDoc value) {
569         _RootDir = value;
570     }
571
572     public java.io.File JavaDoc getRootDir() {
573         return _RootDir;
574     }
575
576     // This attribute is optional
577
public void setPackagePath(java.lang.String JavaDoc value) {
578         _PackagePath = value;
579     }
580
581     public java.lang.String JavaDoc getPackagePath() {
582         return _PackagePath;
583     }
584
585     // This attribute is mandatory
586
public void setIndent(java.lang.String JavaDoc value) {
587         _Indent = value;
588     }
589
590     public java.lang.String JavaDoc getIndent() {
591         return _Indent;
592     }
593
594     // This attribute is optional
595
public void setIndentAmount(int value) {
596         _IndentAmount = value;
597         _isSet_IndentAmount = true;
598     }
599
600     public int getIndentAmount() {
601         return _IndentAmount;
602     }
603
604     // This attribute is optional
605
public void setMddFile(java.io.File JavaDoc value) {
606         _MddFile = value;
607     }
608
609     public java.io.File JavaDoc getMddFile() {
610         return _MddFile;
611     }
612
613     // This attribute is optional
614
public void setMddIn(java.io.InputStream JavaDoc value) {
615         _MddIn = value;
616     }
617
618     public java.io.InputStream JavaDoc getMddIn() {
619         return _MddIn;
620     }
621
622     // This attribute is optional
623
public void setMetaDD(org.netbeans.modules.schema2beansdev.metadd.MetaDD value) {
624         _MetaDD = value;
625     }
626
627     public org.netbeans.modules.schema2beansdev.metadd.MetaDD getMetaDD() {
628         return _MetaDD;
629     }
630
631     // This attribute is mandatory
632
public void setDoGeneration(boolean value) {
633         _DoGeneration = value;
634         _isSet_DoGeneration = true;
635     }
636
637     public boolean isDoGeneration() {
638         return _DoGeneration;
639     }
640
641     // This attribute is mandatory
642
public void setScalarException(boolean value) {
643         _ScalarException = value;
644         _isSet_ScalarException = true;
645     }
646
647     public boolean isScalarException() {
648         return _ScalarException;
649     }
650
651     // This attribute is optional
652
public void setDumpToString(boolean value) {
653         _DumpToString = value;
654         _isSet_DumpToString = true;
655     }
656
657     public boolean isDumpToString() {
658         return _DumpToString;
659     }
660
661     // This attribute is optional
662
public void setVetoable(boolean value) {
663         _Vetoable = value;
664         _isSet_Vetoable = true;
665     }
666
667     public boolean isVetoable() {
668         return _Vetoable;
669     }
670
671     // This attribute is optional
672
public void setStandalone(boolean value) {
673         _Standalone = value;
674         _isSet_Standalone = true;
675     }
676
677     public boolean isStandalone() {
678         return _Standalone;
679     }
680
681     // This attribute is optional
682
public void setAuto(boolean value) {
683         _Auto = value;
684         _isSet_Auto = true;
685     }
686
687     public boolean isAuto() {
688         return _Auto;
689     }
690
691     // This attribute is optional
692
public void setMessageOut(java.io.PrintStream JavaDoc value) {
693         _MessageOut = value;
694     }
695
696     public java.io.PrintStream JavaDoc getMessageOut() {
697         return _MessageOut;
698     }
699
700     // This attribute is optional
701
public void setOutputStreamProvider(org.netbeans.modules.schema2beansdev.GenBeans.OutputStreamProvider value) {
702         _OutputStreamProvider = value;
703     }
704
705     public org.netbeans.modules.schema2beansdev.GenBeans.OutputStreamProvider getOutputStreamProvider() {
706         return _OutputStreamProvider;
707     }
708
709     // This attribute is optional
710
public void setThrowErrors(boolean value) {
711         _ThrowErrors = value;
712         _isSet_ThrowErrors = true;
713     }
714
715     public boolean isThrowErrors() {
716         return _ThrowErrors;
717     }
718
719     // This attribute is mandatory
720
public void setGenerateXMLIO(boolean value) {
721         _GenerateXMLIO = value;
722         _isSet_GenerateXMLIO = true;
723     }
724
725     public boolean isGenerateXMLIO() {
726         return _GenerateXMLIO;
727     }
728
729     // This attribute is optional
730
public void setGenerateValidate(boolean value) {
731         _GenerateValidate = value;
732         _isSet_GenerateValidate = true;
733     }
734
735     public boolean isGenerateValidate() {
736         return _GenerateValidate;
737     }
738
739     // This attribute is optional
740
public void setGeneratePropertyEvents(boolean value) {
741         _GeneratePropertyEvents = value;
742         _isSet_GeneratePropertyEvents = true;
743     }
744
745     public boolean isGeneratePropertyEvents() {
746         return _GeneratePropertyEvents;
747     }
748
749     // This attribute is optional
750
public void setGenerateStoreEvents(boolean value) {
751         _GenerateStoreEvents = value;
752         _isSet_GenerateStoreEvents = true;
753     }
754
755     public boolean isGenerateStoreEvents() {
756         return _GenerateStoreEvents;
757     }
758
759     // This attribute is optional
760
public void setGenerateTransactions(boolean value) {
761         _GenerateTransactions = value;
762         _isSet_GenerateTransactions = true;
763     }
764
765     public boolean isGenerateTransactions() {
766         return _GenerateTransactions;
767     }
768
769     // This attribute is optional
770
public void setAttributesAsProperties(boolean value) {
771         _AttributesAsProperties = value;
772         _isSet_AttributesAsProperties = true;
773     }
774
775     public boolean isAttributesAsProperties() {
776         return _AttributesAsProperties;
777     }
778
779     // This attribute is optional
780
public void setGenerateDelegator(boolean value) {
781         _GenerateDelegator = value;
782         _isSet_GenerateDelegator = true;
783     }
784
785     public boolean isGenerateDelegator() {
786         return _GenerateDelegator;
787     }
788
789     // This attribute is optional
790
public void setDelegateDir(java.io.File JavaDoc value) {
791         _DelegateDir = value;
792     }
793
794     public java.io.File JavaDoc getDelegateDir() {
795         return _DelegateDir;
796     }
797
798     // This attribute is optional
799
public void setDelegatePackage(java.lang.String JavaDoc value) {
800         _DelegatePackage = value;
801     }
802
803     public java.lang.String JavaDoc getDelegatePackage() {
804         return _DelegatePackage;
805     }
806
807     // This attribute is optional
808
public void setGenerateCommonInterface(java.lang.String JavaDoc value) {
809         _GenerateCommonInterface = value;
810     }
811
812     public java.lang.String JavaDoc getGenerateCommonInterface() {
813         return _GenerateCommonInterface;
814     }
815
816     // This attribute is optional
817
public void setDefaultsAccessable(boolean value) {
818         _DefaultsAccessable = value;
819         _isSet_DefaultsAccessable = true;
820     }
821
822     public boolean isDefaultsAccessable() {
823         return _DefaultsAccessable;
824     }
825
826     // This attribute is optional
827
public void setUseInterfaces(boolean value) {
828         _UseInterfaces = value;
829         _isSet_UseInterfaces = true;
830     }
831
832     public boolean isUseInterfaces() {
833         return _UseInterfaces;
834     }
835
836     // This attribute is optional
837
public void setGenerateInterfaces(boolean value) {
838         _GenerateInterfaces = value;
839         _isSet_GenerateInterfaces = true;
840     }
841
842     public boolean isGenerateInterfaces() {
843         return _GenerateInterfaces;
844     }
845
846     // This attribute is optional
847
public void setKeepElementPositions(boolean value) {
848         _KeepElementPositions = value;
849         _isSet_KeepElementPositions = true;
850     }
851
852     public boolean isKeepElementPositions() {
853         return _KeepElementPositions;
854     }
855
856     // This attribute is optional
857
public void setRemoveUnreferencedNodes(boolean value) {
858         _RemoveUnreferencedNodes = value;
859         _isSet_RemoveUnreferencedNodes = true;
860     }
861
862     public boolean isRemoveUnreferencedNodes() {
863         return _RemoveUnreferencedNodes;
864     }
865
866     // This attribute is optional
867
public void setInputURI(java.lang.String JavaDoc value) {
868         _InputURI = value;
869     }
870
871     public java.lang.String JavaDoc getInputURI() {
872         return _InputURI;
873     }
874
875     // This attribute is mandatory
876
public void setIndexedPropertyType(java.lang.String JavaDoc value) {
877         _IndexedPropertyType = value;
878     }
879
880     public java.lang.String JavaDoc getIndexedPropertyType() {
881         return _IndexedPropertyType;
882     }
883
884     // This attribute is optional
885
public void setDoCompile(boolean value) {
886         _DoCompile = value;
887         _isSet_DoCompile = true;
888     }
889
890     public boolean isDoCompile() {
891         return _DoCompile;
892     }
893
894     // This attribute is optional
895
public void setGenerateSwitches(boolean value) {
896         _GenerateSwitches = value;
897         _isSet_GenerateSwitches = true;
898     }
899
900     public boolean isGenerateSwitches() {
901         return _GenerateSwitches;
902     }
903
904     // This attribute is optional
905
public void setDumpBeanTree(java.io.File JavaDoc value) {
906         _DumpBeanTree = value;
907     }
908
909     public java.io.File JavaDoc getDumpBeanTree() {
910         return _DumpBeanTree;
911     }
912
913     // This attribute is optional
914
public void setGenerateDotGraph(java.io.File JavaDoc value) {
915         _GenerateDotGraph = value;
916     }
917
918     public java.io.File JavaDoc getGenerateDotGraph() {
919         return _GenerateDotGraph;
920     }
921
922     // This attribute is optional
923
public void setProcessComments(boolean value) {
924         _ProcessComments = value;
925         _isSet_ProcessComments = true;
926     }
927
928     public boolean isProcessComments() {
929         return _ProcessComments;
930     }
931
932     // This attribute is optional
933
public void setProcessDocType(boolean value) {
934         _ProcessDocType = value;
935         _isSet_ProcessDocType = true;
936     }
937
938     public boolean isProcessDocType() {
939         return _ProcessDocType;
940     }
941
942     // This attribute is optional
943
public void setCheckUpToDate(boolean value) {
944         _CheckUpToDate = value;
945         _isSet_CheckUpToDate = true;
946     }
947
948     public boolean isCheckUpToDate() {
949         return _CheckUpToDate;
950     }
951
952     // This attribute is optional
953
public void setGenerateParentRefs(boolean value) {
954         _GenerateParentRefs = value;
955         _isSet_GenerateParentRefs = true;
956     }
957
958     public boolean isGenerateParentRefs() {
959         return _GenerateParentRefs;
960     }
961
962     // This attribute is optional
963
public void setGenerateHasChanged(boolean value) {
964         _GenerateHasChanged = value;
965         _isSet_GenerateHasChanged = true;
966     }
967
968     public boolean isGenerateHasChanged() {
969         return _GenerateHasChanged;
970     }
971
972     // This attribute is optional
973
public void setNewestSourceTime(long value) {
974         _NewestSourceTime = value;
975         _isSet_NewestSourceTime = true;
976     }
977
978     public long getNewestSourceTime() {
979         return _NewestSourceTime;
980     }
981
982     // This attribute is optional
983
public void setWriteBeanGraphFile(java.io.File JavaDoc value) {
984         _WriteBeanGraphFile = value;
985     }
986
987     public java.io.File JavaDoc getWriteBeanGraphFile() {
988         return _WriteBeanGraphFile;
989     }
990
991     // This attribute is an array, possibly empty
992
public void setReadBeanGraphFiles(java.io.File JavaDoc[] value) {
993         if (value == null)
994             value = new java.io.File JavaDoc[0];
995         _ReadBeanGraphFiles.clear();
996         ((java.util.ArrayList JavaDoc) _ReadBeanGraphFiles).ensureCapacity(value.length);
997         for (int i = 0; i < value.length; ++i) {
998             _ReadBeanGraphFiles.add(value[i]);
999         }
1000    }
1001
1002    public void setReadBeanGraphFiles(int index, java.io.File JavaDoc value) {
1003        _ReadBeanGraphFiles.set(index, value);
1004    }
1005
1006    public java.io.File JavaDoc[] getReadBeanGraphFiles() {
1007        java.io.File JavaDoc[] arr = new java.io.File JavaDoc[_ReadBeanGraphFiles.size()];
1008        return (java.io.File JavaDoc[]) _ReadBeanGraphFiles.toArray(arr);
1009    }
1010
1011    public java.util.List JavaDoc fetchReadBeanGraphFilesList() {
1012        return _ReadBeanGraphFiles;
1013    }
1014
1015    public java.io.File JavaDoc getReadBeanGraphFiles(int index) {
1016        return (java.io.File JavaDoc)_ReadBeanGraphFiles.get(index);
1017    }
1018
1019    // Return the number of readBeanGraphFiles
1020
public int sizeReadBeanGraphFiles() {
1021        return _ReadBeanGraphFiles.size();
1022    }
1023
1024    public int addReadBeanGraphFiles(java.io.File JavaDoc value) {
1025        _ReadBeanGraphFiles.add(value);
1026        int positionOfNewItem = _ReadBeanGraphFiles.size()-1;
1027        return positionOfNewItem;
1028    }
1029
1030    /**
1031     * Search from the end looking for @param value, and then remove it.
1032     */

1033    public int removeReadBeanGraphFiles(java.io.File JavaDoc value) {
1034        int pos = _ReadBeanGraphFiles.indexOf(value);
1035        if (pos >= 0) {
1036            _ReadBeanGraphFiles.remove(pos);
1037        }
1038        return pos;
1039    }
1040
1041    // This attribute is an array, possibly empty
1042
public void setReadBeanGraphs(org.netbeans.modules.schema2beansdev.beangraph.BeanGraph[] value) {
1043        if (value == null)
1044            value = new org.netbeans.modules.schema2beansdev.beangraph.BeanGraph[0];
1045        _ReadBeanGraphs.clear();
1046        ((java.util.ArrayList JavaDoc) _ReadBeanGraphs).ensureCapacity(value.length);
1047        for (int i = 0; i < value.length; ++i) {
1048            _ReadBeanGraphs.add(value[i]);
1049        }
1050    }
1051
1052    public void setReadBeanGraphs(int index, org.netbeans.modules.schema2beansdev.beangraph.BeanGraph value) {
1053        _ReadBeanGraphs.set(index, value);
1054    }
1055
1056    public org.netbeans.modules.schema2beansdev.beangraph.BeanGraph[] getReadBeanGraphs() {
1057        org.netbeans.modules.schema2beansdev.beangraph.BeanGraph[] arr = new org.netbeans.modules.schema2beansdev.beangraph.BeanGraph[_ReadBeanGraphs.size()];
1058        return (org.netbeans.modules.schema2beansdev.beangraph.BeanGraph[]) _ReadBeanGraphs.toArray(arr);
1059    }
1060
1061    public java.util.List JavaDoc fetchReadBeanGraphsList() {
1062        return _ReadBeanGraphs;
1063    }
1064
1065    public org.netbeans.modules.schema2beansdev.beangraph.BeanGraph getReadBeanGraphs(int index) {
1066        return (org.netbeans.modules.schema2beansdev.beangraph.BeanGraph)_ReadBeanGraphs.get(index);
1067    }
1068
1069    // Return the number of readBeanGraphs
1070
public int sizeReadBeanGraphs() {
1071        return _ReadBeanGraphs.size();
1072    }
1073
1074    public int addReadBeanGraphs(org.netbeans.modules.schema2beansdev.beangraph.BeanGraph value) {
1075        _ReadBeanGraphs.add(value);
1076        int positionOfNewItem = _ReadBeanGraphs.size()-1;
1077        return positionOfNewItem;
1078    }
1079
1080    /**
1081     * Search from the end looking for @param value, and then remove it.
1082     */

1083    public int removeReadBeanGraphs(org.netbeans.modules.schema2beansdev.beangraph.BeanGraph value) {
1084        int pos = _ReadBeanGraphs.indexOf(value);
1085        if (pos >= 0) {
1086            _ReadBeanGraphs.remove(pos);
1087        }
1088        return pos;
1089    }
1090
1091    // This attribute is optional
1092
public void setMinFeatures(boolean value) {
1093        _MinFeatures = value;
1094        _isSet_MinFeatures = true;
1095    }
1096
1097    public boolean isMinFeatures() {
1098        return _MinFeatures;
1099    }
1100
1101    // This attribute is optional
1102
public void setForME(boolean value) {
1103        _ForME = value;
1104        _isSet_ForME = true;
1105    }
1106
1107    public boolean isForME() {
1108        return _ForME;
1109    }
1110
1111    // This attribute is optional
1112
public void setGenerateTagsFile(boolean value) {
1113        _GenerateTagsFile = value;
1114        _isSet_GenerateTagsFile = true;
1115    }
1116
1117    public boolean isGenerateTagsFile() {
1118        return _GenerateTagsFile;
1119    }
1120
1121    // This attribute is optional
1122
public void setCodeGeneratorFactory(org.netbeans.modules.schema2beansdev.CodeGeneratorFactory value) {
1123        _CodeGeneratorFactory = value;
1124    }
1125
1126    public org.netbeans.modules.schema2beansdev.CodeGeneratorFactory getCodeGeneratorFactory() {
1127        return _CodeGeneratorFactory;
1128    }
1129
1130    // This attribute is mandatory
1131
public void setGenerateTimeStamp(boolean value) {
1132        _GenerateTimeStamp = value;
1133        _isSet_GenerateTimeStamp = true;
1134    }
1135
1136    public boolean isGenerateTimeStamp() {
1137        return _GenerateTimeStamp;
1138    }
1139
1140    // This attribute is mandatory
1141
public void setQuiet(boolean value) {
1142        _Quiet = value;
1143        _isSet_Quiet = true;
1144    }
1145
1146    public boolean isQuiet() {
1147        return _Quiet;
1148    }
1149
1150    // This attribute is optional
1151
public void setWriteConfig(java.io.File JavaDoc value) {
1152        _WriteConfig = value;
1153    }
1154
1155    public java.io.File JavaDoc getWriteConfig() {
1156        return _WriteConfig;
1157    }
1158
1159    // This attribute is an array, possibly empty
1160
public void setReadConfig(java.io.File JavaDoc[] value) {
1161        if (value == null)
1162            value = new java.io.File JavaDoc[0];
1163        _ReadConfig.clear();
1164        ((java.util.ArrayList JavaDoc) _ReadConfig).ensureCapacity(value.length);
1165        for (int i = 0; i < value.length; ++i) {
1166            _ReadConfig.add(value[i]);
1167        }
1168    }
1169
1170    public void setReadConfig(int index, java.io.File JavaDoc value) {
1171        _ReadConfig.set(index, value);
1172    }
1173
1174    public java.io.File JavaDoc[] getReadConfig() {
1175        java.io.File JavaDoc[] arr = new java.io.File JavaDoc[_ReadConfig.size()];
1176        return (java.io.File JavaDoc[]) _ReadConfig.toArray(arr);
1177    }
1178
1179    public java.util.List JavaDoc fetchReadConfigList() {
1180        return _ReadConfig;
1181    }
1182
1183    public java.io.File JavaDoc getReadConfig(int index) {
1184        return (java.io.File JavaDoc)_ReadConfig.get(index);
1185    }
1186
1187    // Return the number of readConfig
1188
public int sizeReadConfig() {
1189        return _ReadConfig.size();
1190    }
1191
1192    public int addReadConfig(java.io.File JavaDoc value) {
1193        _ReadConfig.add(value);
1194        int positionOfNewItem = _ReadConfig.size()-1;
1195        return positionOfNewItem;
1196    }
1197
1198    /**
1199     * Search from the end looking for @param value, and then remove it.
1200     */

1201    public int removeReadConfig(java.io.File JavaDoc value) {
1202        int pos = _ReadConfig.indexOf(value);
1203        if (pos >= 0) {
1204            _ReadConfig.remove(pos);
1205        }
1206        return pos;
1207    }
1208
1209    // This attribute is mandatory
1210
public void setMakeDefaults(boolean value) {
1211        _MakeDefaults = value;
1212        _isSet_MakeDefaults = true;
1213    }
1214
1215    public boolean isMakeDefaults() {
1216        return _MakeDefaults;
1217    }
1218
1219    // This attribute is optional
1220
public void setSetDefaults(boolean value) {
1221        _SetDefaults = value;
1222        _isSet_SetDefaults = true;
1223    }
1224
1225    public boolean isSetDefaults() {
1226        return _SetDefaults;
1227    }
1228
1229    // This attribute is optional
1230
public void setTrimNonStrings(boolean value) {
1231        _TrimNonStrings = value;
1232        _isSet_TrimNonStrings = true;
1233    }
1234
1235    public boolean isTrimNonStrings() {
1236        return _TrimNonStrings;
1237    }
1238
1239    // This attribute is optional
1240
public void setUseRuntime(boolean value) {
1241        _UseRuntime = value;
1242        _isSet_UseRuntime = true;
1243    }
1244
1245    public boolean isUseRuntime() {
1246        return _UseRuntime;
1247    }
1248
1249    // This attribute is optional
1250
public void setExtendBaseBean(boolean value) {
1251        _ExtendBaseBean = value;
1252        _isSet_ExtendBaseBean = true;
1253    }
1254
1255    public boolean isExtendBaseBean() {
1256        return _ExtendBaseBean;
1257    }
1258
1259    // This attribute is an array, possibly empty
1260
public void setFinder(java.lang.String JavaDoc[] value) {
1261        if (value == null)
1262            value = new java.lang.String JavaDoc[0];
1263        _Finder.clear();
1264        ((java.util.ArrayList JavaDoc) _Finder).ensureCapacity(value.length);
1265        for (int i = 0; i < value.length; ++i) {
1266            _Finder.add(value[i]);
1267        }
1268    }
1269
1270    public void setFinder(int index, java.lang.String JavaDoc value) {
1271        _Finder.set(index, value);
1272    }
1273
1274    public java.lang.String JavaDoc[] getFinder() {
1275        java.lang.String JavaDoc[] arr = new java.lang.String JavaDoc[_Finder.size()];
1276        return (java.lang.String JavaDoc[]) _Finder.toArray(arr);
1277    }
1278
1279    public java.util.List JavaDoc fetchFinderList() {
1280        return _Finder;
1281    }
1282
1283    public java.lang.String JavaDoc getFinder(int index) {
1284        return (java.lang.String JavaDoc)_Finder.get(index);
1285    }
1286
1287    // Return the number of finder
1288
public int sizeFinder() {
1289        return _Finder.size();
1290    }
1291
1292    public int addFinder(java.lang.String JavaDoc value) {
1293        _Finder.add(value);
1294        int positionOfNewItem = _Finder.size()-1;
1295        return positionOfNewItem;
1296    }
1297
1298    /**
1299     * Search from the end looking for @param value, and then remove it.
1300     */

1301    public int removeFinder(java.lang.String JavaDoc value) {
1302        int pos = _Finder.indexOf(value);
1303        if (pos >= 0) {
1304            _Finder.remove(pos);
1305        }
1306        return pos;
1307    }
1308
1309    // This attribute is optional
1310
public void setTarget(java.lang.String JavaDoc value) {
1311        _Target = value;
1312    }
1313
1314    public java.lang.String JavaDoc getTarget() {
1315        return _Target;
1316    }
1317
1318    // This attribute is optional
1319
public void setStaxProduceXMLEventReader(boolean value) {
1320        _StaxProduceXMLEventReader = value;
1321        _isSet_StaxProduceXMLEventReader = true;
1322    }
1323
1324    public boolean isStaxProduceXMLEventReader() {
1325        return _StaxProduceXMLEventReader;
1326    }
1327
1328    // This attribute is optional
1329
public void setStaxUseXMLEventReader(boolean value) {
1330        _StaxUseXMLEventReader = value;
1331        _isSet_StaxUseXMLEventReader = true;
1332    }
1333
1334    public boolean isStaxUseXMLEventReader() {
1335        return _StaxUseXMLEventReader;
1336    }
1337
1338    // This attribute is optional
1339
public void setOptionalScalars(boolean value) {
1340        _OptionalScalars = value;
1341        _isSet_OptionalScalars = true;
1342    }
1343
1344    public boolean isOptionalScalars() {
1345        return _OptionalScalars;
1346    }
1347
1348    // This attribute is optional
1349
public void setDefaultElementType(java.lang.String JavaDoc value) {
1350        _DefaultElementType = value;
1351    }
1352
1353    public java.lang.String JavaDoc getDefaultElementType() {
1354        return _DefaultElementType;
1355    }
1356
1357    // This attribute is optional
1358
public void setRespectExtension(boolean value) {
1359        _RespectExtension = value;
1360        _isSet_RespectExtension = true;
1361    }
1362
1363    public boolean isRespectExtension() {
1364        return _RespectExtension;
1365    }
1366
1367    // This attribute is optional
1368
public void setLogSuspicious(boolean value) {
1369        _LogSuspicious = value;
1370        _isSet_LogSuspicious = true;
1371    }
1372
1373    public boolean isLogSuspicious() {
1374        return _LogSuspicious;
1375    }
1376
1377    public void _setSchemaLocation(String JavaDoc location) {
1378        schemaLocation = location;
1379    }
1380
1381    public String JavaDoc _getSchemaLocation() {
1382        return schemaLocation;
1383    }
1384
1385    public void write(java.io.File JavaDoc f) throws java.io.IOException JavaDoc {
1386        java.io.OutputStream JavaDoc out = new java.io.FileOutputStream JavaDoc(f);
1387        try {
1388            write(out);
1389        } finally {
1390            out.close();
1391        }
1392    }
1393
1394    public void write(java.io.OutputStream JavaDoc out) throws java.io.IOException JavaDoc {
1395        write(out, null);
1396    }
1397
1398    public void write(java.io.OutputStream JavaDoc out, String JavaDoc encoding) throws java.io.IOException JavaDoc {
1399        java.io.Writer JavaDoc w;
1400        if (encoding == null) {
1401            encoding = "UTF-8"; // NOI18N
1402
}
1403        w = new java.io.BufferedWriter JavaDoc(new java.io.OutputStreamWriter JavaDoc(out, encoding));
1404        write(w, encoding);
1405        w.flush();
1406    }
1407
1408    /**
1409     * Print this Java Bean to @param out including an XML header.
1410     * @param encoding is the encoding style that @param out was opened with.
1411     */

1412    public void write(java.io.Writer JavaDoc out, String JavaDoc encoding) throws java.io.IOException JavaDoc {
1413        out.write("<?xml version='1.0'"); // NOI18N
1414
if (encoding != null)
1415            out.write(" encoding='"+encoding+"'"); // NOI18N
1416
out.write(" ?>\n"); // NOI18N
1417
writeNode(out, "s2bConfig", ""); // NOI18N
1418
}
1419
1420    public void writeNode(java.io.Writer JavaDoc out) throws java.io.IOException JavaDoc {
1421        String JavaDoc myName;
1422        myName = "s2bConfig";
1423        writeNode(out, myName, ""); // NOI18N
1424
}
1425
1426    public void writeNode(java.io.Writer JavaDoc out, String JavaDoc nodeName, String JavaDoc indent) throws java.io.IOException JavaDoc {
1427        writeNode(out, nodeName, null, indent, new java.util.HashMap JavaDoc());
1428    }
1429
1430    /**
1431     * It's not recommended to call this method directly.
1432     */

1433    public void writeNode(java.io.Writer JavaDoc out, String JavaDoc nodeName, String JavaDoc namespace, String JavaDoc indent, java.util.Map JavaDoc namespaceMap) throws java.io.IOException JavaDoc {
1434        out.write(indent);
1435        out.write("<");
1436        if (namespace != null) {
1437            out.write((String JavaDoc)namespaceMap.get(namespace));
1438            out.write(":");
1439        }
1440        out.write(nodeName);
1441        if (schemaLocation != null) {
1442            namespaceMap.put("http://www.w3.org/2001/XMLSchema-instance", "xsi");
1443            out.write(" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='");
1444            out.write(schemaLocation);
1445            out.write("'"); // NOI18N
1446
}
1447        writeNodeAttributes(out, nodeName, namespace, indent, namespaceMap);
1448        out.write(">\n");
1449        writeNodeChildren(out, nodeName, namespace, indent, namespaceMap);
1450        out.write(indent);
1451        out.write("</");
1452        if (namespace != null) {
1453            out.write((String JavaDoc)namespaceMap.get(namespace));
1454            out.write(":");
1455        }
1456        out.write(nodeName);
1457        out.write(">\n");
1458    }
1459
1460    protected void writeNodeAttributes(java.io.Writer JavaDoc out, String JavaDoc nodeName, String JavaDoc namespace, String JavaDoc indent, java.util.Map JavaDoc namespaceMap) throws java.io.IOException JavaDoc {
1461    }
1462
1463    protected void writeNodeChildren(java.io.Writer JavaDoc out, String JavaDoc nodeName, String JavaDoc namespace, String JavaDoc indent, java.util.Map JavaDoc namespaceMap) throws java.io.IOException JavaDoc {
1464        String JavaDoc nextIndent = indent + " ";
1465        if (_SchemaType != null) {
1466            out.write(nextIndent);
1467            out.write("<schemaType"); // NOI18N
1468
out.write(">"); // NOI18N
1469
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _SchemaType, false);
1470            out.write("</schemaType>\n"); // NOI18N
1471
}
1472        if (_isSet_TraceParse) {
1473            out.write(nextIndent);
1474            out.write("<traceParse"); // NOI18N
1475
out.write(">"); // NOI18N
1476
out.write(_TraceParse ? "true" : "false");
1477            out.write("</traceParse>\n"); // NOI18N
1478
}
1479        if (_isSet_TraceGen) {
1480            out.write(nextIndent);
1481            out.write("<traceGen"); // NOI18N
1482
out.write(">"); // NOI18N
1483
out.write(_TraceGen ? "true" : "false");
1484            out.write("</traceGen>\n"); // NOI18N
1485
}
1486        if (_isSet_TraceMisc) {
1487            out.write(nextIndent);
1488            out.write("<traceMisc"); // NOI18N
1489
out.write(">"); // NOI18N
1490
out.write(_TraceMisc ? "true" : "false");
1491            out.write("</traceMisc>\n"); // NOI18N
1492
}
1493        if (_isSet_TraceDot) {
1494            out.write(nextIndent);
1495            out.write("<traceDot"); // NOI18N
1496
out.write(">"); // NOI18N
1497
out.write(_TraceDot ? "true" : "false");
1498            out.write("</traceDot>\n"); // NOI18N
1499
}
1500        if (_Filename != null) {
1501            out.write(nextIndent);
1502            out.write("<filename"); // NOI18N
1503
out.write(">"); // NOI18N
1504
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _Filename.toString(), false);
1505            out.write("</filename>\n"); // NOI18N
1506
}
1507        if (_FileIn != null) {
1508            out.write(nextIndent);
1509            out.write("<fileIn"); // NOI18N
1510
out.write(">"); // NOI18N
1511
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _FileIn.toString(), false);
1512            out.write("</fileIn>\n"); // NOI18N
1513
}
1514        if (_DocRoot != null) {
1515            out.write(nextIndent);
1516            out.write("<docRoot"); // NOI18N
1517
out.write(">"); // NOI18N
1518
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _DocRoot, false);
1519            out.write("</docRoot>\n"); // NOI18N
1520
}
1521        if (_RootDir != null) {
1522            out.write(nextIndent);
1523            out.write("<rootDir"); // NOI18N
1524
out.write(">"); // NOI18N
1525
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _RootDir.toString(), false);
1526            out.write("</rootDir>\n"); // NOI18N
1527
}
1528        if (_PackagePath != null) {
1529            out.write(nextIndent);
1530            out.write("<packagePath"); // NOI18N
1531
out.write(">"); // NOI18N
1532
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _PackagePath, false);
1533            out.write("</packagePath>\n"); // NOI18N
1534
}
1535        if (_Indent != null) {
1536            out.write(nextIndent);
1537            out.write("<indent"); // NOI18N
1538
out.write(">"); // NOI18N
1539
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _Indent, false);
1540            out.write("</indent>\n"); // NOI18N
1541
}
1542        if (_isSet_IndentAmount) {
1543            out.write(nextIndent);
1544            out.write("<indentAmount"); // NOI18N
1545
out.write(">"); // NOI18N
1546
out.write(""+_IndentAmount);
1547            out.write("</indentAmount>\n"); // NOI18N
1548
}
1549        if (_MddFile != null) {
1550            out.write(nextIndent);
1551            out.write("<mddFile"); // NOI18N
1552
out.write(">"); // NOI18N
1553
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _MddFile.toString(), false);
1554            out.write("</mddFile>\n"); // NOI18N
1555
}
1556        if (_MddIn != null) {
1557            out.write(nextIndent);
1558            out.write("<mddIn"); // NOI18N
1559
out.write(">"); // NOI18N
1560
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _MddIn.toString(), false);
1561            out.write("</mddIn>\n"); // NOI18N
1562
}
1563        if (_MetaDD != null) {
1564            out.write(nextIndent);
1565            out.write("<metaDD"); // NOI18N
1566
out.write(">"); // NOI18N
1567
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _MetaDD.toString(), false);
1568            out.write("</metaDD>\n"); // NOI18N
1569
}
1570        if (_isSet_DoGeneration) {
1571            out.write(nextIndent);
1572            out.write("<doGeneration"); // NOI18N
1573
out.write(">"); // NOI18N
1574
out.write(_DoGeneration ? "true" : "false");
1575            out.write("</doGeneration>\n"); // NOI18N
1576
}
1577        if (_isSet_ScalarException) {
1578            out.write(nextIndent);
1579            out.write("<scalarException"); // NOI18N
1580
out.write(">"); // NOI18N
1581
out.write(_ScalarException ? "true" : "false");
1582            out.write("</scalarException>\n"); // NOI18N
1583
}
1584        if (_isSet_DumpToString) {
1585            out.write(nextIndent);
1586            out.write("<dumpToString"); // NOI18N
1587
out.write(">"); // NOI18N
1588
out.write(_DumpToString ? "true" : "false");
1589            out.write("</dumpToString>\n"); // NOI18N
1590
}
1591        if (_isSet_Vetoable) {
1592            out.write(nextIndent);
1593            out.write("<vetoable"); // NOI18N
1594
out.write(">"); // NOI18N
1595
out.write(_Vetoable ? "true" : "false");
1596            out.write("</vetoable>\n"); // NOI18N
1597
}
1598        if (_isSet_Standalone) {
1599            out.write(nextIndent);
1600            out.write("<standalone"); // NOI18N
1601
out.write(">"); // NOI18N
1602
out.write(_Standalone ? "true" : "false");
1603            out.write("</standalone>\n"); // NOI18N
1604
}
1605        if (_isSet_Auto) {
1606            out.write(nextIndent);
1607            out.write("<auto"); // NOI18N
1608
out.write(">"); // NOI18N
1609
out.write(_Auto ? "true" : "false");
1610            out.write("</auto>\n"); // NOI18N
1611
}
1612        if (_MessageOut != null) {
1613            out.write(nextIndent);
1614            out.write("<messageOut"); // NOI18N
1615
out.write(">"); // NOI18N
1616
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _MessageOut.toString(), false);
1617            out.write("</messageOut>\n"); // NOI18N
1618
}
1619        if (_OutputStreamProvider != null) {
1620            out.write(nextIndent);
1621            out.write("<outputStreamProvider"); // NOI18N
1622
out.write(">"); // NOI18N
1623
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _OutputStreamProvider.toString(), false);
1624            out.write("</outputStreamProvider>\n"); // NOI18N
1625
}
1626        if (_isSet_ThrowErrors) {
1627            out.write(nextIndent);
1628            out.write("<throwErrors"); // NOI18N
1629
out.write(">"); // NOI18N
1630
out.write(_ThrowErrors ? "true" : "false");
1631            out.write("</throwErrors>\n"); // NOI18N
1632
}
1633        if (_isSet_GenerateXMLIO) {
1634            out.write(nextIndent);
1635            out.write("<generateXMLIO"); // NOI18N
1636
out.write(">"); // NOI18N
1637
out.write(_GenerateXMLIO ? "true" : "false");
1638            out.write("</generateXMLIO>\n"); // NOI18N
1639
}
1640        if (_isSet_GenerateValidate) {
1641            out.write(nextIndent);
1642            out.write("<generateValidate"); // NOI18N
1643
out.write(">"); // NOI18N
1644
out.write(_GenerateValidate ? "true" : "false");
1645            out.write("</generateValidate>\n"); // NOI18N
1646
}
1647        if (_isSet_GeneratePropertyEvents) {
1648            out.write(nextIndent);
1649            out.write("<generatePropertyEvents"); // NOI18N
1650
out.write(">"); // NOI18N
1651
out.write(_GeneratePropertyEvents ? "true" : "false");
1652            out.write("</generatePropertyEvents>\n"); // NOI18N
1653
}
1654        if (_isSet_GenerateStoreEvents) {
1655            out.write(nextIndent);
1656            out.write("<generateStoreEvents"); // NOI18N
1657
out.write(">"); // NOI18N
1658
out.write(_GenerateStoreEvents ? "true" : "false");
1659            out.write("</generateStoreEvents>\n"); // NOI18N
1660
}
1661        if (_isSet_GenerateTransactions) {
1662            out.write(nextIndent);
1663            out.write("<generateTransactions"); // NOI18N
1664
out.write(">"); // NOI18N
1665
out.write(_GenerateTransactions ? "true" : "false");
1666            out.write("</generateTransactions>\n"); // NOI18N
1667
}
1668        if (_isSet_AttributesAsProperties) {
1669            out.write(nextIndent);
1670            out.write("<attributesAsProperties"); // NOI18N
1671
out.write(">"); // NOI18N
1672
out.write(_AttributesAsProperties ? "true" : "false");
1673            out.write("</attributesAsProperties>\n"); // NOI18N
1674
}
1675        if (_isSet_GenerateDelegator) {
1676            out.write(nextIndent);
1677            out.write("<generateDelegator"); // NOI18N
1678
out.write(">"); // NOI18N
1679
out.write(_GenerateDelegator ? "true" : "false");
1680            out.write("</generateDelegator>\n"); // NOI18N
1681
}
1682        if (_DelegateDir != null) {
1683            out.write(nextIndent);
1684            out.write("<delegateDir"); // NOI18N
1685
out.write(">"); // NOI18N
1686
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _DelegateDir.toString(), false);
1687            out.write("</delegateDir>\n"); // NOI18N
1688
}
1689        if (_DelegatePackage != null) {
1690            out.write(nextIndent);
1691            out.write("<delegatePackage"); // NOI18N
1692
out.write(">"); // NOI18N
1693
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _DelegatePackage, false);
1694            out.write("</delegatePackage>\n"); // NOI18N
1695
}
1696        if (_GenerateCommonInterface != null) {
1697            out.write(nextIndent);
1698            out.write("<generateCommonInterface"); // NOI18N
1699
out.write(">"); // NOI18N
1700
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _GenerateCommonInterface, false);
1701            out.write("</generateCommonInterface>\n"); // NOI18N
1702
}
1703        if (_isSet_DefaultsAccessable) {
1704            out.write(nextIndent);
1705            out.write("<defaultsAccessable"); // NOI18N
1706
out.write(">"); // NOI18N
1707
out.write(_DefaultsAccessable ? "true" : "false");
1708            out.write("</defaultsAccessable>\n"); // NOI18N
1709
}
1710        if (_isSet_UseInterfaces) {
1711            out.write(nextIndent);
1712            out.write("<useInterfaces"); // NOI18N
1713
out.write(">"); // NOI18N
1714
out.write(_UseInterfaces ? "true" : "false");
1715            out.write("</useInterfaces>\n"); // NOI18N
1716
}
1717        if (_isSet_GenerateInterfaces) {
1718            out.write(nextIndent);
1719            out.write("<generateInterfaces"); // NOI18N
1720
out.write(">"); // NOI18N
1721
out.write(_GenerateInterfaces ? "true" : "false");
1722            out.write("</generateInterfaces>\n"); // NOI18N
1723
}
1724        if (_isSet_KeepElementPositions) {
1725            out.write(nextIndent);
1726            out.write("<keepElementPositions"); // NOI18N
1727
out.write(">"); // NOI18N
1728
out.write(_KeepElementPositions ? "true" : "false");
1729            out.write("</keepElementPositions>\n"); // NOI18N
1730
}
1731        if (_isSet_RemoveUnreferencedNodes) {
1732            out.write(nextIndent);
1733            out.write("<removeUnreferencedNodes"); // NOI18N
1734
out.write(">"); // NOI18N
1735
out.write(_RemoveUnreferencedNodes ? "true" : "false");
1736            out.write("</removeUnreferencedNodes>\n"); // NOI18N
1737
}
1738        if (_InputURI != null) {
1739            out.write(nextIndent);
1740            out.write("<inputURI"); // NOI18N
1741
out.write(">"); // NOI18N
1742
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _InputURI, false);
1743            out.write("</inputURI>\n"); // NOI18N
1744
}
1745        if (_IndexedPropertyType != null) {
1746            out.write(nextIndent);
1747            out.write("<indexedPropertyType"); // NOI18N
1748
out.write(">"); // NOI18N
1749
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _IndexedPropertyType, false);
1750            out.write("</indexedPropertyType>\n"); // NOI18N
1751
}
1752        if (_isSet_DoCompile) {
1753            out.write(nextIndent);
1754            out.write("<doCompile"); // NOI18N
1755
out.write(">"); // NOI18N
1756
out.write(_DoCompile ? "true" : "false");
1757            out.write("</doCompile>\n"); // NOI18N
1758
}
1759        if (_isSet_GenerateSwitches) {
1760            out.write(nextIndent);
1761            out.write("<generateSwitches"); // NOI18N
1762
out.write(">"); // NOI18N
1763
out.write(_GenerateSwitches ? "true" : "false");
1764            out.write("</generateSwitches>\n"); // NOI18N
1765
}
1766        if (_DumpBeanTree != null) {
1767            out.write(nextIndent);
1768            out.write("<dumpBeanTree"); // NOI18N
1769
out.write(">"); // NOI18N
1770
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _DumpBeanTree.toString(), false);
1771            out.write("</dumpBeanTree>\n"); // NOI18N
1772
}
1773        if (_GenerateDotGraph != null) {
1774            out.write(nextIndent);
1775            out.write("<generateDotGraph"); // NOI18N
1776
out.write(">"); // NOI18N
1777
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _GenerateDotGraph.toString(), false);
1778            out.write("</generateDotGraph>\n"); // NOI18N
1779
}
1780        if (_isSet_ProcessComments) {
1781            out.write(nextIndent);
1782            out.write("<processComments"); // NOI18N
1783
out.write(">"); // NOI18N
1784
out.write(_ProcessComments ? "true" : "false");
1785            out.write("</processComments>\n"); // NOI18N
1786
}
1787        if (_isSet_ProcessDocType) {
1788            out.write(nextIndent);
1789            out.write("<processDocType"); // NOI18N
1790
out.write(">"); // NOI18N
1791
out.write(_ProcessDocType ? "true" : "false");
1792            out.write("</processDocType>\n"); // NOI18N
1793
}
1794        if (_isSet_CheckUpToDate) {
1795            out.write(nextIndent);
1796            out.write("<checkUpToDate"); // NOI18N
1797
out.write(">"); // NOI18N
1798
out.write(_CheckUpToDate ? "true" : "false");
1799            out.write("</checkUpToDate>\n"); // NOI18N
1800
}
1801        if (_isSet_GenerateParentRefs) {
1802            out.write(nextIndent);
1803            out.write("<generateParentRefs"); // NOI18N
1804
out.write(">"); // NOI18N
1805
out.write(_GenerateParentRefs ? "true" : "false");
1806            out.write("</generateParentRefs>\n"); // NOI18N
1807
}
1808        if (_isSet_GenerateHasChanged) {
1809            out.write(nextIndent);
1810            out.write("<generateHasChanged"); // NOI18N
1811
out.write(">"); // NOI18N
1812
out.write(_GenerateHasChanged ? "true" : "false");
1813            out.write("</generateHasChanged>\n"); // NOI18N
1814
}
1815        if (_isSet_NewestSourceTime) {
1816            out.write(nextIndent);
1817            out.write("<newestSourceTime"); // NOI18N
1818
out.write(">"); // NOI18N
1819
out.write(""+_NewestSourceTime);
1820            out.write("</newestSourceTime>\n"); // NOI18N
1821
}
1822        if (_WriteBeanGraphFile != null) {
1823            out.write(nextIndent);
1824            out.write("<writeBeanGraphFile"); // NOI18N
1825
out.write(">"); // NOI18N
1826
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _WriteBeanGraphFile.toString(), false);
1827            out.write("</writeBeanGraphFile>\n"); // NOI18N
1828
}
1829        for (java.util.Iterator JavaDoc it = _ReadBeanGraphFiles.iterator();
1830            it.hasNext(); ) {
1831            java.io.File JavaDoc element = (java.io.File JavaDoc)it.next();
1832            if (element != null) {
1833                out.write(nextIndent);
1834                out.write("<readBeanGraphFiles"); // NOI18N
1835
out.write(">"); // NOI18N
1836
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, element.toString(), false);
1837                out.write("</readBeanGraphFiles>\n"); // NOI18N
1838
}
1839        }
1840        for (java.util.Iterator JavaDoc it = _ReadBeanGraphs.iterator();
1841            it.hasNext(); ) {
1842            org.netbeans.modules.schema2beansdev.beangraph.BeanGraph element = (org.netbeans.modules.schema2beansdev.beangraph.BeanGraph)it.next();
1843            if (element != null) {
1844                out.write(nextIndent);
1845                out.write("<readBeanGraphs"); // NOI18N
1846
out.write(">"); // NOI18N
1847
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, element.toString(), false);
1848                out.write("</readBeanGraphs>\n"); // NOI18N
1849
}
1850        }
1851        if (_isSet_MinFeatures) {
1852            out.write(nextIndent);
1853            out.write("<minFeatures"); // NOI18N
1854
out.write(">"); // NOI18N
1855
out.write(_MinFeatures ? "true" : "false");
1856            out.write("</minFeatures>\n"); // NOI18N
1857
}
1858        if (_isSet_ForME) {
1859            out.write(nextIndent);
1860            out.write("<forME"); // NOI18N
1861
out.write(">"); // NOI18N
1862
out.write(_ForME ? "true" : "false");
1863            out.write("</forME>\n"); // NOI18N
1864
}
1865        if (_isSet_GenerateTagsFile) {
1866            out.write(nextIndent);
1867            out.write("<generateTagsFile"); // NOI18N
1868
out.write(">"); // NOI18N
1869
out.write(_GenerateTagsFile ? "true" : "false");
1870            out.write("</generateTagsFile>\n"); // NOI18N
1871
}
1872        if (_CodeGeneratorFactory != null) {
1873            out.write(nextIndent);
1874            out.write("<codeGeneratorFactory"); // NOI18N
1875
out.write(">"); // NOI18N
1876
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _CodeGeneratorFactory.toString(), false);
1877            out.write("</codeGeneratorFactory>\n"); // NOI18N
1878
}
1879        if (_isSet_GenerateTimeStamp) {
1880            out.write(nextIndent);
1881            out.write("<generateTimeStamp"); // NOI18N
1882
out.write(">"); // NOI18N
1883
out.write(_GenerateTimeStamp ? "true" : "false");
1884            out.write("</generateTimeStamp>\n"); // NOI18N
1885
}
1886        if (_isSet_Quiet) {
1887            out.write(nextIndent);
1888            out.write("<quiet"); // NOI18N
1889
out.write(">"); // NOI18N
1890
out.write(_Quiet ? "true" : "false");
1891            out.write("</quiet>\n"); // NOI18N
1892
}
1893        if (_WriteConfig != null) {
1894            out.write(nextIndent);
1895            out.write("<writeConfig"); // NOI18N
1896
out.write(">"); // NOI18N
1897
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _WriteConfig.toString(), false);
1898            out.write("</writeConfig>\n"); // NOI18N
1899
}
1900        for (java.util.Iterator JavaDoc it = _ReadConfig.iterator(); it.hasNext();
1901            ) {
1902            java.io.File JavaDoc element = (java.io.File JavaDoc)it.next();
1903            if (element != null) {
1904                out.write(nextIndent);
1905                out.write("<readConfig"); // NOI18N
1906
out.write(">"); // NOI18N
1907
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, element.toString(), false);
1908                out.write("</readConfig>\n"); // NOI18N
1909
}
1910        }
1911        if (_isSet_MakeDefaults) {
1912            out.write(nextIndent);
1913            out.write("<makeDefaults"); // NOI18N
1914
out.write(">"); // NOI18N
1915
out.write(_MakeDefaults ? "true" : "false");
1916            out.write("</makeDefaults>\n"); // NOI18N
1917
}
1918        if (_isSet_SetDefaults) {
1919            out.write(nextIndent);
1920            out.write("<setDefaults"); // NOI18N
1921
out.write(">"); // NOI18N
1922
out.write(_SetDefaults ? "true" : "false");
1923            out.write("</setDefaults>\n"); // NOI18N
1924
}
1925        if (_isSet_TrimNonStrings) {
1926            out.write(nextIndent);
1927            out.write("<trimNonStrings"); // NOI18N
1928
out.write(">"); // NOI18N
1929
out.write(_TrimNonStrings ? "true" : "false");
1930            out.write("</trimNonStrings>\n"); // NOI18N
1931
}
1932        if (_isSet_UseRuntime) {
1933            out.write(nextIndent);
1934            out.write("<useRuntime"); // NOI18N
1935
out.write(">"); // NOI18N
1936
out.write(_UseRuntime ? "true" : "false");
1937            out.write("</useRuntime>\n"); // NOI18N
1938
}
1939        if (_isSet_ExtendBaseBean) {
1940            out.write(nextIndent);
1941            out.write("<extendBaseBean"); // NOI18N
1942
out.write(">"); // NOI18N
1943
out.write(_ExtendBaseBean ? "true" : "false");
1944            out.write("</extendBaseBean>\n"); // NOI18N
1945
}
1946        for (java.util.Iterator JavaDoc it = _Finder.iterator(); it.hasNext(); ) {
1947            java.lang.String JavaDoc element = (java.lang.String JavaDoc)it.next();
1948            if (element != null) {
1949                out.write(nextIndent);
1950                out.write("<finder"); // NOI18N
1951
out.write(">"); // NOI18N
1952
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, element, false);
1953                out.write("</finder>\n"); // NOI18N
1954
}
1955        }
1956        if (_Target != null) {
1957            out.write(nextIndent);
1958            out.write("<target"); // NOI18N
1959
out.write(">"); // NOI18N
1960
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _Target, false);
1961            out.write("</target>\n"); // NOI18N
1962
}
1963        if (_isSet_StaxProduceXMLEventReader) {
1964            out.write(nextIndent);
1965            out.write("<staxProduceXMLEventReader"); // NOI18N
1966
out.write(">"); // NOI18N
1967
out.write(_StaxProduceXMLEventReader ? "true" : "false");
1968            out.write("</staxProduceXMLEventReader>\n"); // NOI18N
1969
}
1970        if (_isSet_StaxUseXMLEventReader) {
1971            out.write(nextIndent);
1972            out.write("<staxUseXMLEventReader"); // NOI18N
1973
out.write(">"); // NOI18N
1974
out.write(_StaxUseXMLEventReader ? "true" : "false");
1975            out.write("</staxUseXMLEventReader>\n"); // NOI18N
1976
}
1977        if (_isSet_OptionalScalars) {
1978            out.write(nextIndent);
1979            out.write("<optionalScalars"); // NOI18N
1980
out.write(">"); // NOI18N
1981
out.write(_OptionalScalars ? "true" : "false");
1982            out.write("</optionalScalars>\n"); // NOI18N
1983
}
1984        if (_DefaultElementType != null) {
1985            out.write(nextIndent);
1986            out.write("<defaultElementType"); // NOI18N
1987
out.write(">"); // NOI18N
1988
org.netbeans.modules.schema2beansdev.S2bConfig.writeXML(out, _DefaultElementType, false);
1989            out.write("</defaultElementType>\n"); // NOI18N
1990
}
1991        if (_isSet_RespectExtension) {
1992            out.write(nextIndent);
1993            out.write("<respectExtension"); // NOI18N
1994
out.write(">"); // NOI18N
1995
out.write(_RespectExtension ? "true" : "false");
1996            out.write("</respectExtension>\n"); // NOI18N
1997
}
1998        if (_isSet_LogSuspicious) {
1999            out.write(nextIndent);
2000            out.write("<logSuspicious"); // NOI18N
2001
out.write(">"); // NOI18N
2002
out.write(_LogSuspicious ? "true" : "false");
2003            out.write("</logSuspicious>\n"); // NOI18N
2004
}
2005    }
2006
2007    public static S2bConfig read(java.io.File JavaDoc f) throws javax.xml.parsers.ParserConfigurationException JavaDoc, org.xml.sax.SAXException JavaDoc, java.io.IOException JavaDoc {
2008        java.io.InputStream JavaDoc in = new java.io.FileInputStream JavaDoc(f);
2009        try {
2010            return read(in);
2011        } finally {
2012            in.close();
2013        }
2014    }
2015
2016    public static S2bConfig read(java.io.InputStream JavaDoc in) throws javax.xml.parsers.ParserConfigurationException JavaDoc, org.xml.sax.SAXException JavaDoc, java.io.IOException JavaDoc {
2017        return read(new org.xml.sax.InputSource JavaDoc(in), false, null, null);
2018    }
2019
2020    /**
2021     * Warning: in readNoEntityResolver character and entity references will
2022     * not be read from any DTD in the XML source.
2023     * However, this way is faster since no DTDs are looked up
2024     * (possibly skipping network access) or parsed.
2025     */

2026    public static S2bConfig readNoEntityResolver(java.io.InputStream JavaDoc in) throws javax.xml.parsers.ParserConfigurationException JavaDoc, org.xml.sax.SAXException JavaDoc, java.io.IOException JavaDoc {
2027        return read(new org.xml.sax.InputSource JavaDoc(in), false,
2028            new org.xml.sax.EntityResolver JavaDoc() {
2029            public org.xml.sax.InputSource JavaDoc resolveEntity(String JavaDoc publicId, String JavaDoc systemId) {
2030                java.io.ByteArrayInputStream JavaDoc bin = new java.io.ByteArrayInputStream JavaDoc(new byte[0]);
2031                return new org.xml.sax.InputSource JavaDoc(bin);
2032            }
2033        }
2034            , null);
2035    }
2036
2037    public static S2bConfig read(org.xml.sax.InputSource JavaDoc in, boolean validate, org.xml.sax.EntityResolver JavaDoc er, org.xml.sax.ErrorHandler JavaDoc eh) throws javax.xml.parsers.ParserConfigurationException JavaDoc, org.xml.sax.SAXException JavaDoc, java.io.IOException JavaDoc {
2038        javax.xml.parsers.DocumentBuilderFactory JavaDoc dbf = javax.xml.parsers.DocumentBuilderFactory.newInstance();
2039        dbf.setValidating(validate);
2040        dbf.setNamespaceAware(true);
2041        javax.xml.parsers.DocumentBuilder JavaDoc db = dbf.newDocumentBuilder();
2042        if (er != null) db.setEntityResolver(er);
2043        if (eh != null) db.setErrorHandler(eh);
2044        org.w3c.dom.Document JavaDoc doc = db.parse(in);
2045        return read(doc);
2046    }
2047
2048    public static S2bConfig read(org.w3c.dom.Document JavaDoc document) {
2049        S2bConfig aS2bConfig = new S2bConfig();
2050        aS2bConfig.readFromDocument(document);
2051        return aS2bConfig;
2052    }
2053
2054    protected void readFromDocument(org.w3c.dom.Document JavaDoc document) {
2055        readNode(document.getDocumentElement());
2056    }
2057
2058    public void readNode(org.w3c.dom.Node JavaDoc node) {
2059        readNode(node, new java.util.HashMap JavaDoc());
2060    }
2061
2062    public void readNode(org.w3c.dom.Node JavaDoc node, java.util.Map JavaDoc namespacePrefixes) {
2063        if (node.hasAttributes()) {
2064            org.w3c.dom.NamedNodeMap JavaDoc attrs = node.getAttributes();
2065            org.w3c.dom.Attr JavaDoc attr;
2066            java.lang.String JavaDoc attrValue;
2067            boolean firstNamespaceDef = true;
2068            for (int attrNum = 0; attrNum < attrs.getLength(); ++attrNum) {
2069                attr = (org.w3c.dom.Attr JavaDoc) attrs.item(attrNum);
2070                String JavaDoc attrName = attr.getName();
2071                if (attrName.startsWith("xmlns:")) {
2072                    if (firstNamespaceDef) {
2073                        firstNamespaceDef = false;
2074                        // Dup prefix map, so as to not write over previous values, and to make it easy to clear out our entries.
2075
namespacePrefixes = new java.util.HashMap JavaDoc(namespacePrefixes);
2076                    }
2077                    String JavaDoc attrNSPrefix = attrName.substring(6, attrName.length());
2078                    namespacePrefixes.put(attrNSPrefix, attr.getValue());
2079                }
2080            }
2081            String JavaDoc xsiPrefix = "xsi";
2082            for (java.util.Iterator JavaDoc it = namespacePrefixes.keySet().iterator();
2083                it.hasNext(); ) {
2084                String JavaDoc prefix = (String JavaDoc) it.next();
2085                String JavaDoc ns = (String JavaDoc) namespacePrefixes.get(prefix);
2086                if ("http://www.w3.org/2001/XMLSchema-instance".equals(ns)) {
2087                    xsiPrefix = prefix;
2088                    break;
2089                }
2090            }
2091            attr = (org.w3c.dom.Attr JavaDoc) attrs.getNamedItem(""+xsiPrefix+":schemaLocation");
2092            if (attr != null) {
2093                attrValue = attr.getValue();
2094                schemaLocation = attrValue;
2095            }
2096            readNodeAttributes(node, namespacePrefixes, attrs);
2097        }
2098        readNodeChildren(node, namespacePrefixes);
2099    }
2100
2101    protected void readNodeAttributes(org.w3c.dom.Node JavaDoc node, java.util.Map JavaDoc namespacePrefixes, org.w3c.dom.NamedNodeMap JavaDoc attrs) {
2102        org.w3c.dom.Attr JavaDoc attr;
2103        java.lang.String JavaDoc attrValue;
2104    }
2105
2106    protected void readNodeChildren(org.w3c.dom.Node JavaDoc node, java.util.Map JavaDoc namespacePrefixes) {
2107        org.w3c.dom.NodeList JavaDoc children = node.getChildNodes();
2108        for (int i = 0, size = children.getLength(); i < size; ++i) {
2109            org.w3c.dom.Node JavaDoc childNode = children.item(i);
2110            String JavaDoc childNodeName = (childNode.getLocalName() == null ? childNode.getNodeName().intern() : childNode.getLocalName().intern());
2111            String JavaDoc childNodeValue = "";
2112            if (childNode.getFirstChild() != null) {
2113                childNodeValue = childNode.getFirstChild().getNodeValue();
2114            }
2115            if (childNodeName == "schemaType") {
2116                _SchemaType = childNodeValue;
2117            }
2118            else if (childNodeName == "traceParse") {
2119                if (childNode.getFirstChild() == null)
2120                    _TraceParse = true;
2121                else
2122                    _TraceParse = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2123                _isSet_TraceParse = true;
2124            }
2125            else if (childNodeName == "traceGen") {
2126                if (childNode.getFirstChild() == null)
2127                    _TraceGen = true;
2128                else
2129                    _TraceGen = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2130                _isSet_TraceGen = true;
2131            }
2132            else if (childNodeName == "traceMisc") {
2133                if (childNode.getFirstChild() == null)
2134                    _TraceMisc = true;
2135                else
2136                    _TraceMisc = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2137                _isSet_TraceMisc = true;
2138            }
2139            else if (childNodeName == "traceDot") {
2140                if (childNode.getFirstChild() == null)
2141                    _TraceDot = true;
2142                else
2143                    _TraceDot = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2144                _isSet_TraceDot = true;
2145            }
2146            else if (childNodeName == "filename") {
2147                _Filename = new java.io.File JavaDoc(childNodeValue);
2148            }
2149            else if (childNodeName == "fileIn") {
2150                // Don't know how to create a java.io.InputStream
2151
}
2152            else if (childNodeName == "docRoot") {
2153                _DocRoot = childNodeValue;
2154            }
2155            else if (childNodeName == "rootDir") {
2156                _RootDir = new java.io.File JavaDoc(childNodeValue);
2157            }
2158            else if (childNodeName == "packagePath") {
2159                _PackagePath = childNodeValue;
2160            }
2161            else if (childNodeName == "indent") {
2162                _Indent = childNodeValue;
2163            }
2164            else if (childNodeName == "indentAmount") {
2165                _IndentAmount = Integer.parseInt(childNodeValue);
2166                _isSet_IndentAmount = true;
2167            }
2168            else if (childNodeName == "mddFile") {
2169                _MddFile = new java.io.File JavaDoc(childNodeValue);
2170            }
2171            else if (childNodeName == "mddIn") {
2172                // Don't know how to create a java.io.InputStream
2173
}
2174            else if (childNodeName == "metaDD") {
2175                // Don't know how to create a org.netbeans.modules.schema2beansdev.metadd.MetaDD
2176
}
2177            else if (childNodeName == "doGeneration") {
2178                if (childNode.getFirstChild() == null)
2179                    _DoGeneration = true;
2180                else
2181                    _DoGeneration = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2182                _isSet_DoGeneration = true;
2183            }
2184            else if (childNodeName == "scalarException") {
2185                if (childNode.getFirstChild() == null)
2186                    _ScalarException = true;
2187                else
2188                    _ScalarException = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2189                _isSet_ScalarException = true;
2190            }
2191            else if (childNodeName == "dumpToString") {
2192                if (childNode.getFirstChild() == null)
2193                    _DumpToString = true;
2194                else
2195                    _DumpToString = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2196                _isSet_DumpToString = true;
2197            }
2198            else if (childNodeName == "vetoable") {
2199                if (childNode.getFirstChild() == null)
2200                    _Vetoable = true;
2201                else
2202                    _Vetoable = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2203                _isSet_Vetoable = true;
2204            }
2205            else if (childNodeName == "standalone") {
2206                if (childNode.getFirstChild() == null)
2207                    _Standalone = true;
2208                else
2209                    _Standalone = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2210                _isSet_Standalone = true;
2211            }
2212            else if (childNodeName == "auto") {
2213                if (childNode.getFirstChild() == null)
2214                    _Auto = true;
2215                else
2216                    _Auto = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2217                _isSet_Auto = true;
2218            }
2219            else if (childNodeName == "messageOut") {
2220                // Don't know how to create a java.io.PrintStream
2221
}
2222            else if (childNodeName == "outputStreamProvider") {
2223                // Don't know how to create a org.netbeans.modules.schema2beansdev.GenBeans.OutputStreamProvider
2224
}
2225            else if (childNodeName == "throwErrors") {
2226                if (childNode.getFirstChild() == null)
2227                    _ThrowErrors = true;
2228                else
2229                    _ThrowErrors = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2230                _isSet_ThrowErrors = true;
2231            }
2232            else if (childNodeName == "generateXMLIO") {
2233                if (childNode.getFirstChild() == null)
2234                    _GenerateXMLIO = true;
2235                else
2236                    _GenerateXMLIO = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2237                _isSet_GenerateXMLIO = true;
2238            }
2239            else if (childNodeName == "generateValidate") {
2240                if (childNode.getFirstChild() == null)
2241                    _GenerateValidate = true;
2242                else
2243                    _GenerateValidate = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2244                _isSet_GenerateValidate = true;
2245            }
2246            else if (childNodeName == "generatePropertyEvents") {
2247                if (childNode.getFirstChild() == null)
2248                    _GeneratePropertyEvents = true;
2249                else
2250                    _GeneratePropertyEvents = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2251                _isSet_GeneratePropertyEvents = true;
2252            }
2253            else if (childNodeName == "generateStoreEvents") {
2254                if (childNode.getFirstChild() == null)
2255                    _GenerateStoreEvents = true;
2256                else
2257                    _GenerateStoreEvents = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2258                _isSet_GenerateStoreEvents = true;
2259            }
2260            else if (childNodeName == "generateTransactions") {
2261                if (childNode.getFirstChild() == null)
2262                    _GenerateTransactions = true;
2263                else
2264                    _GenerateTransactions = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2265                _isSet_GenerateTransactions = true;
2266            }
2267            else if (childNodeName == "attributesAsProperties") {
2268                if (childNode.getFirstChild() == null)
2269                    _AttributesAsProperties = true;
2270                else
2271                    _AttributesAsProperties = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2272                _isSet_AttributesAsProperties = true;
2273            }
2274            else if (childNodeName == "generateDelegator") {
2275                if (childNode.getFirstChild() == null)
2276                    _GenerateDelegator = true;
2277                else
2278                    _GenerateDelegator = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2279                _isSet_GenerateDelegator = true;
2280            }
2281            else if (childNodeName == "delegateDir") {
2282                _DelegateDir = new java.io.File JavaDoc(childNodeValue);
2283            }
2284            else if (childNodeName == "delegatePackage") {
2285                _DelegatePackage = childNodeValue;
2286            }
2287            else if (childNodeName == "generateCommonInterface") {
2288                _GenerateCommonInterface = childNodeValue;
2289            }
2290            else if (childNodeName == "defaultsAccessable") {
2291                if (childNode.getFirstChild() == null)
2292                    _DefaultsAccessable = true;
2293                else
2294                    _DefaultsAccessable = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2295                _isSet_DefaultsAccessable = true;
2296            }
2297            else if (childNodeName == "useInterfaces") {
2298                if (childNode.getFirstChild() == null)
2299                    _UseInterfaces = true;
2300                else
2301                    _UseInterfaces = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2302                _isSet_UseInterfaces = true;
2303            }
2304            else if (childNodeName == "generateInterfaces") {
2305                if (childNode.getFirstChild() == null)
2306                    _GenerateInterfaces = true;
2307                else
2308                    _GenerateInterfaces = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2309                _isSet_GenerateInterfaces = true;
2310            }
2311            else if (childNodeName == "keepElementPositions") {
2312                if (childNode.getFirstChild() == null)
2313                    _KeepElementPositions = true;
2314                else
2315                    _KeepElementPositions = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2316                _isSet_KeepElementPositions = true;
2317            }
2318            else if (childNodeName == "removeUnreferencedNodes") {
2319                if (childNode.getFirstChild() == null)
2320                    _RemoveUnreferencedNodes = true;
2321                else
2322                    _RemoveUnreferencedNodes = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2323                _isSet_RemoveUnreferencedNodes = true;
2324            }
2325            else if (childNodeName == "inputURI") {
2326                _InputURI = childNodeValue;
2327            }
2328            else if (childNodeName == "indexedPropertyType") {
2329                _IndexedPropertyType = childNodeValue;
2330            }
2331            else if (childNodeName == "doCompile") {
2332                if (childNode.getFirstChild() == null)
2333                    _DoCompile = true;
2334                else
2335                    _DoCompile = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2336                _isSet_DoCompile = true;
2337            }
2338            else if (childNodeName == "generateSwitches") {
2339                if (childNode.getFirstChild() == null)
2340                    _GenerateSwitches = true;
2341                else
2342                    _GenerateSwitches = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2343                _isSet_GenerateSwitches = true;
2344            }
2345            else if (childNodeName == "dumpBeanTree") {
2346                _DumpBeanTree = new java.io.File JavaDoc(childNodeValue);
2347            }
2348            else if (childNodeName == "generateDotGraph") {
2349                _GenerateDotGraph = new java.io.File JavaDoc(childNodeValue);
2350            }
2351            else if (childNodeName == "processComments") {
2352                if (childNode.getFirstChild() == null)
2353                    _ProcessComments = true;
2354                else
2355                    _ProcessComments = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2356                _isSet_ProcessComments = true;
2357            }
2358            else if (childNodeName == "processDocType") {
2359                if (childNode.getFirstChild() == null)
2360                    _ProcessDocType = true;
2361                else
2362                    _ProcessDocType = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2363                _isSet_ProcessDocType = true;
2364            }
2365            else if (childNodeName == "checkUpToDate") {
2366                if (childNode.getFirstChild() == null)
2367                    _CheckUpToDate = true;
2368                else
2369                    _CheckUpToDate = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2370                _isSet_CheckUpToDate = true;
2371            }
2372            else if (childNodeName == "generateParentRefs") {
2373                if (childNode.getFirstChild() == null)
2374                    _GenerateParentRefs = true;
2375                else
2376                    _GenerateParentRefs = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2377                _isSet_GenerateParentRefs = true;
2378            }
2379            else if (childNodeName == "generateHasChanged") {
2380                if (childNode.getFirstChild() == null)
2381                    _GenerateHasChanged = true;
2382                else
2383                    _GenerateHasChanged = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2384                _isSet_GenerateHasChanged = true;
2385            }
2386            else if (childNodeName == "newestSourceTime") {
2387                _NewestSourceTime = Long.parseLong(childNodeValue);
2388                _isSet_NewestSourceTime = true;
2389            }
2390            else if (childNodeName == "writeBeanGraphFile") {
2391                _WriteBeanGraphFile = new java.io.File JavaDoc(childNodeValue);
2392            }
2393            else if (childNodeName == "readBeanGraphFiles") {
2394                java.io.File JavaDoc aReadBeanGraphFiles;
2395                aReadBeanGraphFiles = new java.io.File JavaDoc(childNodeValue);
2396                _ReadBeanGraphFiles.add(aReadBeanGraphFiles);
2397            }
2398            else if (childNodeName == "readBeanGraphs") {
2399                org.netbeans.modules.schema2beansdev.beangraph.BeanGraph aReadBeanGraphs;
2400                // Don't know how to create a org.netbeans.modules.schema2beansdev.beangraph.BeanGraph
2401
}
2402            else if (childNodeName == "minFeatures") {
2403                if (childNode.getFirstChild() == null)
2404                    _MinFeatures = true;
2405                else
2406                    _MinFeatures = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2407                _isSet_MinFeatures = true;
2408            }
2409            else if (childNodeName == "forME") {
2410                if (childNode.getFirstChild() == null)
2411                    _ForME = true;
2412                else
2413                    _ForME = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2414                _isSet_ForME = true;
2415            }
2416            else if (childNodeName == "generateTagsFile") {
2417                if (childNode.getFirstChild() == null)
2418                    _GenerateTagsFile = true;
2419                else
2420                    _GenerateTagsFile = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2421                _isSet_GenerateTagsFile = true;
2422            }
2423            else if (childNodeName == "codeGeneratorFactory") {
2424                // Don't know how to create a org.netbeans.modules.schema2beansdev.CodeGeneratorFactory
2425
}
2426            else if (childNodeName == "generateTimeStamp") {
2427                if (childNode.getFirstChild() == null)
2428                    _GenerateTimeStamp = true;
2429                else
2430                    _GenerateTimeStamp = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2431                _isSet_GenerateTimeStamp = true;
2432            }
2433            else if (childNodeName == "quiet") {
2434                if (childNode.getFirstChild() == null)
2435                    _Quiet = true;
2436                else
2437                    _Quiet = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2438                _isSet_Quiet = true;
2439            }
2440            else if (childNodeName == "writeConfig") {
2441                _WriteConfig = new java.io.File JavaDoc(childNodeValue);
2442            }
2443            else if (childNodeName == "readConfig") {
2444                java.io.File JavaDoc aReadConfig;
2445                aReadConfig = new java.io.File JavaDoc(childNodeValue);
2446                _ReadConfig.add(aReadConfig);
2447            }
2448            else if (childNodeName == "makeDefaults") {
2449                if (childNode.getFirstChild() == null)
2450                    _MakeDefaults = true;
2451                else
2452                    _MakeDefaults = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2453                _isSet_MakeDefaults = true;
2454            }
2455            else if (childNodeName == "setDefaults") {
2456                if (childNode.getFirstChild() == null)
2457                    _SetDefaults = true;
2458                else
2459                    _SetDefaults = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2460                _isSet_SetDefaults = true;
2461            }
2462            else if (childNodeName == "trimNonStrings") {
2463                if (childNode.getFirstChild() == null)
2464                    _TrimNonStrings = true;
2465                else
2466                    _TrimNonStrings = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2467                _isSet_TrimNonStrings = true;
2468            }
2469            else if (childNodeName == "useRuntime") {
2470                if (childNode.getFirstChild() == null)
2471                    _UseRuntime = true;
2472                else
2473                    _UseRuntime = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2474                _isSet_UseRuntime = true;
2475            }
2476            else if (childNodeName == "extendBaseBean") {
2477                if (childNode.getFirstChild() == null)
2478                    _ExtendBaseBean = true;
2479                else
2480                    _ExtendBaseBean = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2481                _isSet_ExtendBaseBean = true;
2482            }
2483            else if (childNodeName == "finder") {
2484                java.lang.String JavaDoc aFinder;
2485                aFinder = childNodeValue;
2486                _Finder.add(aFinder);
2487            }
2488            else if (childNodeName == "target") {
2489                _Target = childNodeValue;
2490            }
2491            else if (childNodeName == "staxProduceXMLEventReader") {
2492                if (childNode.getFirstChild() == null)
2493                    _StaxProduceXMLEventReader = true;
2494                else
2495                    _StaxProduceXMLEventReader = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2496                _isSet_StaxProduceXMLEventReader = true;
2497            }
2498            else if (childNodeName == "staxUseXMLEventReader") {
2499                if (childNode.getFirstChild() == null)
2500                    _StaxUseXMLEventReader = true;
2501                else
2502                    _StaxUseXMLEventReader = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2503                _isSet_StaxUseXMLEventReader = true;
2504            }
2505            else if (childNodeName == "optionalScalars") {
2506                if (childNode.getFirstChild() == null)
2507                    _OptionalScalars = true;
2508                else
2509                    _OptionalScalars = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2510                _isSet_OptionalScalars = true;
2511            }
2512            else if (childNodeName == "defaultElementType") {
2513                _DefaultElementType = childNodeValue;
2514            }
2515            else if (childNodeName == "respectExtension") {
2516                if (childNode.getFirstChild() == null)
2517                    _RespectExtension = true;
2518                else
2519                    _RespectExtension = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2520                _isSet_RespectExtension = true;
2521            }
2522            else if (childNodeName == "logSuspicious") {
2523                if (childNode.getFirstChild() == null)
2524                    _LogSuspicious = true;
2525                else
2526                    _LogSuspicious = java.lang.Boolean.valueOf(childNodeValue).booleanValue();
2527                _isSet_LogSuspicious = true;
2528            }
2529            else {
2530                // Found extra unrecognized childNode
2531
}
2532        }
2533    }
2534
2535    /**
2536     * Takes some text to be printed into an XML stream and escapes any
2537     * characters that might make it invalid XML (like '<').
2538     */

2539    public static void writeXML(java.io.Writer JavaDoc out, String JavaDoc msg) throws java.io.IOException JavaDoc {
2540        writeXML(out, msg, true);
2541    }
2542
2543    public static void writeXML(java.io.Writer JavaDoc out, String JavaDoc msg, boolean attribute) throws java.io.IOException JavaDoc {
2544        if (msg == null)
2545            return;
2546        int msgLength = msg.length();
2547        for (int i = 0; i < msgLength; ++i) {
2548            char c = msg.charAt(i);
2549            writeXML(out, c, attribute);
2550        }
2551    }
2552
2553    public static void writeXML(java.io.Writer JavaDoc out, char msg, boolean attribute) throws java.io.IOException JavaDoc {
2554        if (msg == '&')
2555            out.write("&amp;");
2556        else if (msg == '<')
2557            out.write("&lt;");
2558        else if (msg == '>')
2559            out.write("&gt;");
2560        else if (attribute) {
2561            if (msg == '"')
2562                out.write("&quot;");
2563            else if (msg == '\'')
2564                out.write("&apos;");
2565            else if (msg == '\n')
2566                out.write("&#xA;");
2567            else if (msg == '\t')
2568                out.write("&#x9;");
2569            else
2570                out.write(msg);
2571        }
2572        else
2573            out.write(msg);
2574    }
2575
2576    public static class ValidateException extends Exception JavaDoc {
2577        private java.lang.Object JavaDoc failedBean;
2578        private String JavaDoc failedPropertyName;
2579        private FailureType failureType;
2580        public ValidateException(String JavaDoc msg, String JavaDoc failedPropertyName, java.lang.Object JavaDoc failedBean) {
2581            super(msg);
2582            this.failedBean = failedBean;
2583            this.failedPropertyName = failedPropertyName;
2584        }
2585        public ValidateException(String JavaDoc msg, FailureType ft, String JavaDoc failedPropertyName, java.lang.Object JavaDoc failedBean) {
2586            super(msg);
2587            this.failureType = ft;
2588            this.failedBean = failedBean;
2589            this.failedPropertyName = failedPropertyName;
2590        }
2591        public String JavaDoc getFailedPropertyName() {return failedPropertyName;}
2592        public FailureType getFailureType() {return failureType;}
2593        public java.lang.Object JavaDoc getFailedBean() {return failedBean;}
2594        public static class FailureType {
2595            private final String JavaDoc name;
2596            private FailureType(String JavaDoc name) {this.name = name;}
2597            public String JavaDoc toString() { return name;}
2598            public static final FailureType NULL_VALUE = new FailureType("NULL_VALUE");
2599            public static final FailureType DATA_RESTRICTION = new FailureType("DATA_RESTRICTION");
2600            public static final FailureType ENUM_RESTRICTION = new FailureType("ENUM_RESTRICTION");
2601            public static final FailureType ALL_RESTRICTIONS = new FailureType("ALL_RESTRICTIONS");
2602            public static final FailureType MUTUALLY_EXCLUSIVE = new FailureType("MUTUALLY_EXCLUSIVE");
2603        }
2604    }
2605
2606    public void validate() throws org.netbeans.modules.schema2beansdev.S2bConfig.ValidateException {
2607        boolean restrictionFailure = false;
2608        boolean restrictionPassed = false;
2609        // Validating property schemaType
2610
if (getSchemaType() == null) {
2611            throw new org.netbeans.modules.schema2beansdev.S2bConfig.ValidateException("getSchemaType() == null", org.netbeans.modules.schema2beansdev.S2bConfig.ValidateException.FailureType.NULL_VALUE, "schemaType", this); // NOI18N
2612
}
2613        // Validating property traceParse
2614
// Validating property traceGen
2615
// Validating property traceMisc
2616
// Validating property traceDot
2617
// Validating property filename
2618
// Validating property fileIn
2619
// Validating property docRoot
2620
// Validating property rootDir
2621
if (getRootDir() == null) {
2622            throw new org.netbeans.modules.schema2beansdev.S2bConfig.ValidateException("getRootDir() == null", org.netbeans.modules.schema2beansdev.S2bConfig.ValidateException.FailureType.NULL_VALUE, "rootDir", this); // NOI18N
2623
}
2624        // Validating property packagePath
2625
// Validating property indent
2626
if (getIndent() == null) {
2627            throw new org.netbeans.modules.schema2beansdev.S2bConfig.ValidateException("getIndent() == null", org.netbeans.modules.schema2beansdev.S2bConfig.ValidateException.FailureType.NULL_VALUE, "indent", this); // NOI18N
2628
}
2629        // Validating property indentAmount
2630
// Validating property mddFile
2631
// Validating property mddIn
2632
// Validating property metaDD
2633
// Validating property doGeneration
2634
// Validating property scalarException
2635
// Validating property dumpToString
2636
// Validating property vetoable
2637
// Validating property standalone
2638
// Validating property auto
2639
// Validating property messageOut
2640
// Validating property outputStreamProvider
2641
// Validating property throwErrors
2642
// Validating property generateXMLIO
2643
// Validating property generateValidate
2644
// Validating property generatePropertyEvents
2645
// Validating property generateStoreEvents
2646
// Validating property generateTransactions
2647
// Validating property attributesAsProperties
2648
// Validating property generateDelegator
2649
// Validating property delegateDir
2650
// Validating property delegatePackage
2651
// Validating property generateCommonInterface
2652
// Validating property defaultsAccessable
2653
// Validating property useInterfaces
2654
// Validating property generateInterfaces
2655
// Validating property keepElementPositions
2656
// Validating property removeUnreferencedNodes
2657
// Validating property inputURI
2658
// Validating property indexedPropertyType
2659
if (getIndexedPropertyType() == null) {
2660            throw new org.netbeans.modules.schema2beansdev.S2bConfig.ValidateException("getIndexedPropertyType() == null", org.netbeans.modules.schema2beansdev.S2bConfig.ValidateException.FailureType.NULL_VALUE, "indexedPropertyType", this); // NOI18N
2661
}
2662        // Validating property doCompile
2663
// Validating property generateSwitches
2664
// Validating property dumpBeanTree
2665
// Validating property generateDotGraph
2666
// Validating property processComments
2667
// Validating property processDocType
2668
// Validating property checkUpToDate
2669
// Validating property generateParentRefs
2670
// Validating property generateHasChanged
2671
// Validating property newestSourceTime
2672
// Validating property writeBeanGraphFile
2673
// Validating property readBeanGraphFiles
2674
// Validating property readBeanGraphs
2675
// Validating property minFeatures
2676
// Validating property forME
2677
// Validating property generateTagsFile
2678
// Validating property codeGeneratorFactory
2679
// Validating property generateTimeStamp
2680
// Validating property quiet
2681
// Validating property writeConfig
2682
// Validating property readConfig
2683
// Validating property makeDefaults
2684
// Validating property setDefaults
2685
// Validating property trimNonStrings
2686
// Validating property useRuntime
2687
// Validating property extendBaseBean
2688
// Validating property finder
2689
// Validating property target
2690
// Validating property staxProduceXMLEventReader
2691
// Validating property staxUseXMLEventReader
2692
// Validating property optionalScalars
2693
// Validating property defaultElementType
2694
// Validating property respectExtension
2695
// Validating property logSuspicious
2696
}
2697
2698    /**
2699     * @return true if error, then should display help
2700     */

2701    public boolean parseArguments(String JavaDoc[] args) {
2702        for (int argNum = 0, size = args.length; argNum < size; ++argNum) {
2703            String JavaDoc arg = args[argNum].toLowerCase().intern();
2704            if (arg == "-f") {
2705                if (argNum+1 >= size) {
2706                    missingArgument(args, arg);
2707                    continue;
2708                }
2709                setFilename(new java.io.File JavaDoc(args[++argNum]));
2710                continue;
2711            }
2712            if (arg == "-d") {
2713                if (argNum+1 >= size) {
2714                    missingArgument(args, arg);
2715                    continue;
2716                }
2717                setDocRoot(args[++argNum]);
2718                continue;
2719            }
2720            if (arg == "-r") {
2721                if (argNum+1 >= size) {
2722                    missingArgument(args, arg);
2723                    continue;
2724                }
2725                setRootDir(new java.io.File JavaDoc(args[++argNum]));
2726                continue;
2727            }
2728            if (arg == "-p") {
2729                if (argNum+1 >= size) {
2730                    missingArgument(args, arg);
2731                    continue;
2732                }
2733                setPackagePath(args[++argNum]);
2734                continue;
2735            }
2736            if (arg == "-sp") {
2737                if (argNum+1 >= size) {
2738                    missingArgument(args, arg);
2739                    continue;
2740                }
2741                setIndentAmount(Integer.parseInt(args[++argNum]));
2742                continue;
2743            }
2744            if (arg == "-mdd") {
2745                if (argNum+1 >= size) {
2746                    missingArgument(args, arg);
2747                    continue;
2748                }
2749                setMddFile(new java.io.File JavaDoc(args[++argNum]));
2750                continue;
2751            }
2752            if (arg == "-noe") {
2753                setScalarException(true);
2754                continue;
2755            }
2756            if (arg == "-nonoe") {
2757                setScalarException(false);
2758                continue;
2759            }
2760            if (arg == "-ts") {
2761                setDumpToString(true);
2762                continue;
2763            }
2764            if (arg == "-nots") {
2765                setDumpToString(false);
2766                continue;
2767            }
2768            if (arg == "-veto") {
2769                setVetoable(true);
2770                continue;
2771            }
2772            if (arg == "-noveto") {
2773                setVetoable(false);
2774                continue;
2775            }
2776            if (arg == "-st") {
2777                setStandalone(true);
2778                continue;
2779            }
2780            if (arg == "-nost") {
2781                setStandalone(false);
2782                continue;
2783            }
2784            if (arg == "-auto") {
2785                setAuto(true);
2786                continue;
2787            }
2788            if (arg == "-noauto") {
2789                setAuto(false);
2790                continue;
2791            }
2792            if (arg == "-throw") {
2793                setThrowErrors(true);
2794                continue;
2795            }
2796            if (arg == "-nothrow") {
2797                setThrowErrors(false);
2798                continue;
2799            }
2800            if (arg == "-validate") {
2801                setGenerateValidate(true);
2802                continue;
2803            }
2804            if (arg == "-novalidate") {
2805                setGenerateValidate(false);
2806                continue;
2807            }
2808            if (arg == "-propertyevents") {
2809                setGeneratePropertyEvents(true);
2810                continue;
2811            }
2812            if (arg == "-nopropertyevents") {
2813                setGeneratePropertyEvents(false);
2814                continue;
2815            }
2816            if (arg == "-transactions") {
2817                setGenerateTransactions(true);
2818                continue;
2819            }
2820            if (arg == "-notransactions") {
2821                setGenerateTransactions(false);
2822                continue;
2823            }
2824            if (arg == "-attrprop") {
2825                setAttributesAsProperties(true);
2826                continue;
2827            }
2828            if (arg == "-noattrprop") {
2829                setAttributesAsProperties(false);
2830                continue;
2831            }
2832            if (arg == "-delegator") {
2833                setGenerateDelegator(true);
2834                continue;
2835            }
2836            if (arg == "-nodelegator") {
2837                setGenerateDelegator(false);
2838                continue;
2839            }
2840            if (arg == "-delegatedir") {
2841                if (argNum+1 >= size) {
2842                    missingArgument(args, arg);
2843                    continue;
2844                }
2845                setDelegateDir(new java.io.File JavaDoc(args[++argNum]));
2846                continue;
2847            }
2848            if (arg == "-delegatepackage") {
2849                if (argNum+1 >= size) {
2850                    missingArgument(args, arg);
2851                    continue;
2852                }
2853                setDelegatePackage(args[++argNum]);
2854                continue;
2855            }
2856            if (arg == "-commoninterfacename") {
2857                if (argNum+1 >= size) {
2858                    missingArgument(args, arg);
2859                    continue;
2860                }
2861                setGenerateCommonInterface(args[++argNum]);
2862                continue;
2863            }
2864            if (arg == "-defaultsaccessable") {
2865                setDefaultsAccessable(true);
2866                continue;
2867            }
2868            if (arg == "-nodefaultsaccessable") {
2869                setDefaultsAccessable(false);
2870                continue;
2871            }
2872            if (arg == "-useinterfaces") {
2873                setUseInterfaces(true);
2874                continue;
2875            }
2876            if (arg == "-nouseinterfaces") {
2877                setUseInterfaces(false);
2878                continue;
2879            }
2880            if (arg == "-geninterfaces") {
2881                setGenerateInterfaces(true);
2882                continue;
2883            }
2884            if (arg == "-nogeninterfaces") {
2885                setGenerateInterfaces(false);
2886                continue;
2887            }
2888            if (arg == "-keepelementpositions") {
2889                setKeepElementPositions(true);
2890                continue;
2891            }
2892            if (arg == "-nokeepelementpositions") {
2893                setKeepElementPositions(false);
2894                continue;
2895            }
2896            if (arg == "-removeunreferencednodes") {
2897                setRemoveUnreferencedNodes(true);
2898                continue;
2899            }
2900            if (arg == "-noremoveunreferencednodes") {
2901                setRemoveUnreferencedNodes(false);
2902                continue;
2903            }
2904            if (arg == "-indexedpropertytype") {
2905                if (argNum+1 >= size) {
2906                    missingArgument(args, arg);
2907                    continue;
2908                }
2909                setIndexedPropertyType(args[++argNum]);
2910                continue;
2911            }
2912            if (arg == "-compile") {
2913                setDoCompile(true);
2914                continue;
2915            }
2916            if (arg == "-nocompile") {
2917                setDoCompile(false);
2918                continue;
2919            }
2920            if (arg == "-generateswitches") {
2921                setGenerateSwitches(true);
2922                continue;
2923            }
2924            if (arg == "-nogenerateswitches") {
2925                setGenerateSwitches(false);
2926                continue;
2927            }
2928            if (arg == "-dumpbeantree") {
2929                if (argNum+1 >= size) {
2930                    missingArgument(args, arg);
2931                    continue;
2932                }
2933                setDumpBeanTree(new java.io.File JavaDoc(args[++argNum]));
2934                continue;
2935            }
2936            if (arg == "-gendotgraph") {
2937                if (argNum+1 >= size) {
2938                    missingArgument(args, arg);
2939                    continue;
2940                }
2941                setGenerateDotGraph(new java.io.File JavaDoc(args[++argNum]));
2942                continue;
2943            }
2944            if (arg == "-comments") {
2945                setProcessComments(true);
2946                continue;
2947            }
2948            if (arg == "-nocomments") {
2949                setProcessComments(false);
2950                continue;
2951            }
2952            if (arg == "-doctype") {
2953                setProcessDocType(true);
2954                continue;
2955            }
2956            if (arg == "-nodoctype") {
2957                setProcessDocType(false);
2958                continue;
2959            }
2960            if (arg == "-checkuptodate") {
2961                setCheckUpToDate(true);
2962                continue;
2963            }
2964            if (arg == "-nocheckuptodate") {
2965                setCheckUpToDate(false);
2966                continue;
2967            }
2968            if (arg == "-haschanged") {
2969                setGenerateHasChanged(true);
2970                continue;
2971            }
2972            if (arg == "-nohaschanged") {
2973                setGenerateHasChanged(false);
2974                continue;
2975            }
2976            if (arg == "-writebeangraph") {
2977                if (argNum+1 >= size) {
2978                    missingArgument(args, arg);
2979                    continue;
2980                }
2981                setWriteBeanGraphFile(new java.io.File JavaDoc(args[++argNum]));
2982                continue;
2983            }
2984            if (arg == "-readbeangraph") {
2985                if (argNum+1 >= size) {
2986                    missingArgument(args, arg);
2987                    continue;
2988                }
2989                addReadBeanGraphFiles(new java.io.File JavaDoc(args[++argNum]));
2990                continue;
2991            }
2992            if (arg == "-min") {
2993                setMinFeatures(true);
2994                continue;
2995            }
2996            if (arg == "-nomin") {
2997                setMinFeatures(false);
2998                continue;
2999            }
3000            if (arg == "-forme") {
3001                setForME(true);
3002                continue;
3003            }
3004            if (arg == "-noforme") {
3005                setForME(false);
3006                continue;
3007            }
3008            if (arg == "-tagsfile") {
3009                setGenerateTagsFile(true);
3010                continue;
3011            }
3012            if (arg == "-notagsfile") {
3013                setGenerateTagsFile(false);
3014                continue;
3015            }
3016            if (arg == "-generatetimestamp") {
3017                setGenerateTimeStamp(true);
3018                continue;
3019            }
3020            if (arg == "-nogeneratetimestamp") {
3021                setGenerateTimeStamp(false);
3022                continue;
3023            }
3024            if (arg == "-quiet") {
3025                setQuiet(true);
3026                continue;
3027            }
3028            if (arg == "-noquiet") {
3029                setQuiet(false);
3030                continue;
3031            }
3032            if (arg == "-writeconfig") {
3033                if (argNum+1 >= size) {
3034                    missingArgument(args, arg);
3035                    continue;
3036                }
3037                setWriteConfig(new java.io.File JavaDoc(args[++argNum]));
3038                continue;
3039            }
3040            if (arg == "-readconfig") {
3041                if (argNum+1 >= size) {
3042                    missingArgument(args, arg);
3043                    continue;
3044                }
3045                addReadConfig(new java.io.File JavaDoc(args[++argNum]));
3046                continue;
3047            }
3048            if (arg == "-makedefaults") {
3049                setMakeDefaults(true);
3050                continue;
3051            }
3052            if (arg == "-nomakedefaults") {
3053                setMakeDefaults(false);
3054                continue;
3055            }
3056            if (arg == "-setdefaults") {
3057                setSetDefaults(true);
3058                continue;
3059            }
3060            if (arg == "-nosetdefaults") {
3061                setSetDefaults(false);
3062                continue;
3063            }
3064            if (arg == "-trimnonstrings") {
3065                setTrimNonStrings(true);
3066                continue;
3067            }
3068            if (arg == "-notrimnonstrings") {
3069                setTrimNonStrings(false);
3070                continue;
3071            }
3072            if (arg == "-useruntime") {
3073                setUseRuntime(true);
3074                continue;
3075            }
3076            if (arg == "-nouseruntime") {
3077                setUseRuntime(false);
3078                continue;
3079            }
3080            if (arg == "-extendbasebean") {
3081                setExtendBaseBean(true);
3082                continue;
3083            }
3084            if (arg == "-noextendbasebean") {
3085                setExtendBaseBean(false);
3086                continue;
3087            }
3088            if (arg == "-finder") {
3089                if (argNum+1 >= size) {
3090                    missingArgument(args, arg);
3091                    continue;
3092                }
3093                addFinder(args[++argNum]);
3094                continue;
3095            }
3096            if (arg == "-target") {
3097                if (argNum+1 >= size) {
3098                    missingArgument(args, arg);
3099                    continue;
3100                }
3101                setTarget(args[++argNum]);
3102                continue;
3103            }
3104            if (arg == "-staxproducexmleventreader") {
3105                setStaxProduceXMLEventReader(true);
3106                continue;
3107            }
3108            if (arg == "-nostaxproducexmleventreader") {
3109                setStaxProduceXMLEventReader(false);
3110                continue;
3111            }
3112            if (arg == "-staxusexmleventreader") {
3113                setStaxUseXMLEventReader(true);
3114                continue;
3115            }
3116            if (arg == "-nostaxusexmleventreader") {
3117                setStaxUseXMLEventReader(false);
3118                continue;
3119            }
3120            if (arg == "-optionalscalars") {
3121                setOptionalScalars(true);
3122                continue;
3123            }
3124            if (arg == "-nooptionalscalars") {
3125                setOptionalScalars(false);
3126                continue;
3127            }
3128            if (arg == "-defaultelementtype") {
3129                if (argNum+1 >= size) {
3130                    missingArgument(args, arg);
3131                    continue;
3132                }
3133                setDefaultElementType(args[++argNum]);
3134                continue;
3135            }
3136            if (arg == "-respectextension") {
3137                setRespectExtension(true);
3138                continue;
3139            }
3140            if (arg == "-norespectextension") {
3141                setRespectExtension(false);
3142                continue;
3143            }
3144            if (arg == "-logsuspicious") {
3145                setLogSuspicious(true);
3146                continue;
3147            }
3148            if (arg == "-nologsuspicious") {
3149                setLogSuspicious(false);
3150                continue;
3151            }
3152            if (arg == "-help" || arg == "--help") {
3153                return true;
3154            }
3155            argNum = unknownArgument(args, arg, argNum);
3156        }
3157        return false;
3158    }
3159
3160    protected int unknownArgument(String JavaDoc[] args, String JavaDoc arg, int argNum) {
3161        throw new IllegalArgumentException JavaDoc("Found unknown argument '"+arg+"'");
3162    }
3163
3164    protected void missingArgument(String JavaDoc[] args, String JavaDoc arg) {
3165        throw new IllegalArgumentException JavaDoc("Not enough arguments. Need 1 more for '"+arg+"'");
3166    }
3167
3168    protected void missingMandatoryArgument(String JavaDoc arg) {
3169        throw new IllegalArgumentException JavaDoc("Missing argument '"+arg+"'");
3170    }
3171
3172    public void showHelp(java.io.PrintStream JavaDoc out) {
3173        out.println(" [-f filename] [-d docRoot] [-r filename] [-p packagePath] [-sp indentAmount]\n [-mdd filename] [-noe] [-nonoe] [-ts] [-nots] [-veto] [-noveto]\n [-st] [-nost] [-auto] [-noauto] [-throw] [-nothrow] [-validate] [-novalidate]\n [-propertyEvents] [-nopropertyEvents] [-transactions] [-notransactions]\n [-attrProp] [-noattrProp] [-delegator] [-nodelegator] [-delegateDir filename]\n [-delegatePackage delegatePackage] [-commonInterfaceName generateCommonInterface]\n [-defaultsAccessable] [-nodefaultsAccessable] [-useInterfaces] [-nouseInterfaces]\n [-genInterfaces] [-nogenInterfaces] [-keepElementPositions] [-nokeepElementPositions]\n [-removeUnreferencedNodes] [-noremoveUnreferencedNodes] [-indexedPropertyType indexedPropertyType]\n [-compile] [-nocompile] [-generateSwitches] [-nogenerateSwitches]\n [-dumpBeanTree filename] [-genDotGraph filename] [-comments] [-nocomments]\n [-docType] [-nodocType] [-checkUpToDate] [-nocheckUpToDate] [-hasChanged] [-nohasChanged]\n [-writeBeanGraph filename] [-readBeanGraph filename] [-min] [-nomin]\n [-forME] [-noforME] [-tagsFile] [-notagsFile] [-generateTimeStamp] [-nogenerateTimeStamp]\n [-quiet] [-noquiet] [-writeConfig filename] [-readConfig filename]\n [-makeDefaults] [-nomakeDefaults] [-setDefaults] [-nosetDefaults]\n [-trimNonStrings] [-notrimNonStrings] [-useRuntime] [-nouseRuntime]\n [-extendBaseBean] [-noextendBaseBean] [-finder finder] [-target target]\n [-staxProduceXMLEventReader] [-nostaxProduceXMLEventReader] [-staxUseXMLEventReader] [-nostaxUseXMLEventReader]\n [-optionalScalars] [-nooptionalScalars] [-defaultElementType defaultElementType]\n [-respectExtension] [-norespectExtension] [-logSuspicious] [-nologSuspicious]\n");
3174        out.print(" -f\tfile name of the schema\n -d\tDTD root element name (for example webapp or ejb-jar)\n -r\tbase root directory (root of the package path)\n -p\tpackage name\n -sp\tset the indentation to use 'number' spaces instead of the default tab (\\t) value\n -mdd\tprovides extra information that the schema cannot provide. If the file doesn't exist, a skeleton file is created and no bean generation happens.\n -noe\tdo not throw the NoSuchElement exception when a scalar property has no value, return a default '0' value instead (BaseBean only).\n -ts\tthe toString() of the bean returns the full content\\n of the bean sub-tree instead of its simple name.\n -veto\tgenerate vetoable properties (only for non-bean properties).\n -st\tstandalone mode - do not generate NetBeans dependencies\n -auto\tDon't ask the user any questions.\n -throw\tgenerate code that prefers to pass exceptions\\n through instead of converting them to RuntimeException (recommended).\n -validate\tGenerate a validate method for doing validation.\n -propertyEvents\tGenerate methods for dealing with property events (always on for BaseBean type).\n -transactions\texperimental feature\n -attrProp\tAttributes become like any other property\n -delegator\tGenerate a delegator class for every bean generated.\n -delegateDir\tThe base directory to write every delegate into.\n -delegatePackage\tThe package to use for the delegates.\n -commonInterfaceName\tName the common interface between all beans.\n -defaultsAccessable\tGenerate methods to be able to get at default values.\n -useInterfaces\tGetters and setters signatures would use the first defined interface on the bean.\n -genInterfaces\tFor every bean generated, generate an interfaces for it's accessors.\n -keepElementPositions\tKeep track of the positions of elements (no BaseBean support).\n -removeUnreferencedNodes\tDo not generate unreferenced nodes from the bean graph.\n -indexedPropertyType\tThe name of the class to use for indexed properties.\n -compile\tCompile all generated classes using javac.\n -generateSwitches\tGenerate parseArguments()\n -dumpBeanTree\tWrite out the bean tree to filename.\n -genDotGraph\tGenerate a .dot style file for use with GraphViz (http://www.graphviz.org/).\n -comments\tProcess and keep comments (always on for BaseBean type).\n -docType\tProcess and keep Document Types (always on for BaseBean type).\"\n -checkUpToDate\tOnly do generation if the source files are newer than the to be generated files.\n -hasChanged\tKeep track of whether or not the beans have changed.\n -writeBeanGraph\tWrite out a beangraph XML file. Useful for connecting separate bean graphs.\n -readBeanGraph\tRead in and use the results of another bean graph.\n -min\tGenerate the minimum Java Beans. Reduce features in favor of reduced class file size.\n -forME\tGenerate code for use on J2ME.\n -tagsFile\tGenerate a class that has all schema element and attribute names\n -generateTimeStamp\tOutput a born on date into generated files.\n -quiet\tDon't be as verbose.\n -writeConfig\tWrite out Config as a file; this includes all command line switches. Useful for seeing what switches are set, and for reloading a bunch of switches with -readConfig.\n -readConfig\tRead in Config file. See -writeConfig.\n -makeDefaults\tMake properties that require a value have a default value even if the schema didn't say it had a default (defaults to true).\n -setDefaults\tFill in defaults.\n -trimNonStrings\tTrim non strings while reading XML.\n -useRuntime\tMake use of the schema2beans runtime (always on for BaseBean type).\n -extendBaseBean\tMake every bean extend BaseBean (always on for BaseBean type). For those who like -javabean's better performance, but can't seem to get away from BaseBean.\n -finder\tAdd a finder method. Format: \"on {start} find {selector} by {key}\". Example: \"on /ejb-jar/enterprise-beans find session by ejb-name\".\n -target\tTarget JDK to generate for.\n -staxProduceXMLEventReader\tProduce a StAX XMLEventReader to read the beans as if they were XML.\n -staxUseXMLEventReader\tUse an StAX XMLEventReader for reading the beans.\n -optionalScalars\tWhether or not scalars can be optional. Default: false. Recommended: true.\n -defaultElementType\tWhen a type cannot be figured out, use this type. Default: \"{http://www.w3.org/2001/XMLSchema}boolean\".\n -respectExtension\tTake advantage of when an extension is defined in the schema.\n -logSuspicious\tLog suspicious things.\n");
3175    }
3176
3177    public void changePropertyByName(String JavaDoc name, Object JavaDoc value) {
3178        if (name == null) return;
3179        name = name.intern();
3180        if (name == "schemaType")
3181            setSchemaType((java.lang.String JavaDoc)value);
3182        else if (name == "traceParse")
3183            setTraceParse(((java.lang.Boolean JavaDoc)value).booleanValue());
3184        else if (name == "traceGen")
3185            setTraceGen(((java.lang.Boolean JavaDoc)value).booleanValue());
3186        else if (name == "traceMisc")
3187            setTraceMisc(((java.lang.Boolean JavaDoc)value).booleanValue());
3188        else if (name == "traceDot")
3189            setTraceDot(((java.lang.Boolean JavaDoc)value).booleanValue());
3190        else if (name == "filename")
3191            setFilename((java.io.File JavaDoc)value);
3192        else if (name == "fileIn")
3193            setFileIn((java.io.InputStream JavaDoc)value);
3194        else if (name == "docRoot")
3195            setDocRoot((java.lang.String JavaDoc)value);
3196        else if (name == "rootDir")
3197            setRootDir((java.io.File JavaDoc)value);
3198        else if (name == "packagePath")
3199            setPackagePath((java.lang.String JavaDoc)value);
3200        else if (name == "indent")
3201            setIndent((java.lang.String JavaDoc)value);
3202        else if (name == "indentAmount")
3203            setIndentAmount(((java.lang.Integer JavaDoc)value).intValue());
3204        else if (name == "mddFile")
3205            setMddFile((java.io.File JavaDoc)value);
3206        else if (name == "mddIn")
3207            setMddIn((java.io.InputStream JavaDoc)value);
3208        else if (name == "metaDD")
3209            setMetaDD((org.netbeans.modules.schema2beansdev.metadd.MetaDD)value);
3210        else if (name == "doGeneration")
3211            setDoGeneration(((java.lang.Boolean JavaDoc)value).booleanValue());
3212        else if (name == "scalarException")
3213            setScalarException(((java.lang.Boolean JavaDoc)value).booleanValue());
3214        else if (name == "dumpToString")
3215            setDumpToString(((java.lang.Boolean JavaDoc)value).booleanValue());
3216        else if (name == "vetoable")
3217            setVetoable(((java.lang.Boolean JavaDoc)value).booleanValue());
3218        else if (name == "standalone")
3219            setStandalone(((java.lang.Boolean JavaDoc)value).booleanValue());
3220        else if (name == "auto")
3221            setAuto(((java.lang.Boolean JavaDoc)value).booleanValue());
3222        else if (name == "messageOut")
3223            setMessageOut((java.io.PrintStream JavaDoc)value);
3224        else if (name == "outputStreamProvider")
3225            setOutputStreamProvider((org.netbeans.modules.schema2beansdev.GenBeans.OutputStreamProvider)value);
3226        else if (name == "throwErrors")
3227            setThrowErrors(((java.lang.Boolean JavaDoc)value).booleanValue());
3228        else if (name == "generateXMLIO")
3229            setGenerateXMLIO(((java.lang.Boolean JavaDoc)value).booleanValue());
3230        else if (name == "generateValidate")
3231            setGenerateValidate(((java.lang.Boolean JavaDoc)value).booleanValue());
3232        else if (name == "generatePropertyEvents")
3233            setGeneratePropertyEvents(((java.lang.Boolean JavaDoc)value).booleanValue());
3234        else if (name == "generateStoreEvents")
3235            setGenerateStoreEvents(((java.lang.Boolean JavaDoc)value).booleanValue());
3236        else if (name == "generateTransactions")
3237            setGenerateTransactions(((java.lang.Boolean JavaDoc)value).booleanValue());
3238        else if (name == "attributesAsProperties")
3239            setAttributesAsProperties(((java.lang.Boolean JavaDoc)value).booleanValue());
3240        else if (name == "generateDelegator")
3241            setGenerateDelegator(((java.lang.Boolean JavaDoc)value).booleanValue());
3242        else if (name == "delegateDir")
3243            setDelegateDir((java.io.File JavaDoc)value);
3244        else if (name == "delegatePackage")
3245            setDelegatePackage((java.lang.String JavaDoc)value);
3246        else if (name == "generateCommonInterface")
3247            setGenerateCommonInterface((java.lang.String JavaDoc)value);
3248        else if (name == "defaultsAccessable")
3249            setDefaultsAccessable(((java.lang.Boolean JavaDoc)value).booleanValue());
3250        else if (name == "useInterfaces")
3251            setUseInterfaces(((java.lang.Boolean JavaDoc)value).booleanValue());
3252        else if (name == "generateInterfaces")
3253            setGenerateInterfaces(((java.lang.Boolean JavaDoc)value).booleanValue());
3254        else if (name == "keepElementPositions")
3255            setKeepElementPositions(((java.lang.Boolean JavaDoc)value).booleanValue());
3256        else if (name == "removeUnreferencedNodes")
3257            setRemoveUnreferencedNodes(((java.lang.Boolean JavaDoc)value).booleanValue());
3258        else if (name == "inputURI")
3259            setInputURI((java.lang.String JavaDoc)value);
3260        else if (name == "indexedPropertyType")
3261            setIndexedPropertyType((java.lang.String JavaDoc)value);
3262        else if (name == "doCompile")
3263            setDoCompile(((java.lang.Boolean JavaDoc)value).booleanValue());
3264        else if (name == "generateSwitches")
3265            setGenerateSwitches(((java.lang.Boolean JavaDoc)value).booleanValue());
3266        else if (name == "dumpBeanTree")
3267            setDumpBeanTree((java.io.File JavaDoc)value);
3268        else if (name == "generateDotGraph")
3269            setGenerateDotGraph((java.io.File JavaDoc)value);
3270        else if (name == "processComments")
3271            setProcessComments(((java.lang.Boolean JavaDoc)value).booleanValue());
3272        else if (name == "processDocType")
3273            setProcessDocType(((java.lang.Boolean JavaDoc)value).booleanValue());
3274        else if (name == "checkUpToDate")
3275            setCheckUpToDate(((java.lang.Boolean JavaDoc)value).booleanValue());
3276        else if (name == "generateParentRefs")
3277            setGenerateParentRefs(((java.lang.Boolean JavaDoc)value).booleanValue());
3278        else if (name == "generateHasChanged")
3279            setGenerateHasChanged(((java.lang.Boolean JavaDoc)value).booleanValue());
3280        else if (name == "newestSourceTime")
3281            setNewestSourceTime(((java.lang.Long JavaDoc)value).longValue());
3282        else if (name == "writeBeanGraphFile")
3283            setWriteBeanGraphFile((java.io.File JavaDoc)value);
3284        else if (name == "readBeanGraphFiles")
3285            addReadBeanGraphFiles((java.io.File JavaDoc)value);
3286        else if (name == "readBeanGraphFiles[]")
3287            setReadBeanGraphFiles((java.io.File JavaDoc[]) value);
3288        else if (name == "readBeanGraphs")
3289            addReadBeanGraphs((org.netbeans.modules.schema2beansdev.beangraph.BeanGraph)value);
3290        else if (name == "readBeanGraphs[]")
3291            setReadBeanGraphs((org.netbeans.modules.schema2beansdev.beangraph.BeanGraph[]) value);
3292        else if (name == "minFeatures")
3293            setMinFeatures(((java.lang.Boolean JavaDoc)value).booleanValue());
3294        else if (name == "forME")
3295            setForME(((java.lang.Boolean JavaDoc)value).booleanValue());
3296        else if (name == "generateTagsFile")
3297            setGenerateTagsFile(((java.lang.Boolean JavaDoc)value).booleanValue());
3298        else if (name == "codeGeneratorFactory")
3299            setCodeGeneratorFactory((org.netbeans.modules.schema2beansdev.CodeGeneratorFactory)value);
3300        else if (name == "generateTimeStamp")
3301            setGenerateTimeStamp(((java.lang.Boolean JavaDoc)value).booleanValue());
3302        else if (name == "quiet")
3303            setQuiet(((java.lang.Boolean JavaDoc)value).booleanValue());
3304        else if (name == "writeConfig")
3305            setWriteConfig((java.io.File JavaDoc)value);
3306        else if (name == "readConfig")
3307            addReadConfig((java.io.File JavaDoc)value);
3308        else if (name == "readConfig[]")
3309            setReadConfig((java.io.File JavaDoc[]) value);
3310        else if (name == "makeDefaults")
3311            setMakeDefaults(((java.lang.Boolean JavaDoc)value).booleanValue());
3312        else if (name == "setDefaults")
3313            setSetDefaults(((java.lang.Boolean JavaDoc)value).booleanValue());
3314        else if (name == "trimNonStrings")
3315            setTrimNonStrings(((java.lang.Boolean JavaDoc)value).booleanValue());
3316        else if (name == "useRuntime")
3317            setUseRuntime(((java.lang.Boolean JavaDoc)value).booleanValue());
3318        else if (name == "extendBaseBean")
3319            setExtendBaseBean(((java.lang.Boolean JavaDoc)value).booleanValue());
3320        else if (name == "finder")
3321            addFinder((java.lang.String JavaDoc)value);
3322        else if (name == "finder[]")
3323            setFinder((java.lang.String JavaDoc[]) value);
3324        else if (name == "target")
3325            setTarget((java.lang.String JavaDoc)value);
3326        else if (name == "staxProduceXMLEventReader")
3327            setStaxProduceXMLEventReader(((java.lang.Boolean JavaDoc)value).booleanValue());
3328        else if (name == "staxUseXMLEventReader")
3329            setStaxUseXMLEventReader(((java.lang.Boolean JavaDoc)value).booleanValue());
3330        else if (name == "optionalScalars")
3331            setOptionalScalars(((java.lang.Boolean JavaDoc)value).booleanValue());
3332        else if (name == "defaultElementType")
3333            setDefaultElementType((java.lang.String JavaDoc)value);
3334        else if (name == "respectExtension")
3335            setRespectExtension(((java.lang.Boolean JavaDoc)value).booleanValue());
3336        else if (name == "logSuspicious")
3337            setLogSuspicious(((java.lang.Boolean JavaDoc)value).booleanValue());
3338        else
3339            throw new IllegalArgumentException JavaDoc(name+" is not a valid property name for S2bConfig");
3340    }
3341
3342    public Object JavaDoc fetchPropertyByName(String JavaDoc name) {
3343        if (name == "schemaType")
3344            return getSchemaType();
3345        if (name == "traceParse")
3346            return (isTraceParse() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3347        if (name == "traceGen")
3348            return (isTraceGen() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3349        if (name == "traceMisc")
3350            return (isTraceMisc() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3351        if (name == "traceDot")
3352            return (isTraceDot() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3353        if (name == "filename")
3354            return getFilename();
3355        if (name == "fileIn")
3356            return getFileIn();
3357        if (name == "docRoot")
3358            return getDocRoot();
3359        if (name == "rootDir")
3360            return getRootDir();
3361        if (name == "packagePath")
3362            return getPackagePath();
3363        if (name == "indent")
3364            return getIndent();
3365        if (name == "indentAmount")
3366            return new java.lang.Integer JavaDoc(getIndentAmount());
3367        if (name == "mddFile")
3368            return getMddFile();
3369        if (name == "mddIn")
3370            return getMddIn();
3371        if (name == "metaDD")
3372            return getMetaDD();
3373        if (name == "doGeneration")
3374            return (isDoGeneration() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3375        if (name == "scalarException")
3376            return (isScalarException() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3377        if (name == "dumpToString")
3378            return (isDumpToString() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3379        if (name == "vetoable")
3380            return (isVetoable() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3381        if (name == "standalone")
3382            return (isStandalone() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3383        if (name == "auto")
3384            return (isAuto() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3385        if (name == "messageOut")
3386            return getMessageOut();
3387        if (name == "outputStreamProvider")
3388            return getOutputStreamProvider();
3389        if (name == "throwErrors")
3390            return (isThrowErrors() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3391        if (name == "generateXMLIO")
3392            return (isGenerateXMLIO() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3393        if (name == "generateValidate")
3394            return (isGenerateValidate() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3395        if (name == "generatePropertyEvents")
3396            return (isGeneratePropertyEvents() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3397        if (name == "generateStoreEvents")
3398            return (isGenerateStoreEvents() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3399        if (name == "generateTransactions")
3400            return (isGenerateTransactions() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3401        if (name == "attributesAsProperties")
3402            return (isAttributesAsProperties() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3403        if (name == "generateDelegator")
3404            return (isGenerateDelegator() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3405        if (name == "delegateDir")
3406            return getDelegateDir();
3407        if (name == "delegatePackage")
3408            return getDelegatePackage();
3409        if (name == "generateCommonInterface")
3410            return getGenerateCommonInterface();
3411        if (name == "defaultsAccessable")
3412            return (isDefaultsAccessable() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3413        if (name == "useInterfaces")
3414            return (isUseInterfaces() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3415        if (name == "generateInterfaces")
3416            return (isGenerateInterfaces() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3417        if (name == "keepElementPositions")
3418            return (isKeepElementPositions() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3419        if (name == "removeUnreferencedNodes")
3420            return (isRemoveUnreferencedNodes() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3421        if (name == "inputURI")
3422            return getInputURI();
3423        if (name == "indexedPropertyType")
3424            return getIndexedPropertyType();
3425        if (name == "doCompile")
3426            return (isDoCompile() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3427        if (name == "generateSwitches")
3428            return (isGenerateSwitches() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3429        if (name == "dumpBeanTree")
3430            return getDumpBeanTree();
3431        if (name == "generateDotGraph")
3432            return getGenerateDotGraph();
3433        if (name == "processComments")
3434            return (isProcessComments() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3435        if (name == "processDocType")
3436            return (isProcessDocType() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3437        if (name == "checkUpToDate")
3438            return (isCheckUpToDate() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3439        if (name == "generateParentRefs")
3440            return (isGenerateParentRefs() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3441        if (name == "generateHasChanged")
3442            return (isGenerateHasChanged() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3443        if (name == "newestSourceTime")
3444            return new java.lang.Long JavaDoc(getNewestSourceTime());
3445        if (name == "writeBeanGraphFile")
3446            return getWriteBeanGraphFile();
3447        if (name == "readBeanGraphFiles[]")
3448            return getReadBeanGraphFiles();
3449        if (name == "readBeanGraphs[]")
3450            return getReadBeanGraphs();
3451        if (name == "minFeatures")
3452            return (isMinFeatures() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3453        if (name == "forME")
3454            return (isForME() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3455        if (name == "generateTagsFile")
3456            return (isGenerateTagsFile() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3457        if (name == "codeGeneratorFactory")
3458            return getCodeGeneratorFactory();
3459        if (name == "generateTimeStamp")
3460            return (isGenerateTimeStamp() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3461        if (name == "quiet")
3462            return (isQuiet() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3463        if (name == "writeConfig")
3464            return getWriteConfig();
3465        if (name == "readConfig[]")
3466            return getReadConfig();
3467        if (name == "makeDefaults")
3468            return (isMakeDefaults() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3469        if (name == "setDefaults")
3470            return (isSetDefaults() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3471        if (name == "trimNonStrings")
3472            return (isTrimNonStrings() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3473        if (name == "useRuntime")
3474            return (isUseRuntime() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3475        if (name == "extendBaseBean")
3476            return (isExtendBaseBean() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3477        if (name == "finder[]")
3478            return getFinder();
3479        if (name == "target")
3480            return getTarget();
3481        if (name == "staxProduceXMLEventReader")
3482            return (isStaxProduceXMLEventReader() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3483        if (name == "staxUseXMLEventReader")
3484            return (isStaxUseXMLEventReader() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3485        if (name == "optionalScalars")
3486            return (isOptionalScalars() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3487        if (name == "defaultElementType")
3488            return getDefaultElementType();
3489        if (name == "respectExtension")
3490            return (isRespectExtension() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3491        if (name == "logSuspicious")
3492            return (isLogSuspicious() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
3493        throw new IllegalArgumentException JavaDoc(name+" is not a valid property name for S2bConfig");
3494    }
3495
3496    public String JavaDoc nameSelf() {
3497        return "/S2bConfig";
3498    }
3499
3500    public String JavaDoc nameChild(Object JavaDoc childObj) {
3501        return nameChild(childObj, false, false);
3502    }
3503
3504    /**
3505     * @param childObj The child object to search for
3506     * @param returnSchemaName Whether or not the schema name should be returned or the property name
3507     * @return null if not found
3508     */

3509    public String JavaDoc nameChild(Object JavaDoc childObj, boolean returnConstName, boolean returnSchemaName) {
3510        return nameChild(childObj, returnConstName, returnSchemaName, false);
3511    }
3512
3513    /**
3514     * @param childObj The child object to search for
3515     * @param returnSchemaName Whether or not the schema name should be returned or the property name
3516     * @return null if not found
3517     */

3518    public String JavaDoc nameChild(Object JavaDoc childObj, boolean returnConstName, boolean returnSchemaName, boolean returnXPathName) {
3519        if (childObj instanceof java.lang.String JavaDoc) {
3520            java.lang.String JavaDoc child = (java.lang.String JavaDoc) childObj;
3521            if (child == _SchemaType) {
3522                if (returnConstName) {
3523                    return SCHEMATYPE;
3524                } else if (returnSchemaName) {
3525                    return "schemaType";
3526                } else if (returnXPathName) {
3527                    return "schemaType";
3528                } else {
3529                    return "SchemaType";
3530                }
3531            }
3532            if (child == _DocRoot) {
3533                if (returnConstName) {
3534                    return DOCROOT;
3535                } else if (returnSchemaName) {
3536                    return "docRoot";
3537                } else if (returnXPathName) {
3538                    return "docRoot";
3539                } else {
3540                    return "DocRoot";
3541                }
3542            }
3543            if (child == _PackagePath) {
3544                if (returnConstName) {
3545                    return PACKAGEPATH;
3546                } else if (returnSchemaName) {
3547                    return "packagePath";
3548                } else if (returnXPathName) {
3549                    return "packagePath";
3550                } else {
3551                    return "PackagePath";
3552                }
3553            }
3554            if (child == _Indent) {
3555                if (returnConstName) {
3556                    return INDENT;
3557                } else if (returnSchemaName) {
3558                    return "indent";
3559                } else if (returnXPathName) {
3560                    return "indent";
3561                } else {
3562                    return "Indent";
3563                }
3564            }
3565            if (child == _DelegatePackage) {
3566                if (returnConstName) {
3567                    return DELEGATEPACKAGE;
3568                } else if (returnSchemaName) {
3569                    return "delegatePackage";
3570                } else if (returnXPathName) {
3571                    return "delegatePackage";
3572                } else {
3573                    return "DelegatePackage";
3574                }
3575            }
3576            if (child == _GenerateCommonInterface) {
3577                if (returnConstName) {
3578                    return GENERATECOMMONINTERFACE;
3579                } else if (returnSchemaName) {
3580                    return "generateCommonInterface";
3581                } else if (returnXPathName) {
3582                    return "generateCommonInterface";
3583                } else {
3584                    return "GenerateCommonInterface";
3585                }
3586            }
3587            if (child == _InputURI) {
3588                if (returnConstName) {
3589                    return INPUTURI;
3590                } else if (returnSchemaName) {
3591                    return "inputURI";
3592                } else if (returnXPathName) {
3593                    return "inputURI";
3594                } else {
3595                    return "InputURI";
3596                }
3597            }
3598            if (child == _IndexedPropertyType) {
3599                if (returnConstName) {
3600                    return INDEXEDPROPERTYTYPE;
3601                } else if (returnSchemaName) {
3602                    return "indexedPropertyType";
3603                } else if (returnXPathName) {
3604                    return "indexedPropertyType";
3605                } else {
3606                    return "IndexedPropertyType";
3607                }
3608            }
3609            int index = 0;
3610            for (java.util.Iterator JavaDoc it = _Finder.iterator(); it.hasNext();
3611                ) {
3612                java.lang.String JavaDoc element = (java.lang.String JavaDoc)it.next();
3613                if (child == element) {
3614                    if (returnConstName) {
3615                        return FINDER;
3616                    } else if (returnSchemaName) {
3617                        return "finder";
3618                    } else if (returnXPathName) {
3619                        return "finder[position()="+index+"]";
3620                    } else {
3621                        return "Finder."+Integer.toHexString(index);
3622                    }
3623                }
3624                ++index;
3625            }
3626            if (child == _Target) {
3627                if (returnConstName) {
3628                    return TARGET;
3629                } else if (returnSchemaName) {
3630                    return "target";
3631                } else if (returnXPathName) {
3632                    return "target";
3633                } else {
3634                    return "Target";
3635                }
3636            }
3637            if (child == _DefaultElementType) {
3638                if (returnConstName) {
3639                    return DEFAULTELEMENTTYPE;
3640                } else if (returnSchemaName) {
3641                    return "defaultElementType";
3642                } else if (returnXPathName) {
3643                    return "defaultElementType";
3644                } else {
3645                    return "DefaultElementType";
3646                }
3647            }
3648        }
3649        if (childObj instanceof java.io.InputStream JavaDoc) {
3650            java.io.InputStream JavaDoc child = (java.io.InputStream JavaDoc) childObj;
3651            if (child == _FileIn) {
3652                if (returnConstName) {
3653                    return FILEIN;
3654                } else if (returnSchemaName) {
3655                    return "fileIn";
3656                } else if (returnXPathName) {
3657                    return "fileIn";
3658                } else {
3659                    return "FileIn";
3660                }
3661            }
3662            if (child == _MddIn) {
3663                if (returnConstName) {
3664                    return MDDIN;
3665                } else if (returnSchemaName) {
3666                    return "mddIn";
3667                } else if (returnXPathName) {
3668                    return "mddIn";
3669                } else {
3670                    return "MddIn";
3671                }
3672            }
3673        }
3674        if (childObj instanceof org.netbeans.modules.schema2beansdev.GenBeans.OutputStreamProvider) {
3675            org.netbeans.modules.schema2beansdev.GenBeans.OutputStreamProvider child = (org.netbeans.modules.schema2beansdev.GenBeans.OutputStreamProvider) childObj;
3676            if (child == _OutputStreamProvider) {
3677                if (returnConstName) {
3678                    return OUTPUTSTREAMPROVIDER;
3679                } else if (returnSchemaName) {
3680                    return "outputStreamProvider";
3681                } else if (returnXPathName) {
3682                    return "outputStreamProvider";
3683                } else {
3684                    return "OutputStreamProvider";
3685                }
3686            }
3687        }
3688        if (childObj instanceof java.lang.Integer JavaDoc) {
3689            java.lang.Integer JavaDoc child = (java.lang.Integer JavaDoc) childObj;
3690            if (((java.lang.Integer JavaDoc)child).intValue() == _IndentAmount) {
3691                if (returnConstName) {
3692                    return INDENTAMOUNT;
3693                } else if (returnSchemaName) {
3694                    return "indentAmount";
3695                } else if (returnXPathName) {
3696                    return "indentAmount";
3697                } else {
3698                    return "IndentAmount";
3699                }
3700            }
3701        }
3702        if (childObj instanceof org.netbeans.modules.schema2beansdev.metadd.MetaDD) {
3703            org.netbeans.modules.schema2beansdev.metadd.MetaDD child = (org.netbeans.modules.schema2beansdev.metadd.MetaDD) childObj;
3704            if (child == _MetaDD) {
3705                if (returnConstName) {
3706                    return METADD;
3707                } else if (returnSchemaName) {
3708                    return "metaDD";
3709                } else if (returnXPathName) {
3710                    return "metaDD";
3711                } else {
3712                    return "MetaDD";
3713                }
3714            }
3715        }
3716        if (childObj instanceof java.io.PrintStream JavaDoc) {
3717            java.io.PrintStream JavaDoc child = (java.io.PrintStream JavaDoc) childObj;
3718            if (child == _MessageOut) {
3719                if (returnConstName) {
3720                    return MESSAGEOUT;
3721                } else if (returnSchemaName) {
3722                    return "messageOut";
3723                } else if (returnXPathName) {
3724                    return "messageOut";
3725                } else {
3726                    return "MessageOut";
3727                }
3728            }
3729        }
3730        if (childObj instanceof org.netbeans.modules.schema2beansdev.CodeGeneratorFactory) {
3731            org.netbeans.modules.schema2beansdev.CodeGeneratorFactory child = (org.netbeans.modules.schema2beansdev.CodeGeneratorFactory) childObj;
3732            if (child == _CodeGeneratorFactory) {
3733                if (returnConstName) {
3734                    return CODEGENERATORFACTORY;
3735                } else if (returnSchemaName) {
3736                    return "codeGeneratorFactory";
3737                } else if (returnXPathName) {
3738                    return "codeGeneratorFactory";
3739                } else {
3740                    return "CodeGeneratorFactory";
3741                }
3742            }
3743        }
3744        if (childObj instanceof java.io.File JavaDoc) {
3745            java.io.File JavaDoc child = (java.io.File JavaDoc) childObj;
3746            if (child == _Filename) {
3747                if (returnConstName) {
3748                    return FILENAME;
3749                } else if (returnSchemaName) {
3750                    return "filename";
3751                } else if (returnXPathName) {
3752                    return "filename";
3753                } else {
3754                    return "Filename";
3755                }
3756            }
3757            if (child == _RootDir) {
3758                if (returnConstName) {
3759                    return ROOTDIR;
3760                } else if (returnSchemaName) {
3761                    return "rootDir";
3762                } else if (returnXPathName) {
3763                    return "rootDir";
3764                } else {
3765                    return "RootDir";
3766                }
3767            }
3768            if (child == _MddFile) {
3769                if (returnConstName) {
3770                    return MDDFILE;
3771                } else if (returnSchemaName) {
3772                    return "mddFile";
3773                } else if (returnXPathName) {
3774                    return "mddFile";
3775                } else {
3776                    return "MddFile";
3777                }
3778            }
3779            if (child == _DelegateDir) {
3780                if (returnConstName) {
3781                    return DELEGATEDIR;
3782                } else if (returnSchemaName) {
3783                    return "delegateDir";
3784                } else if (returnXPathName) {
3785                    return "delegateDir";
3786                } else {
3787                    return "DelegateDir";
3788                }
3789            }
3790            if (child == _DumpBeanTree) {
3791                if (returnConstName) {
3792                    return DUMPBEANTREE;
3793                } else if (returnSchemaName) {
3794                    return "dumpBeanTree";
3795                } else if (returnXPathName) {
3796                    return "dumpBeanTree";
3797                } else {
3798                    return "DumpBeanTree";
3799                }
3800            }
3801            if (child == _GenerateDotGraph) {
3802                if (returnConstName) {
3803                    return GENERATEDOTGRAPH;
3804                } else if (returnSchemaName) {
3805                    return "generateDotGraph";
3806                } else if (returnXPathName) {
3807                    return "generateDotGraph";
3808                } else {
3809                    return "GenerateDotGraph";
3810                }
3811            }
3812            if (child == _WriteBeanGraphFile) {
3813                if (returnConstName) {
3814                    return WRITEBEANGRAPHFILE;
3815                } else if (returnSchemaName) {
3816                    return "writeBeanGraphFile";
3817                } else if (returnXPathName) {
3818                    return "writeBeanGraphFile";
3819                } else {
3820                    return "WriteBeanGraphFile";
3821                }
3822            }
3823            int index = 0;
3824            for (java.util.Iterator JavaDoc it = _ReadBeanGraphFiles.iterator();
3825                it.hasNext(); ) {
3826                java.io.File JavaDoc element = (java.io.File JavaDoc)it.next();
3827                if (child == element) {
3828                    if (returnConstName) {
3829                        return READBEANGRAPHFILES;
3830                    } else if (returnSchemaName) {
3831                        return "readBeanGraphFiles";
3832                    } else if (returnXPathName) {
3833                        return "readBeanGraphFiles[position()="+index+"]";
3834                    } else {
3835                        return "ReadBeanGraphFiles."+Integer.toHexString(index);
3836                    }
3837                }
3838                ++index;
3839            }
3840            if (child == _WriteConfig) {
3841                if (returnConstName) {
3842                    return WRITECONFIG;
3843                } else if (returnSchemaName) {
3844                    return "writeConfig";
3845                } else if (returnXPathName) {
3846                    return "writeConfig";
3847                } else {
3848                    return "WriteConfig";
3849                }
3850            }
3851            index = 0;
3852            for (java.util.Iterator JavaDoc it = _ReadConfig.iterator();
3853                it.hasNext(); ) {
3854                java.io.File JavaDoc element = (java.io.File JavaDoc)it.next();
3855                if (child == element) {
3856                    if (returnConstName) {
3857                        return READCONFIG;
3858                    } else if (returnSchemaName) {
3859                        return "readConfig";
3860                    } else if (returnXPathName) {
3861                        return "readConfig[position()="+index+"]";
3862                    } else {
3863                        return "ReadConfig."+Integer.toHexString(index);
3864                    }
3865                }
3866                ++index;
3867            }
3868        }
3869        if (childObj instanceof java.lang.Long JavaDoc) {
3870            java.lang.Long JavaDoc child = (java.lang.Long JavaDoc) childObj;
3871            if (((java.lang.Long JavaDoc)child).longValue() == _NewestSourceTime) {
3872                if (returnConstName) {
3873                    return NEWESTSOURCETIME;
3874                } else if (returnSchemaName) {
3875                    return "newestSourceTime";
3876                } else if (returnXPathName) {
3877                    return "newestSourceTime";
3878                } else {
3879                    return "NewestSourceTime";
3880                }
3881            }
3882        }
3883        if (childObj instanceof java.lang.Boolean JavaDoc) {
3884            java.lang.Boolean JavaDoc child = (java.lang.Boolean JavaDoc) childObj;
3885            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _TraceParse) {
3886                if (returnConstName) {
3887                    return TRACEPARSE;
3888                } else if (returnSchemaName) {
3889                    return "traceParse";
3890                } else if (returnXPathName) {
3891                    return "traceParse";
3892                } else {
3893                    return "TraceParse";
3894                }
3895            }
3896            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _TraceGen) {
3897                if (returnConstName) {
3898                    return TRACEGEN;
3899                } else if (returnSchemaName) {
3900                    return "traceGen";
3901                } else if (returnXPathName) {
3902                    return "traceGen";
3903                } else {
3904                    return "TraceGen";
3905                }
3906            }
3907            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _TraceMisc) {
3908                if (returnConstName) {
3909                    return TRACEMISC;
3910                } else if (returnSchemaName) {
3911                    return "traceMisc";
3912                } else if (returnXPathName) {
3913                    return "traceMisc";
3914                } else {
3915                    return "TraceMisc";
3916                }
3917            }
3918            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _TraceDot) {
3919                if (returnConstName) {
3920                    return TRACEDOT;
3921                } else if (returnSchemaName) {
3922                    return "traceDot";
3923                } else if (returnXPathName) {
3924                    return "traceDot";
3925                } else {
3926                    return "TraceDot";
3927                }
3928            }
3929            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _DoGeneration) {
3930                if (returnConstName) {
3931                    return DOGENERATION;
3932                } else if (returnSchemaName) {
3933                    return "doGeneration";
3934                } else if (returnXPathName) {
3935                    return "doGeneration";
3936                } else {
3937                    return "DoGeneration";
3938                }
3939            }
3940            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _ScalarException) {
3941                if (returnConstName) {
3942                    return SCALAREXCEPTION;
3943                } else if (returnSchemaName) {
3944                    return "scalarException";
3945                } else if (returnXPathName) {
3946                    return "scalarException";
3947                } else {
3948                    return "ScalarException";
3949                }
3950            }
3951            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _DumpToString) {
3952                if (returnConstName) {
3953                    return DUMPTOSTRING;
3954                } else if (returnSchemaName) {
3955                    return "dumpToString";
3956                } else if (returnXPathName) {
3957                    return "dumpToString";
3958                } else {
3959                    return "DumpToString";
3960                }
3961            }
3962            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _Vetoable) {
3963                if (returnConstName) {
3964                    return VETOABLE;
3965                } else if (returnSchemaName) {
3966                    return "vetoable";
3967                } else if (returnXPathName) {
3968                    return "vetoable";
3969                } else {
3970                    return "Vetoable";
3971                }
3972            }
3973            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _Standalone) {
3974                if (returnConstName) {
3975                    return STANDALONE;
3976                } else if (returnSchemaName) {
3977                    return "standalone";
3978                } else if (returnXPathName) {
3979                    return "standalone";
3980                } else {
3981                    return "Standalone";
3982                }
3983            }
3984            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _Auto) {
3985                if (returnConstName) {
3986                    return AUTO;
3987                } else if (returnSchemaName) {
3988                    return "auto";
3989                } else if (returnXPathName) {
3990                    return "auto";
3991                } else {
3992                    return "Auto";
3993                }
3994            }
3995            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _ThrowErrors) {
3996                if (returnConstName) {
3997                    return THROWERRORS;
3998                } else if (returnSchemaName) {
3999                    return "throwErrors";
4000                } else if (returnXPathName) {
4001                    return "throwErrors";
4002                } else {
4003                    return "ThrowErrors";
4004                }
4005            }
4006            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _GenerateXMLIO) {
4007                if (returnConstName) {
4008                    return GENERATEXMLIO;
4009                } else if (returnSchemaName) {
4010                    return "generateXMLIO";
4011                } else if (returnXPathName) {
4012                    return "generateXMLIO";
4013                } else {
4014                    return "GenerateXMLIO";
4015                }
4016            }
4017            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _GenerateValidate) {
4018                if (returnConstName) {
4019                    return GENERATEVALIDATE;
4020                } else if (returnSchemaName) {
4021                    return "generateValidate";
4022                } else if (returnXPathName) {
4023                    return "generateValidate";
4024                } else {
4025                    return "GenerateValidate";
4026                }
4027            }
4028            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _GeneratePropertyEvents) {
4029                if (returnConstName) {
4030                    return GENERATEPROPERTYEVENTS;
4031                } else if (returnSchemaName) {
4032                    return "generatePropertyEvents";
4033                } else if (returnXPathName) {
4034                    return "generatePropertyEvents";
4035                } else {
4036                    return "GeneratePropertyEvents";
4037                }
4038            }
4039            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _GenerateStoreEvents) {
4040                if (returnConstName) {
4041                    return GENERATESTOREEVENTS;
4042                } else if (returnSchemaName) {
4043                    return "generateStoreEvents";
4044                } else if (returnXPathName) {
4045                    return "generateStoreEvents";
4046                } else {
4047                    return "GenerateStoreEvents";
4048                }
4049            }
4050            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _GenerateTransactions) {
4051                if (returnConstName) {
4052                    return GENERATETRANSACTIONS;
4053                } else if (returnSchemaName) {
4054                    return "generateTransactions";
4055                } else if (returnXPathName) {
4056                    return "generateTransactions";
4057                } else {
4058                    return "GenerateTransactions";
4059                }
4060            }
4061            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _AttributesAsProperties) {
4062                if (returnConstName) {
4063                    return ATTRIBUTESASPROPERTIES;
4064                } else if (returnSchemaName) {
4065                    return "attributesAsProperties";
4066                } else if (returnXPathName) {
4067                    return "attributesAsProperties";
4068                } else {
4069                    return "AttributesAsProperties";
4070                }
4071            }
4072            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _GenerateDelegator) {
4073                if (returnConstName) {
4074                    return GENERATEDELEGATOR;
4075                } else if (returnSchemaName) {
4076                    return "generateDelegator";
4077                } else if (returnXPathName) {
4078                    return "generateDelegator";
4079                } else {
4080                    return "GenerateDelegator";
4081                }
4082            }
4083            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _DefaultsAccessable) {
4084                if (returnConstName) {
4085                    return DEFAULTSACCESSABLE;
4086                } else if (returnSchemaName) {
4087                    return "defaultsAccessable";
4088                } else if (returnXPathName) {
4089                    return "defaultsAccessable";
4090                } else {
4091                    return "DefaultsAccessable";
4092                }
4093            }
4094            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _UseInterfaces) {
4095                if (returnConstName) {
4096                    return USEINTERFACES;
4097                } else if (returnSchemaName) {
4098                    return "useInterfaces";
4099                } else if (returnXPathName) {
4100                    return "useInterfaces";
4101                } else {
4102                    return "UseInterfaces";
4103                }
4104            }
4105            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _GenerateInterfaces) {
4106                if (returnConstName) {
4107                    return GENERATEINTERFACES;
4108                } else if (returnSchemaName) {
4109                    return "generateInterfaces";
4110                } else if (returnXPathName) {
4111                    return "generateInterfaces";
4112                } else {
4113                    return "GenerateInterfaces";
4114                }
4115            }
4116            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _KeepElementPositions) {
4117                if (returnConstName) {
4118                    return KEEPELEMENTPOSITIONS;
4119                } else if (returnSchemaName) {
4120                    return "keepElementPositions";
4121                } else if (returnXPathName) {
4122                    return "keepElementPositions";
4123                } else {
4124                    return "KeepElementPositions";
4125                }
4126            }
4127            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _RemoveUnreferencedNodes) {
4128                if (returnConstName) {
4129                    return REMOVEUNREFERENCEDNODES;
4130                } else if (returnSchemaName) {
4131                    return "removeUnreferencedNodes";
4132                } else if (returnXPathName) {
4133                    return "removeUnreferencedNodes";
4134                } else {
4135                    return "RemoveUnreferencedNodes";
4136                }
4137            }
4138            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _DoCompile) {
4139                if (returnConstName) {
4140                    return DOCOMPILE;
4141                } else if (returnSchemaName) {
4142                    return "doCompile";
4143                } else if (returnXPathName) {
4144                    return "doCompile";
4145                } else {
4146                    return "DoCompile";
4147                }
4148            }
4149            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _GenerateSwitches) {
4150                if (returnConstName) {
4151                    return GENERATESWITCHES;
4152                } else if (returnSchemaName) {
4153                    return "generateSwitches";
4154                } else if (returnXPathName) {
4155                    return "generateSwitches";
4156                } else {
4157                    return "GenerateSwitches";
4158                }
4159            }
4160            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _ProcessComments) {
4161                if (returnConstName) {
4162                    return PROCESSCOMMENTS;
4163                } else if (returnSchemaName) {
4164                    return "processComments";
4165                } else if (returnXPathName) {
4166                    return "processComments";
4167                } else {
4168                    return "ProcessComments";
4169                }
4170            }
4171            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _ProcessDocType) {
4172                if (returnConstName) {
4173                    return PROCESSDOCTYPE;
4174                } else if (returnSchemaName) {
4175                    return "processDocType";
4176                } else if (returnXPathName) {
4177                    return "processDocType";
4178                } else {
4179                    return "ProcessDocType";
4180                }
4181            }
4182            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _CheckUpToDate) {
4183                if (returnConstName) {
4184                    return CHECKUPTODATE;
4185                } else if (returnSchemaName) {
4186                    return "checkUpToDate";
4187                } else if (returnXPathName) {
4188                    return "checkUpToDate";
4189                } else {
4190                    return "CheckUpToDate";
4191                }
4192            }
4193            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _GenerateParentRefs) {
4194                if (returnConstName) {
4195                    return GENERATEPARENTREFS;
4196                } else if (returnSchemaName) {
4197                    return "generateParentRefs";
4198                } else if (returnXPathName) {
4199                    return "generateParentRefs";
4200                } else {
4201                    return "GenerateParentRefs";
4202                }
4203            }
4204            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _GenerateHasChanged) {
4205                if (returnConstName) {
4206                    return GENERATEHASCHANGED;
4207                } else if (returnSchemaName) {
4208                    return "generateHasChanged";
4209                } else if (returnXPathName) {
4210                    return "generateHasChanged";
4211                } else {
4212                    return "GenerateHasChanged";
4213                }
4214            }
4215            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _MinFeatures) {
4216                if (returnConstName) {
4217                    return MINFEATURES;
4218                } else if (returnSchemaName) {
4219                    return "minFeatures";
4220                } else if (returnXPathName) {
4221                    return "minFeatures";
4222                } else {
4223                    return "MinFeatures";
4224                }
4225            }
4226            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _ForME) {
4227                if (returnConstName) {
4228                    return FORME;
4229                } else if (returnSchemaName) {
4230                    return "forME";
4231                } else if (returnXPathName) {
4232                    return "forME";
4233                } else {
4234                    return "ForME";
4235                }
4236            }
4237            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _GenerateTagsFile) {
4238                if (returnConstName) {
4239                    return GENERATETAGSFILE;
4240                } else if (returnSchemaName) {
4241                    return "generateTagsFile";
4242                } else if (returnXPathName) {
4243                    return "generateTagsFile";
4244                } else {
4245                    return "GenerateTagsFile";
4246                }
4247            }
4248            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _GenerateTimeStamp) {
4249                if (returnConstName) {
4250                    return GENERATETIMESTAMP;
4251                } else if (returnSchemaName) {
4252                    return "generateTimeStamp";
4253                } else if (returnXPathName) {
4254                    return "generateTimeStamp";
4255                } else {
4256                    return "GenerateTimeStamp";
4257                }
4258            }
4259            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _Quiet) {
4260                if (returnConstName) {
4261                    return QUIET;
4262                } else if (returnSchemaName) {
4263                    return "quiet";
4264                } else if (returnXPathName) {
4265                    return "quiet";
4266                } else {
4267                    return "Quiet";
4268                }
4269            }
4270            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _MakeDefaults) {
4271                if (returnConstName) {
4272                    return MAKEDEFAULTS;
4273                } else if (returnSchemaName) {
4274                    return "makeDefaults";
4275                } else if (returnXPathName) {
4276                    return "makeDefaults";
4277                } else {
4278                    return "MakeDefaults";
4279                }
4280            }
4281            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _SetDefaults) {
4282                if (returnConstName) {
4283                    return SETDEFAULTS;
4284                } else if (returnSchemaName) {
4285                    return "setDefaults";
4286                } else if (returnXPathName) {
4287                    return "setDefaults";
4288                } else {
4289                    return "SetDefaults";
4290                }
4291            }
4292            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _TrimNonStrings) {
4293                if (returnConstName) {
4294                    return TRIMNONSTRINGS;
4295                } else if (returnSchemaName) {
4296                    return "trimNonStrings";
4297                } else if (returnXPathName) {
4298                    return "trimNonStrings";
4299                } else {
4300                    return "TrimNonStrings";
4301                }
4302            }
4303            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _UseRuntime) {
4304                if (returnConstName) {
4305                    return USERUNTIME;
4306                } else if (returnSchemaName) {
4307                    return "useRuntime";
4308                } else if (returnXPathName) {
4309                    return "useRuntime";
4310                } else {
4311                    return "UseRuntime";
4312                }
4313            }
4314            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _ExtendBaseBean) {
4315                if (returnConstName) {
4316                    return EXTENDBASEBEAN;
4317                } else if (returnSchemaName) {
4318                    return "extendBaseBean";
4319                } else if (returnXPathName) {
4320                    return "extendBaseBean";
4321                } else {
4322                    return "ExtendBaseBean";
4323                }
4324            }
4325            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _StaxProduceXMLEventReader) {
4326                if (returnConstName) {
4327                    return STAXPRODUCEXMLEVENTREADER;
4328                } else if (returnSchemaName) {
4329                    return "staxProduceXMLEventReader";
4330                } else if (returnXPathName) {
4331                    return "staxProduceXMLEventReader";
4332                } else {
4333                    return "StaxProduceXMLEventReader";
4334                }
4335            }
4336            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _StaxUseXMLEventReader) {
4337                if (returnConstName) {
4338                    return STAXUSEXMLEVENTREADER;
4339                } else if (returnSchemaName) {
4340                    return "staxUseXMLEventReader";
4341                } else if (returnXPathName) {
4342                    return "staxUseXMLEventReader";
4343                } else {
4344                    return "StaxUseXMLEventReader";
4345                }
4346            }
4347            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _OptionalScalars) {
4348                if (returnConstName) {
4349                    return OPTIONALSCALARS;
4350                } else if (returnSchemaName) {
4351                    return "optionalScalars";
4352                } else if (returnXPathName) {
4353                    return "optionalScalars";
4354                } else {
4355                    return "OptionalScalars";
4356                }
4357            }
4358            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _RespectExtension) {
4359                if (returnConstName) {
4360                    return RESPECTEXTENSION;
4361                } else if (returnSchemaName) {
4362                    return "respectExtension";
4363                } else if (returnXPathName) {
4364                    return "respectExtension";
4365                } else {
4366                    return "RespectExtension";
4367                }
4368            }
4369            if (((java.lang.Boolean JavaDoc)child).booleanValue() == _LogSuspicious) {
4370                if (returnConstName) {
4371                    return LOGSUSPICIOUS;
4372                } else if (returnSchemaName) {
4373                    return "logSuspicious";
4374                } else if (returnXPathName) {
4375                    return "logSuspicious";
4376                } else {
4377                    return "LogSuspicious";
4378                }
4379            }
4380        }
4381        if (childObj instanceof org.netbeans.modules.schema2beansdev.beangraph.BeanGraph) {
4382            org.netbeans.modules.schema2beansdev.beangraph.BeanGraph child = (org.netbeans.modules.schema2beansdev.beangraph.BeanGraph) childObj;
4383            int index = 0;
4384            for (java.util.Iterator JavaDoc it = _ReadBeanGraphs.iterator();
4385                it.hasNext(); ) {
4386                org.netbeans.modules.schema2beansdev.beangraph.BeanGraph element = (org.netbeans.modules.schema2beansdev.beangraph.BeanGraph)it.next();
4387                if (child == element) {
4388                    if (returnConstName) {
4389                        return READBEANGRAPHS;
4390                    } else if (returnSchemaName) {
4391                        return "readBeanGraphs";
4392                    } else if (returnXPathName) {
4393                        return "readBeanGraphs[position()="+index+"]";
4394                    } else {
4395                        return "ReadBeanGraphs."+Integer.toHexString(index);
4396                    }
4397                }
4398                ++index;
4399            }
4400        }
4401        return null;
4402    }
4403
4404    /**
4405     * Return an array of all of the properties that are beans and are set.
4406     */

4407    public java.lang.Object JavaDoc[] childBeans(boolean recursive) {
4408        java.util.List JavaDoc children = new java.util.LinkedList JavaDoc();
4409        childBeans(recursive, children);
4410        java.lang.Object JavaDoc[] result = new java.lang.Object JavaDoc[children.size()];
4411        return (java.lang.Object JavaDoc[]) children.toArray(result);
4412    }
4413
4414    /**
4415     * Put all child beans into the beans list.
4416     */

4417    public void childBeans(boolean recursive, java.util.List JavaDoc beans) {
4418    }
4419
4420    public boolean equals(Object JavaDoc o) {
4421        return o instanceof org.netbeans.modules.schema2beansdev.S2bConfig && equals((org.netbeans.modules.schema2beansdev.S2bConfig) o);
4422    }
4423
4424    public boolean equals(org.netbeans.modules.schema2beansdev.S2bConfig inst) {
4425        if (inst == this) {
4426            return true;
4427        }
4428        if (inst == null) {
4429            return false;
4430        }
4431        if (!(_SchemaType == null ? inst._SchemaType == null : _SchemaType.equals(inst._SchemaType))) {
4432            return false;
4433        }
4434        if (_isSet_TraceParse != inst._isSet_TraceParse) {
4435            return false;
4436        }
4437        if (_isSet_TraceParse) {
4438            if (!(_TraceParse == inst._TraceParse)) {
4439                return false;
4440            }
4441        }
4442        if (_isSet_TraceGen != inst._isSet_TraceGen) {
4443            return false;
4444        }
4445        if (_isSet_TraceGen) {
4446            if (!(_TraceGen == inst._TraceGen)) {
4447                return false;
4448            }
4449        }
4450        if (_isSet_TraceMisc != inst._isSet_TraceMisc) {
4451            return false;
4452        }
4453        if (_isSet_TraceMisc) {
4454            if (!(_TraceMisc == inst._TraceMisc)) {
4455                return false;
4456            }
4457        }
4458        if (_isSet_TraceDot != inst._isSet_TraceDot) {
4459            return false;
4460        }
4461        if (_isSet_TraceDot) {
4462            if (!(_TraceDot == inst._TraceDot)) {
4463                return false;
4464            }
4465        }
4466        if (!(_Filename == null ? inst._Filename == null : _Filename.equals(inst._Filename))) {
4467            return false;
4468        }
4469        if (!(_FileIn == null ? inst._FileIn == null : _FileIn.equals(inst._FileIn))) {
4470            return false;
4471        }
4472        if (!(_DocRoot == null ? inst._DocRoot == null : _DocRoot.equals(inst._DocRoot))) {
4473            return false;
4474        }
4475        if (!(_RootDir == null ? inst._RootDir == null : _RootDir.equals(inst._RootDir))) {
4476            return false;
4477        }
4478        if (!(_PackagePath == null ? inst._PackagePath == null : _PackagePath.equals(inst._PackagePath))) {
4479            return false;
4480        }
4481        if (!(_Indent == null ? inst._Indent == null : _Indent.equals(inst._Indent))) {
4482            return false;
4483        }
4484        if (_isSet_IndentAmount != inst._isSet_IndentAmount) {
4485            return false;
4486        }
4487        if (_isSet_IndentAmount) {
4488            if (!(_IndentAmount == inst._IndentAmount)) {
4489                return false;
4490            }
4491        }
4492        if (!(_MddFile == null ? inst._MddFile == null : _MddFile.equals(inst._MddFile))) {
4493            return false;
4494        }
4495        if (!(_MddIn == null ? inst._MddIn == null : _MddIn.equals(inst._MddIn))) {
4496            return false;
4497        }
4498        if (!(_MetaDD == null ? inst._MetaDD == null : _MetaDD.equals(inst._MetaDD))) {
4499            return false;
4500        }
4501        if (_isSet_DoGeneration != inst._isSet_DoGeneration) {
4502            return false;
4503        }
4504        if (_isSet_DoGeneration) {
4505            if (!(_DoGeneration == inst._DoGeneration)) {
4506                return false;
4507            }
4508        }
4509        if (_isSet_ScalarException != inst._isSet_ScalarException) {
4510            return false;
4511        }
4512        if (_isSet_ScalarException) {
4513            if (!(_ScalarException == inst._ScalarException)) {
4514                return false;
4515            }
4516        }
4517        if (_isSet_DumpToString != inst._isSet_DumpToString) {
4518            return false;
4519        }
4520        if (_isSet_DumpToString) {
4521            if (!(_DumpToString == inst._DumpToString)) {
4522                return false;
4523            }
4524        }
4525        if (_isSet_Vetoable != inst._isSet_Vetoable) {
4526            return false;
4527        }
4528        if (_isSet_Vetoable) {
4529            if (!(_Vetoable == inst._Vetoable)) {
4530                return false;
4531            }
4532        }
4533        if (_isSet_Standalone != inst._isSet_Standalone) {
4534            return false;
4535        }
4536        if (_isSet_Standalone) {
4537            if (!(_Standalone == inst._Standalone)) {
4538                return false;
4539            }
4540        }
4541        if (_isSet_Auto != inst._isSet_Auto) {
4542            return false;
4543        }
4544        if (_isSet_Auto) {
4545            if (!(_Auto == inst._Auto)) {
4546                return false;
4547            }
4548        }
4549        if (!(_MessageOut == null ? inst._MessageOut == null : _MessageOut.equals(inst._MessageOut))) {
4550            return false;
4551        }
4552        if (!(_OutputStreamProvider == null ? inst._OutputStreamProvider == null : _OutputStreamProvider.equals(inst._OutputStreamProvider))) {
4553            return false;
4554        }
4555        if (_isSet_ThrowErrors != inst._isSet_ThrowErrors) {
4556            return false;
4557        }
4558        if (_isSet_ThrowErrors) {
4559            if (!(_ThrowErrors == inst._ThrowErrors)) {
4560                return false;
4561            }
4562        }
4563        if (_isSet_GenerateXMLIO != inst._isSet_GenerateXMLIO) {
4564            return false;
4565        }
4566        if (_isSet_GenerateXMLIO) {
4567            if (!(_GenerateXMLIO == inst._GenerateXMLIO)) {
4568                return false;
4569            }
4570        }
4571        if (_isSet_GenerateValidate != inst._isSet_GenerateValidate) {
4572            return false;
4573        }
4574        if (_isSet_GenerateValidate) {
4575            if (!(_GenerateValidate == inst._GenerateValidate)) {
4576                return false;
4577            }
4578        }
4579        if (_isSet_GeneratePropertyEvents != inst._isSet_GeneratePropertyEvents) {
4580            return false;
4581        }
4582        if (_isSet_GeneratePropertyEvents) {
4583            if (!(_GeneratePropertyEvents == inst._GeneratePropertyEvents)) {
4584                return false;
4585            }
4586        }
4587        if (_isSet_GenerateStoreEvents != inst._isSet_GenerateStoreEvents) {
4588            return false;
4589        }
4590        if (_isSet_GenerateStoreEvents) {
4591            if (!(_GenerateStoreEvents == inst._GenerateStoreEvents)) {
4592                return false;
4593            }
4594        }
4595        if (_isSet_GenerateTransactions != inst._isSet_GenerateTransactions) {
4596            return false;
4597        }
4598        if (_isSet_GenerateTransactions) {
4599            if (!(_GenerateTransactions == inst._GenerateTransactions)) {
4600                return false;
4601            }
4602        }
4603        if (_isSet_AttributesAsProperties != inst._isSet_AttributesAsProperties) {
4604            return false;
4605        }
4606        if (_isSet_AttributesAsProperties) {
4607            if (!(_AttributesAsProperties == inst._AttributesAsProperties)) {
4608                return false;
4609            }
4610        }
4611        if (_isSet_GenerateDelegator != inst._isSet_GenerateDelegator) {
4612            return false;
4613        }
4614        if (_isSet_GenerateDelegator) {
4615            if (!(_GenerateDelegator == inst._GenerateDelegator)) {
4616                return false;
4617            }
4618        }
4619        if (!(_DelegateDir == null ? inst._DelegateDir == null : _DelegateDir.equals(inst._DelegateDir))) {
4620            return false;
4621        }
4622        if (!(_DelegatePackage == null ? inst._DelegatePackage == null : _DelegatePackage.equals(inst._DelegatePackage))) {
4623            return false;
4624        }
4625        if (!(_GenerateCommonInterface == null ? inst._GenerateCommonInterface == null : _GenerateCommonInterface.equals(inst._GenerateCommonInterface))) {
4626            return false;
4627        }
4628        if (_isSet_DefaultsAccessable != inst._isSet_DefaultsAccessable) {
4629            return false;
4630        }
4631        if (_isSet_DefaultsAccessable) {
4632            if (!(_DefaultsAccessable == inst._DefaultsAccessable)) {
4633                return false;
4634            }
4635        }
4636        if (_isSet_UseInterfaces != inst._isSet_UseInterfaces) {
4637            return false;
4638        }
4639        if (_isSet_UseInterfaces) {
4640            if (!(_UseInterfaces == inst._UseInterfaces)) {
4641                return false;
4642            }
4643        }
4644        if (_isSet_GenerateInterfaces != inst._isSet_GenerateInterfaces) {
4645            return false;
4646        }
4647        if (_isSet_GenerateInterfaces) {
4648            if (!(_GenerateInterfaces == inst._GenerateInterfaces)) {
4649                return false;
4650            }
4651        }
4652        if (_isSet_KeepElementPositions != inst._isSet_KeepElementPositions) {
4653            return false;
4654        }
4655        if (_isSet_KeepElementPositions) {
4656            if (!(_KeepElementPositions == inst._KeepElementPositions)) {
4657                return false;
4658            }
4659        }
4660        if (_isSet_RemoveUnreferencedNodes != inst._isSet_RemoveUnreferencedNodes) {
4661            return false;
4662        }
4663        if (_isSet_RemoveUnreferencedNodes) {
4664            if (!(_RemoveUnreferencedNodes == inst._RemoveUnreferencedNodes)) {
4665                return false;
4666            }
4667        }
4668        if (!(_InputURI == null ? inst._InputURI == null : _InputURI.equals(inst._InputURI))) {
4669            return false;
4670        }
4671        if (!(_IndexedPropertyType == null ? inst._IndexedPropertyType == null : _IndexedPropertyType.equals(inst._IndexedPropertyType))) {
4672            return false;
4673        }
4674        if (_isSet_DoCompile != inst._isSet_DoCompile) {
4675            return false;
4676        }
4677        if (_isSet_DoCompile) {
4678            if (!(_DoCompile == inst._DoCompile)) {
4679                return false;
4680            }
4681        }
4682        if (_isSet_GenerateSwitches != inst._isSet_GenerateSwitches) {
4683            return false;
4684        }
4685        if (_isSet_GenerateSwitches) {
4686            if (!(_GenerateSwitches == inst._GenerateSwitches)) {
4687                return false;
4688            }
4689        }
4690        if (!(_DumpBeanTree == null ? inst._DumpBeanTree == null : _DumpBeanTree.equals(inst._DumpBeanTree))) {
4691            return false;
4692        }
4693        if (!(_GenerateDotGraph == null ? inst._GenerateDotGraph == null : _GenerateDotGraph.equals(inst._GenerateDotGraph))) {
4694            return false;
4695        }
4696        if (_isSet_ProcessComments != inst._isSet_ProcessComments) {
4697            return false;
4698        }
4699        if (_isSet_ProcessComments) {
4700            if (!(_ProcessComments == inst._ProcessComments)) {
4701                return false;
4702            }
4703        }
4704        if (_isSet_ProcessDocType != inst._isSet_ProcessDocType) {
4705            return false;
4706        }
4707        if (_isSet_ProcessDocType) {
4708            if (!(_ProcessDocType == inst._ProcessDocType)) {
4709                return false;
4710            }
4711        }
4712        if (_isSet_CheckUpToDate != inst._isSet_CheckUpToDate) {
4713            return false;
4714        }
4715        if (_isSet_CheckUpToDate) {
4716            if (!(_CheckUpToDate == inst._CheckUpToDate)) {
4717                return false;
4718            }
4719        }
4720        if (_isSet_GenerateParentRefs != inst._isSet_GenerateParentRefs) {
4721            return false;
4722        }
4723        if (_isSet_GenerateParentRefs) {
4724            if (!(_GenerateParentRefs == inst._GenerateParentRefs)) {
4725                return false;
4726            }
4727        }
4728        if (_isSet_GenerateHasChanged != inst._isSet_GenerateHasChanged) {
4729            return false;
4730        }
4731        if (_isSet_GenerateHasChanged) {
4732            if (!(_GenerateHasChanged == inst._GenerateHasChanged)) {
4733                return false;
4734            }
4735        }
4736        if (_isSet_NewestSourceTime != inst._isSet_NewestSourceTime) {
4737            return false;
4738        }
4739        if (_isSet_NewestSourceTime) {
4740            if (!(_NewestSourceTime == inst._NewestSourceTime)) {
4741                return false;
4742            }
4743        }
4744        if (!(_WriteBeanGraphFile == null ? inst._WriteBeanGraphFile == null : _WriteBeanGraphFile.equals(inst._WriteBeanGraphFile))) {
4745            return false;
4746        }
4747        if (sizeReadBeanGraphFiles() != inst.sizeReadBeanGraphFiles())
4748            return false;
4749        // Compare every element.
4750
for (java.util.Iterator JavaDoc it = _ReadBeanGraphFiles.iterator(), it2 = inst._ReadBeanGraphFiles.iterator();
4751            it.hasNext() && it2.hasNext(); ) {
4752            java.io.File JavaDoc element = (java.io.File JavaDoc)it.next();
4753            java.io.File JavaDoc element2 = (java.io.File JavaDoc)it2.next();
4754            if (!(element == null ? element2 == null : element.equals(element2))) {
4755                return false;
4756            }
4757        }
4758        if (sizeReadBeanGraphs() != inst.sizeReadBeanGraphs())
4759            return false;
4760        // Compare every element.
4761
for (java.util.Iterator JavaDoc it = _ReadBeanGraphs.iterator(), it2 = inst._ReadBeanGraphs.iterator();
4762            it.hasNext() && it2.hasNext(); ) {
4763            org.netbeans.modules.schema2beansdev.beangraph.BeanGraph element = (org.netbeans.modules.schema2beansdev.beangraph.BeanGraph)it.next();
4764            org.netbeans.modules.schema2beansdev.beangraph.BeanGraph element2 = (org.netbeans.modules.schema2beansdev.beangraph.BeanGraph)it2.next();
4765            if (!(element == null ? element2 == null : element.equals(element2))) {
4766                return false;
4767            }
4768        }
4769        if (_isSet_MinFeatures != inst._isSet_MinFeatures) {
4770            return false;
4771        }
4772        if (_isSet_MinFeatures) {
4773            if (!(_MinFeatures == inst._MinFeatures)) {
4774                return false;
4775            }
4776        }
4777        if (_isSet_ForME != inst._isSet_ForME) {
4778            return false;
4779        }
4780        if (_isSet_ForME) {
4781            if (!(_ForME == inst._ForME)) {
4782                return false;
4783            }
4784        }
4785        if (_isSet_GenerateTagsFile != inst._isSet_GenerateTagsFile) {
4786            return false;
4787        }
4788        if (_isSet_GenerateTagsFile) {
4789            if (!(_GenerateTagsFile == inst._GenerateTagsFile)) {
4790                return false;
4791            }
4792        }
4793        if (!(_CodeGeneratorFactory == null ? inst._CodeGeneratorFactory == null : _CodeGeneratorFactory.equals(inst._CodeGeneratorFactory))) {
4794            return false;
4795        }
4796        if (_isSet_GenerateTimeStamp != inst._isSet_GenerateTimeStamp) {
4797            return false;
4798        }
4799        if (_isSet_GenerateTimeStamp) {
4800            if (!(_GenerateTimeStamp == inst._GenerateTimeStamp)) {
4801                return false;
4802            }
4803        }
4804        if (_isSet_Quiet != inst._isSet_Quiet) {
4805            return false;
4806        }
4807        if (_isSet_Quiet) {
4808            if (!(_Quiet == inst._Quiet)) {
4809                return false;
4810            }
4811        }
4812        if (!(_WriteConfig == null ? inst._WriteConfig == null : _WriteConfig.equals(inst._WriteConfig))) {
4813            return false;
4814        }
4815        if (sizeReadConfig() != inst.sizeReadConfig())
4816            return false;
4817        // Compare every element.
4818
for (java.util.Iterator JavaDoc it = _ReadConfig.iterator(), it2 = inst._ReadConfig.iterator();
4819            it.hasNext() && it2.hasNext(); ) {
4820            java.io.File JavaDoc element = (java.io.File JavaDoc)it.next();
4821            java.io.File JavaDoc element2 = (java.io.File JavaDoc)it2.next();
4822            if (!(element == null ? element2 == null : element.equals(element2))) {
4823                return false;
4824            }
4825        }
4826        if (_isSet_MakeDefaults != inst._isSet_MakeDefaults) {
4827            return false;
4828        }
4829        if (_isSet_MakeDefaults) {
4830            if (!(_MakeDefaults == inst._MakeDefaults)) {
4831                return false;
4832            }
4833        }
4834        if (_isSet_SetDefaults != inst._isSet_SetDefaults) {
4835            return false;
4836        }
4837        if (_isSet_SetDefaults) {
4838            if (!(_SetDefaults == inst._SetDefaults)) {
4839                return false;
4840            }
4841        }
4842        if (_isSet_TrimNonStrings != inst._isSet_TrimNonStrings) {
4843            return false;
4844        }
4845        if (_isSet_TrimNonStrings) {
4846            if (!(_TrimNonStrings == inst._TrimNonStrings)) {
4847                return false;
4848            }
4849        }
4850        if (_isSet_UseRuntime != inst._isSet_UseRuntime) {
4851            return false;
4852        }
4853        if (_isSet_UseRuntime) {
4854            if (!(_UseRuntime == inst._UseRuntime)) {
4855                return false;
4856            }
4857        }
4858        if (_isSet_ExtendBaseBean != inst._isSet_ExtendBaseBean) {
4859            return false;
4860        }
4861        if (_isSet_ExtendBaseBean) {
4862            if (!(_ExtendBaseBean == inst._ExtendBaseBean)) {
4863                return false;
4864            }
4865        }
4866        if (sizeFinder() != inst.sizeFinder())
4867            return false;
4868        // Compare every element.
4869
for (java.util.Iterator JavaDoc it = _Finder.iterator(), it2 = inst._Finder.iterator();
4870            it.hasNext() && it2.hasNext(); ) {
4871            java.lang.String JavaDoc element = (java.lang.String JavaDoc)it.next();
4872            java.lang.String JavaDoc element2 = (java.lang.String JavaDoc)it2.next();
4873            if (!(element == null ? element2 == null : element.equals(element2))) {
4874                return false;
4875            }
4876        }
4877        if (!(_Target == null ? inst._Target == null : _Target.equals(inst._Target))) {
4878            return false;
4879        }
4880        if (_isSet_StaxProduceXMLEventReader != inst._isSet_StaxProduceXMLEventReader) {
4881            return false;
4882        }
4883        if (_isSet_StaxProduceXMLEventReader) {
4884            if (!(_StaxProduceXMLEventReader == inst._StaxProduceXMLEventReader)) {
4885                return false;
4886            }
4887        }
4888        if (_isSet_StaxUseXMLEventReader != inst._isSet_StaxUseXMLEventReader) {
4889            return false;
4890        }
4891        if (_isSet_StaxUseXMLEventReader) {
4892            if (!(_StaxUseXMLEventReader == inst._StaxUseXMLEventReader)) {
4893                return false;
4894            }
4895        }
4896        if (_isSet_OptionalScalars != inst._isSet_OptionalScalars) {
4897            return false;
4898        }
4899        if (_isSet_OptionalScalars) {
4900            if (!(_OptionalScalars == inst._OptionalScalars)) {
4901                return false;
4902            }
4903        }
4904        if (!(_DefaultElementType == null ? inst._DefaultElementType == null : _DefaultElementType.equals(inst._DefaultElementType))) {
4905            return false;
4906        }
4907        if (_isSet_RespectExtension != inst._isSet_RespectExtension) {
4908            return false;
4909        }
4910        if (_isSet_RespectExtension) {
4911            if (!(_RespectExtension == inst._RespectExtension)) {
4912                return false;
4913            }
4914        }
4915        if (_isSet_LogSuspicious != inst._isSet_LogSuspicious) {
4916            return false;
4917        }
4918        if (_isSet_LogSuspicious) {
4919            if (!(_LogSuspicious == inst._LogSuspicious)) {
4920                return false;
4921            }
4922        }
4923        return true;
4924    }
4925
4926    public int hashCode() {
4927        int result = 17;
4928        result = 37*result + (_SchemaType == null ? 0 : _SchemaType.hashCode());
4929        result = 37*result + (_isSet_TraceParse ? 0 : (_TraceParse ? 0 : 1));
4930        result = 37*result + (_isSet_TraceGen ? 0 : (_TraceGen ? 0 : 1));
4931        result = 37*result + (_isSet_TraceMisc ? 0 : (_TraceMisc ? 0 : 1));
4932        result = 37*result + (_isSet_TraceDot ? 0 : (_TraceDot ? 0 : 1));
4933        result = 37*result + (_Filename == null ? 0 : _Filename.hashCode());
4934        result = 37*result + (_FileIn == null ? 0 : _FileIn.hashCode());
4935        result = 37*result + (_DocRoot == null ? 0 : _DocRoot.hashCode());
4936        result = 37*result + (_RootDir == null ? 0 : _RootDir.hashCode());
4937        result = 37*result + (_PackagePath == null ? 0 : _PackagePath.hashCode());
4938        result = 37*result + (_Indent == null ? 0 : _Indent.hashCode());
4939        result = 37*result + (_isSet_IndentAmount ? 0 : (_IndentAmount));
4940        result = 37*result + (_MddFile == null ? 0 : _MddFile.hashCode());
4941        result = 37*result + (_MddIn == null ? 0 : _MddIn.hashCode());
4942        result = 37*result + (_MetaDD == null ? 0 : _MetaDD.hashCode());
4943        result = 37*result + (_isSet_DoGeneration ? 0 : (_DoGeneration ? 0 : 1));
4944        result = 37*result + (_isSet_ScalarException ? 0 : (_ScalarException ? 0 : 1));
4945        result = 37*result + (_isSet_DumpToString ? 0 : (_DumpToString ? 0 : 1));
4946        result = 37*result + (_isSet_Vetoable ? 0 : (_Vetoable ? 0 : 1));
4947        result = 37*result + (_isSet_Standalone ? 0 : (_Standalone ? 0 : 1));
4948        result = 37*result + (_isSet_Auto ? 0 : (_Auto ? 0 : 1));
4949        result = 37*result + (_MessageOut == null ? 0 : _MessageOut.hashCode());
4950        result = 37*result + (_OutputStreamProvider == null ? 0 : _OutputStreamProvider.hashCode());
4951        result = 37*result + (_isSet_ThrowErrors ? 0 : (_ThrowErrors ? 0 : 1));
4952        result = 37*result + (_isSet_GenerateXMLIO ? 0 : (_GenerateXMLIO ? 0 : 1));
4953        result = 37*result + (_isSet_GenerateValidate ? 0 : (_GenerateValidate ? 0 : 1));
4954        result = 37*result + (_isSet_GeneratePropertyEvents ? 0 : (_GeneratePropertyEvents ? 0 : 1));
4955        result = 37*result + (_isSet_GenerateStoreEvents ? 0 : (_GenerateStoreEvents ? 0 : 1));
4956        result = 37*result + (_isSet_GenerateTransactions ? 0 : (_GenerateTransactions ? 0 : 1));
4957        result = 37*result + (_isSet_AttributesAsProperties ? 0 : (_AttributesAsProperties ? 0 : 1));
4958        result = 37*result + (_isSet_GenerateDelegator ? 0 : (_GenerateDelegator ? 0 : 1));
4959        result = 37*result + (_DelegateDir == null ? 0 : _DelegateDir.hashCode());
4960        result = 37*result + (_DelegatePackage == null ? 0 : _DelegatePackage.hashCode());
4961        result = 37*result + (_GenerateCommonInterface == null ? 0 : _GenerateCommonInterface.hashCode());
4962        result = 37*result + (_isSet_DefaultsAccessable ? 0 : (_DefaultsAccessable ? 0 : 1));
4963        result = 37*result + (_isSet_UseInterfaces ? 0 : (_UseInterfaces ? 0 : 1));
4964        result = 37*result + (_isSet_GenerateInterfaces ? 0 : (_GenerateInterfaces ? 0 : 1));
4965        result = 37*result + (_isSet_KeepElementPositions ? 0 : (_KeepElementPositions ? 0 : 1));
4966        result = 37*result + (_isSet_RemoveUnreferencedNodes ? 0 : (_RemoveUnreferencedNodes ? 0 : 1));
4967        result = 37*result + (_InputURI == null ? 0 : _InputURI.hashCode());
4968        result = 37*result + (_IndexedPropertyType == null ? 0 : _IndexedPropertyType.hashCode());
4969        result = 37*result + (_isSet_DoCompile ? 0 : (_DoCompile ? 0 : 1));
4970        result = 37*result + (_isSet_GenerateSwitches ? 0 : (_GenerateSwitches ? 0 : 1));
4971        result = 37*result + (_DumpBeanTree == null ? 0 : _DumpBeanTree.hashCode());
4972        result = 37*result + (_GenerateDotGraph == null ? 0 : _GenerateDotGraph.hashCode());
4973        result = 37*result + (_isSet_ProcessComments ? 0 : (_ProcessComments ? 0 : 1));
4974        result = 37*result + (_isSet_ProcessDocType ? 0 : (_ProcessDocType ? 0 : 1));
4975        result = 37*result + (_isSet_CheckUpToDate ? 0 : (_CheckUpToDate ? 0 : 1));
4976        result = 37*result + (_isSet_GenerateParentRefs ? 0 : (_GenerateParentRefs ? 0 : 1));
4977        result = 37*result + (_isSet_GenerateHasChanged ? 0 : (_GenerateHasChanged ? 0 : 1));
4978        result = 37*result + (_isSet_NewestSourceTime ? 0 : ((int)(_NewestSourceTime^(_NewestSourceTime>>>32))));
4979        result = 37*result + (_WriteBeanGraphFile == null ? 0 : _WriteBeanGraphFile.hashCode());
4980        result = 37*result + (_ReadBeanGraphFiles == null ? 0 : _ReadBeanGraphFiles.hashCode());
4981        result = 37*result + (_ReadBeanGraphs == null ? 0 : _ReadBeanGraphs.hashCode());
4982        result = 37*result + (_isSet_MinFeatures ? 0 : (_MinFeatures ? 0 : 1));
4983        result = 37*result + (_isSet_ForME ? 0 : (_ForME ? 0 : 1));
4984        result = 37*result + (_isSet_GenerateTagsFile ? 0 : (_GenerateTagsFile ? 0 : 1));
4985        result = 37*result + (_CodeGeneratorFactory == null ? 0 : _CodeGeneratorFactory.hashCode());
4986        result = 37*result + (_isSet_GenerateTimeStamp ? 0 : (_GenerateTimeStamp ? 0 : 1));
4987        result = 37*result + (_isSet_Quiet ? 0 : (_Quiet ? 0 : 1));
4988        result = 37*result + (_WriteConfig == null ? 0 : _WriteConfig.hashCode());
4989        result = 37*result + (_ReadConfig == null ? 0 : _ReadConfig.hashCode());
4990        result = 37*result + (_isSet_MakeDefaults ? 0 : (_MakeDefaults ? 0 : 1));
4991        result = 37*result + (_isSet_SetDefaults ? 0 : (_SetDefaults ? 0 : 1));
4992        result = 37*result + (_isSet_TrimNonStrings ? 0 : (_TrimNonStrings ? 0 : 1));
4993        result = 37*result + (_isSet_UseRuntime ? 0 : (_UseRuntime ? 0 : 1));
4994        result = 37*result + (_isSet_ExtendBaseBean ? 0 : (_ExtendBaseBean ? 0 : 1));
4995        result = 37*result + (_Finder == null ? 0 : _Finder.hashCode());
4996        result = 37*result + (_Target == null ? 0 : _Target.hashCode());
4997        result = 37*result + (_isSet_StaxProduceXMLEventReader ? 0 : (_StaxProduceXMLEventReader ? 0 : 1));
4998        result = 37*result + (_isSet_StaxUseXMLEventReader ? 0 : (_StaxUseXMLEventReader ? 0 : 1));
4999        result = 37*result + (_isSet_OptionalScalars ? 0 : (_OptionalScalars ? 0 : 1));
5000        result = 37*result + (_DefaultElementType == null ? 0 : _DefaultElementType.hashCode());
5001        result = 37*result + (_isSet_RespectExtension ? 0 : (_RespectExtension ? 0 : 1));
5002        result = 37*result + (_isSet_LogSuspicious ? 0 : (_LogSuspicious ? 0 : 1));
5003        return result;
5004    }
5005
5006    public String JavaDoc toString() {
5007        java.io.StringWriter JavaDoc sw = new java.io.StringWriter JavaDoc();
5008        try {
5009            writeNode(sw);
5010        } catch (java.io.IOException JavaDoc e) {
5011            // How can we actually get an IOException on a StringWriter?
5012
throw new RuntimeException JavaDoc(e);
5013        }
5014        return sw.toString();
5015    }
5016
5017}
5018
5019
Popular Tags