forked from apache/xmlbeans
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParameters.java
More file actions
355 lines (279 loc) · 8.33 KB
/
Parameters.java
File metadata and controls
355 lines (279 loc) · 8.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
/* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.xmlbeans.impl.tool;
import org.apache.xmlbeans.SchemaCodePrinter;
import org.apache.xmlbeans.XmlError;
import org.apache.xmlbeans.XmlOptions;
import org.xml.sax.EntityResolver;
import java.io.File;
import java.net.URL;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Set;
public class Parameters {
private File baseDir;
private File[] xsdFiles;
private File[] wsdlFiles;
private File[] javaFiles;
private File[] configFiles;
private URL[] urlFiles;
private File[] classpath;
private File outputJar;
private String name;
private File srcDir;
private File classesDir;
private String memoryInitialSize;
private String memoryMaximumSize;
private String compiler;
private boolean nojavac;
private boolean quiet;
private boolean verbose;
private boolean download;
private Collection<XmlError> errorListener;
private boolean noUpa;
private boolean noPvr;
private boolean noAnn;
private boolean noVDoc;
private boolean noExt;
private boolean debug;
private boolean copyAnn;
private boolean useShortJavaName;
private String sourceCodeEncoding;
private boolean incrementalSrcGen;
private String repackage;
private List<Extension> extensions = Collections.emptyList();
private Set<String> mdefNamespaces = Collections.emptySet();
private String catalogFile;
private SchemaCodePrinter schemaCodePrinter;
private EntityResolver entityResolver;
private Set<XmlOptions.BeanMethod> partialMethods = Collections.emptySet();
public File getBaseDir() {
return baseDir;
}
public void setBaseDir(File baseDir) {
this.baseDir = baseDir;
}
public File[] getXsdFiles() {
return xsdFiles;
}
public void setXsdFiles(File... xsdFiles) {
this.xsdFiles = xsdFiles == null ? null : xsdFiles.clone();
}
public File[] getWsdlFiles() {
return wsdlFiles;
}
public void setWsdlFiles(File... wsdlFiles) {
this.wsdlFiles = wsdlFiles == null ? null : wsdlFiles.clone();
}
public File[] getJavaFiles() {
return javaFiles;
}
public void setJavaFiles(File... javaFiles) {
this.javaFiles = javaFiles == null ? null : javaFiles.clone();
}
public File[] getConfigFiles() {
return configFiles;
}
public void setConfigFiles(File... configFiles) {
this.configFiles = configFiles == null ? null : configFiles.clone();
}
public URL[] getUrlFiles() {
return urlFiles;
}
public void setUrlFiles(URL... urlFiles) {
this.urlFiles = urlFiles == null ? null : urlFiles.clone();
}
public File[] getClasspath() {
return classpath;
}
public void setClasspath(File... classpath) {
this.classpath = classpath == null ? null : classpath.clone();
}
public File getOutputJar() {
return outputJar;
}
public void setOutputJar(File outputJar) {
this.outputJar = outputJar;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public File getSrcDir() {
return srcDir;
}
public void setSrcDir(File srcDir) {
this.srcDir = srcDir;
}
public File getClassesDir() {
return classesDir;
}
public void setClassesDir(File classesDir) {
this.classesDir = classesDir;
}
public boolean isNojavac() {
return nojavac;
}
public void setNojavac(boolean nojavac) {
this.nojavac = nojavac;
}
public boolean isQuiet() {
return quiet;
}
public void setQuiet(boolean quiet) {
this.quiet = quiet;
}
public boolean isVerbose() {
return verbose;
}
public void setVerbose(boolean verbose) {
this.verbose = verbose;
}
public boolean isDownload() {
return download;
}
public void setDownload(boolean download) {
this.download = download;
}
public boolean isNoUpa() {
return noUpa;
}
public void setNoUpa(boolean noUpa) {
this.noUpa = noUpa;
}
public boolean isNoPvr() {
return noPvr;
}
public void setNoPvr(boolean noPvr) {
this.noPvr = noPvr;
}
public boolean isNoAnn() {
return noAnn;
}
public boolean isUseShortJavaName() {
return useShortJavaName;
}
public String getSourceCodeEncoding() {
return sourceCodeEncoding;
}
public void setNoAnn(boolean noAnn) {
this.noAnn = noAnn;
}
public boolean isNoVDoc() {
return noVDoc;
}
public void setNoVDoc(boolean newNoVDoc) {
this.noVDoc = newNoVDoc;
}
public boolean isNoExt() {
return noExt;
}
public void setNoExt(boolean newNoExt) {
this.noExt = newNoExt;
}
public boolean isIncrementalSrcGen() {
return incrementalSrcGen;
}
public void setIncrementalSrcGen(boolean incrSrcGen) {
this.incrementalSrcGen = incrSrcGen;
}
public boolean isDebug() {
return debug;
}
public void setDebug(boolean debug) {
this.debug = debug;
}
public void setUseShortJavaName(boolean useShortJavaName) {
this.useShortJavaName = useShortJavaName;
}
public void setSourceCodeEncoding(String sourceCodeEncoding) {
this.sourceCodeEncoding = sourceCodeEncoding;
}
public String getMemoryInitialSize() {
return memoryInitialSize;
}
public void setMemoryInitialSize(String memoryInitialSize) {
this.memoryInitialSize = memoryInitialSize;
}
public String getMemoryMaximumSize() {
return memoryMaximumSize;
}
public void setMemoryMaximumSize(String memoryMaximumSize) {
this.memoryMaximumSize = memoryMaximumSize;
}
public String getCompiler() {
return compiler;
}
public void setCompiler(String compiler) {
this.compiler = compiler;
}
public Collection<XmlError> getErrorListener() {
return errorListener;
}
public void setErrorListener(Collection<XmlError> errorListener) {
this.errorListener = errorListener;
}
public String getRepackage() {
return repackage;
}
public void setRepackage(String newRepackage) {
repackage = newRepackage;
}
public boolean isCopyAnn() {
return copyAnn;
}
public void setCopyAnn(boolean newCopyAnn) {
copyAnn = newCopyAnn;
}
public List<Extension> getExtensions() {
return extensions;
}
public void setExtensions(List<Extension> extensions) {
this.extensions = extensions;
}
public Set<String> getMdefNamespaces() {
return mdefNamespaces;
}
public void setMdefNamespaces(Set<String> mdefNamespaces) {
this.mdefNamespaces = mdefNamespaces;
}
public String getCatalogFile() {
return catalogFile;
}
public void setCatalogFile(String catalogPropFile) {
this.catalogFile = catalogPropFile;
}
public SchemaCodePrinter getSchemaCodePrinter() {
return schemaCodePrinter;
}
public void setSchemaCodePrinter(SchemaCodePrinter schemaCodePrinter) {
this.schemaCodePrinter = schemaCodePrinter;
}
public EntityResolver getEntityResolver() {
return entityResolver;
}
public void setEntityResolver(EntityResolver entityResolver) {
this.entityResolver = entityResolver;
}
public Set<XmlOptions.BeanMethod> getPartialMethods() {
return partialMethods;
}
public void setPartialMethods(Set<XmlOptions.BeanMethod> partialMethods) {
this.partialMethods = partialMethods;
}
}