1 | // SECTION-START[License Header] |
2 | // <editor-fold defaultstate="collapsed" desc=" Generated License "> |
3 | /* |
4 | * Java Object Management and Configuration |
5 | * Copyright (C) Christian Schulte, 2005-206 |
6 | * All rights reserved. |
7 | * |
8 | * Redistribution and use in source and binary forms, with or without |
9 | * modification, are permitted provided that the following conditions |
10 | * are met: |
11 | * |
12 | * o Redistributions of source code must retain the above copyright |
13 | * notice, this list of conditions and the following disclaimer. |
14 | * |
15 | * o Redistributions in binary form must reproduce the above copyright |
16 | * notice, this list of conditions and the following disclaimer in |
17 | * the documentation and/or other materials provided with the |
18 | * distribution. |
19 | * |
20 | * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, |
21 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY |
22 | * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL |
23 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, |
24 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
25 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
26 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
27 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
28 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
29 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 | * |
31 | * $JOMC: ValidateModelCommand.java 4881 2014-02-20 22:55:53Z schulte $ |
32 | * |
33 | */ |
34 | // </editor-fold> |
35 | // SECTION-END |
36 | package org.jomc.cli.commands; |
37 | |
38 | import java.io.IOException; |
39 | import java.util.logging.Level; |
40 | import org.apache.commons.cli.CommandLine; |
41 | import org.jomc.modlet.Model; |
42 | import org.jomc.modlet.ModelContext; |
43 | import org.jomc.modlet.ModelException; |
44 | import org.jomc.modlet.ModelValidationReport; |
45 | |
46 | // SECTION-START[Documentation] |
47 | // <editor-fold defaultstate="collapsed" desc=" Generated Documentation "> |
48 | /** |
49 | * JOMC ⁑ CLI ⁑ {@code validate-model} command implementation. |
50 | * |
51 | * <dl> |
52 | * <dt><b>Identifier:</b></dt><dd>JOMC ⁑ CLI ⁑ Default validate-model Command</dd> |
53 | * <dt><b>Name:</b></dt><dd>JOMC ⁑ CLI ⁑ Default validate-model Command</dd> |
54 | * <dt><b>Specifications:</b></dt> |
55 | * <dd>JOMC ⁑ CLI ⁑ Command @ 1.0</dd> |
56 | * <dt><b>Abstract:</b></dt><dd>No</dd> |
57 | * <dt><b>Final:</b></dt><dd>No</dd> |
58 | * <dt><b>Stateless:</b></dt><dd>No</dd> |
59 | * </dl> |
60 | * |
61 | * @author <a href="mailto:cs@schulte.it">Christian Schulte</a> 1.0 |
62 | * @version 1.6 |
63 | */ |
64 | // </editor-fold> |
65 | // SECTION-END |
66 | // SECTION-START[Annotations] |
67 | // <editor-fold defaultstate="collapsed" desc=" Generated Annotations "> |
68 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
69 | // </editor-fold> |
70 | // SECTION-END |
71 | public final class ValidateModelCommand extends AbstractModelCommand |
72 | { |
73 | // SECTION-START[Command] |
74 | // SECTION-END |
75 | // SECTION-START[ValidateModelCommand] |
76 | |
77 | protected void executeCommand( final CommandLine commandLine ) throws CommandExecutionException |
78 | { |
79 | if ( commandLine == null ) |
80 | { |
81 | throw new NullPointerException( "commandLine" ); |
82 | } |
83 | |
84 | CommandLineClassLoader classLoader = null; |
85 | boolean suppressExceptionOnClose = true; |
86 | |
87 | try |
88 | { |
89 | classLoader = new CommandLineClassLoader( commandLine ); |
90 | final ModelContext context = this.createModelContext( commandLine, classLoader ); |
91 | final Model model = this.getModel( context, commandLine ); |
92 | final ModelValidationReport validationReport = context.validateModel( model ); |
93 | this.log( validationReport, context.createMarshaller( model.getIdentifier() ) ); |
94 | |
95 | if ( !validationReport.isModelValid() ) |
96 | { |
97 | throw new CommandExecutionException( this.getInvalidModelMessage( |
98 | this.getLocale(), this.getModel( commandLine ) ) ); |
99 | |
100 | } |
101 | |
102 | suppressExceptionOnClose = false; |
103 | } |
104 | catch ( final ModelException e ) |
105 | { |
106 | throw new CommandExecutionException( getExceptionMessage( e ), e ); |
107 | } |
108 | finally |
109 | { |
110 | try |
111 | { |
112 | if ( classLoader != null ) |
113 | { |
114 | classLoader.close(); |
115 | } |
116 | } |
117 | catch ( final IOException e ) |
118 | { |
119 | if ( suppressExceptionOnClose ) |
120 | { |
121 | this.log( Level.SEVERE, getExceptionMessage( e ), e ); |
122 | } |
123 | else |
124 | { |
125 | throw new CommandExecutionException( getExceptionMessage( e ), e ); |
126 | } |
127 | } |
128 | } |
129 | } |
130 | |
131 | // SECTION-END |
132 | // SECTION-START[Constructors] |
133 | // <editor-fold defaultstate="collapsed" desc=" Generated Constructors "> |
134 | /** Creates a new {@code ValidateModelCommand} instance. */ |
135 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
136 | public ValidateModelCommand() |
137 | { |
138 | // SECTION-START[Default Constructor] |
139 | super(); |
140 | // SECTION-END |
141 | } |
142 | // </editor-fold> |
143 | // SECTION-END |
144 | // SECTION-START[Dependencies] |
145 | // <editor-fold defaultstate="collapsed" desc=" Generated Dependencies "> |
146 | /** |
147 | * Gets the {@code <Classpath Option>} dependency. |
148 | * <p> |
149 | * This method returns the {@code <JOMC ⁑ CLI ⁑ Classpath Option>} object of the {@code <JOMC ⁑ CLI ⁑ Command Option>} specification at specification level 1.2. |
150 | * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. |
151 | * </p> |
152 | * <dl> |
153 | * <dt><b>Final:</b></dt><dd>No</dd> |
154 | * </dl> |
155 | * @return The {@code <Classpath Option>} dependency. |
156 | * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. |
157 | */ |
158 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
159 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
160 | private org.apache.commons.cli.Option getClasspathOption() |
161 | { |
162 | final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Classpath Option" ); |
163 | assert _d != null : "'Classpath Option' dependency not found."; |
164 | return _d; |
165 | } |
166 | /** |
167 | * Gets the {@code <Documents Option>} dependency. |
168 | * <p> |
169 | * This method returns the {@code <JOMC ⁑ CLI ⁑ Documents Option>} object of the {@code <JOMC ⁑ CLI ⁑ Command Option>} specification at specification level 1.2. |
170 | * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. |
171 | * </p> |
172 | * <dl> |
173 | * <dt><b>Final:</b></dt><dd>No</dd> |
174 | * </dl> |
175 | * @return The {@code <Documents Option>} dependency. |
176 | * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. |
177 | */ |
178 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
179 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
180 | private org.apache.commons.cli.Option getDocumentsOption() |
181 | { |
182 | final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Documents Option" ); |
183 | assert _d != null : "'Documents Option' dependency not found."; |
184 | return _d; |
185 | } |
186 | /** |
187 | * Gets the {@code <Locale>} dependency. |
188 | * <p> |
189 | * This method returns the {@code <default>} object of the {@code <java.util.Locale>} specification at specification level 1.1. |
190 | * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. |
191 | * </p> |
192 | * <dl> |
193 | * <dt><b>Final:</b></dt><dd>No</dd> |
194 | * </dl> |
195 | * @return The {@code <Locale>} dependency. |
196 | * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. |
197 | */ |
198 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
199 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
200 | private java.util.Locale getLocale() |
201 | { |
202 | final java.util.Locale _d = (java.util.Locale) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Locale" ); |
203 | assert _d != null : "'Locale' dependency not found."; |
204 | return _d; |
205 | } |
206 | /** |
207 | * Gets the {@code <Model Context Factory Option>} dependency. |
208 | * <p> |
209 | * This method returns the {@code <JOMC ⁑ CLI ⁑ ModelContextFactory Class Name Option>} object of the {@code <JOMC ⁑ CLI ⁑ Command Option>} specification at specification level 1.2. |
210 | * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. |
211 | * </p> |
212 | * <dl> |
213 | * <dt><b>Final:</b></dt><dd>No</dd> |
214 | * </dl> |
215 | * @return The {@code <Model Context Factory Option>} dependency. |
216 | * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. |
217 | */ |
218 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
219 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
220 | private org.apache.commons.cli.Option getModelContextFactoryOption() |
221 | { |
222 | final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Model Context Factory Option" ); |
223 | assert _d != null : "'Model Context Factory Option' dependency not found."; |
224 | return _d; |
225 | } |
226 | /** |
227 | * Gets the {@code <Model Option>} dependency. |
228 | * <p> |
229 | * This method returns the {@code <JOMC ⁑ CLI ⁑ Model Option>} object of the {@code <JOMC ⁑ CLI ⁑ Command Option>} specification at specification level 1.2. |
230 | * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. |
231 | * </p> |
232 | * <dl> |
233 | * <dt><b>Final:</b></dt><dd>No</dd> |
234 | * </dl> |
235 | * @return The {@code <Model Option>} dependency. |
236 | * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. |
237 | */ |
238 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
239 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
240 | private org.apache.commons.cli.Option getModelOption() |
241 | { |
242 | final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Model Option" ); |
243 | assert _d != null : "'Model Option' dependency not found."; |
244 | return _d; |
245 | } |
246 | /** |
247 | * Gets the {@code <Modlet Location Option>} dependency. |
248 | * <p> |
249 | * This method returns the {@code <JOMC ⁑ CLI ⁑ Modlet Location Option>} object of the {@code <JOMC ⁑ CLI ⁑ Command Option>} specification at specification level 1.2. |
250 | * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. |
251 | * </p> |
252 | * <dl> |
253 | * <dt><b>Final:</b></dt><dd>No</dd> |
254 | * </dl> |
255 | * @return The {@code <Modlet Location Option>} dependency. |
256 | * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. |
257 | */ |
258 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
259 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
260 | private org.apache.commons.cli.Option getModletLocationOption() |
261 | { |
262 | final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Modlet Location Option" ); |
263 | assert _d != null : "'Modlet Location Option' dependency not found."; |
264 | return _d; |
265 | } |
266 | /** |
267 | * Gets the {@code <Modlet Schema System Id Option>} dependency. |
268 | * <p> |
269 | * This method returns the {@code <JOMC ⁑ CLI ⁑ Modlet Schema System Id Option>} object of the {@code <JOMC ⁑ CLI ⁑ Command Option>} specification at specification level 1.2. |
270 | * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. |
271 | * </p> |
272 | * <dl> |
273 | * <dt><b>Final:</b></dt><dd>No</dd> |
274 | * </dl> |
275 | * @return The {@code <Modlet Schema System Id Option>} dependency. |
276 | * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. |
277 | */ |
278 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
279 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
280 | private org.apache.commons.cli.Option getModletSchemaSystemIdOption() |
281 | { |
282 | final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Modlet Schema System Id Option" ); |
283 | assert _d != null : "'Modlet Schema System Id Option' dependency not found."; |
284 | return _d; |
285 | } |
286 | /** |
287 | * Gets the {@code <Module Location Option>} dependency. |
288 | * <p> |
289 | * This method returns the {@code <JOMC ⁑ CLI ⁑ Module Location Option>} object of the {@code <JOMC ⁑ CLI ⁑ Command Option>} specification at specification level 1.2. |
290 | * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. |
291 | * </p> |
292 | * <dl> |
293 | * <dt><b>Final:</b></dt><dd>No</dd> |
294 | * </dl> |
295 | * @return The {@code <Module Location Option>} dependency. |
296 | * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. |
297 | */ |
298 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
299 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
300 | private org.apache.commons.cli.Option getModuleLocationOption() |
301 | { |
302 | final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Module Location Option" ); |
303 | assert _d != null : "'Module Location Option' dependency not found."; |
304 | return _d; |
305 | } |
306 | /** |
307 | * Gets the {@code <No Classpath Resolution Option>} dependency. |
308 | * <p> |
309 | * This method returns the {@code <JOMC ⁑ CLI ⁑ No Classpath Resolution Option>} object of the {@code <JOMC ⁑ CLI ⁑ Command Option>} specification at specification level 1.2. |
310 | * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. |
311 | * </p> |
312 | * <dl> |
313 | * <dt><b>Final:</b></dt><dd>No</dd> |
314 | * </dl> |
315 | * @return The {@code <No Classpath Resolution Option>} dependency. |
316 | * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. |
317 | */ |
318 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
319 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
320 | private org.apache.commons.cli.Option getNoClasspathResolutionOption() |
321 | { |
322 | final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "No Classpath Resolution Option" ); |
323 | assert _d != null : "'No Classpath Resolution Option' dependency not found."; |
324 | return _d; |
325 | } |
326 | /** |
327 | * Gets the {@code <No Java Validation Option>} dependency. |
328 | * <p> |
329 | * This method returns the {@code <JOMC ⁑ CLI ⁑ No Java Validation Option>} object of the {@code <JOMC ⁑ CLI ⁑ Command Option>} specification at specification level 1.2. |
330 | * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. |
331 | * </p> |
332 | * <dl> |
333 | * <dt><b>Final:</b></dt><dd>No</dd> |
334 | * </dl> |
335 | * @return The {@code <No Java Validation Option>} dependency. |
336 | * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. |
337 | */ |
338 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
339 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
340 | private org.apache.commons.cli.Option getNoJavaValidationOption() |
341 | { |
342 | final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "No Java Validation Option" ); |
343 | assert _d != null : "'No Java Validation Option' dependency not found."; |
344 | return _d; |
345 | } |
346 | /** |
347 | * Gets the {@code <No Model Processing Option>} dependency. |
348 | * <p> |
349 | * This method returns the {@code <JOMC ⁑ CLI ⁑ No Model Processing Option>} object of the {@code <JOMC ⁑ CLI ⁑ Command Option>} specification at specification level 1.2. |
350 | * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. |
351 | * </p> |
352 | * <dl> |
353 | * <dt><b>Final:</b></dt><dd>No</dd> |
354 | * </dl> |
355 | * @return The {@code <No Model Processing Option>} dependency. |
356 | * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. |
357 | */ |
358 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
359 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
360 | private org.apache.commons.cli.Option getNoModelProcessingOption() |
361 | { |
362 | final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "No Model Processing Option" ); |
363 | assert _d != null : "'No Model Processing Option' dependency not found."; |
364 | return _d; |
365 | } |
366 | /** |
367 | * Gets the {@code <No Model Resource Validation>} dependency. |
368 | * <p> |
369 | * This method returns the {@code <JOMC ⁑ CLI ⁑ No Model Resource Validation Option>} object of the {@code <JOMC ⁑ CLI ⁑ Command Option>} specification at specification level 1.2. |
370 | * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. |
371 | * </p> |
372 | * <dl> |
373 | * <dt><b>Final:</b></dt><dd>No</dd> |
374 | * </dl> |
375 | * @return The {@code <No Model Resource Validation>} dependency. |
376 | * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. |
377 | */ |
378 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
379 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
380 | private org.apache.commons.cli.Option getNoModelResourceValidation() |
381 | { |
382 | final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "No Model Resource Validation" ); |
383 | assert _d != null : "'No Model Resource Validation' dependency not found."; |
384 | return _d; |
385 | } |
386 | /** |
387 | * Gets the {@code <No Modlet Resource Validation>} dependency. |
388 | * <p> |
389 | * This method returns the {@code <JOMC ⁑ CLI ⁑ No Modlet Resource Validation Option>} object of the {@code <JOMC ⁑ CLI ⁑ Command Option>} specification at specification level 1.2. |
390 | * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. |
391 | * </p> |
392 | * <dl> |
393 | * <dt><b>Final:</b></dt><dd>No</dd> |
394 | * </dl> |
395 | * @return The {@code <No Modlet Resource Validation>} dependency. |
396 | * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. |
397 | */ |
398 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
399 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
400 | private org.apache.commons.cli.Option getNoModletResourceValidation() |
401 | { |
402 | final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "No Modlet Resource Validation" ); |
403 | assert _d != null : "'No Modlet Resource Validation' dependency not found."; |
404 | return _d; |
405 | } |
406 | /** |
407 | * Gets the {@code <Platform Provider Location Option>} dependency. |
408 | * <p> |
409 | * This method returns the {@code <JOMC ⁑ CLI ⁑ Platform Provider Location Option>} object of the {@code <JOMC ⁑ CLI ⁑ Command Option>} specification at specification level 1.2. |
410 | * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. |
411 | * </p> |
412 | * <dl> |
413 | * <dt><b>Final:</b></dt><dd>No</dd> |
414 | * </dl> |
415 | * @return The {@code <Platform Provider Location Option>} dependency. |
416 | * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. |
417 | */ |
418 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
419 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
420 | private org.apache.commons.cli.Option getPlatformProviderLocationOption() |
421 | { |
422 | final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Platform Provider Location Option" ); |
423 | assert _d != null : "'Platform Provider Location Option' dependency not found."; |
424 | return _d; |
425 | } |
426 | /** |
427 | * Gets the {@code <Provider Location Option>} dependency. |
428 | * <p> |
429 | * This method returns the {@code <JOMC ⁑ CLI ⁑ Provider Location Option>} object of the {@code <JOMC ⁑ CLI ⁑ Command Option>} specification at specification level 1.2. |
430 | * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. |
431 | * </p> |
432 | * <dl> |
433 | * <dt><b>Final:</b></dt><dd>No</dd> |
434 | * </dl> |
435 | * @return The {@code <Provider Location Option>} dependency. |
436 | * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. |
437 | */ |
438 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
439 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
440 | private org.apache.commons.cli.Option getProviderLocationOption() |
441 | { |
442 | final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Provider Location Option" ); |
443 | assert _d != null : "'Provider Location Option' dependency not found."; |
444 | return _d; |
445 | } |
446 | /** |
447 | * Gets the {@code <Transformer Location Option>} dependency. |
448 | * <p> |
449 | * This method returns the {@code <JOMC ⁑ CLI ⁑ Transformer Location Option>} object of the {@code <JOMC ⁑ CLI ⁑ Command Option>} specification at specification level 1.2. |
450 | * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. |
451 | * </p> |
452 | * <dl> |
453 | * <dt><b>Final:</b></dt><dd>No</dd> |
454 | * </dl> |
455 | * @return The {@code <Transformer Location Option>} dependency. |
456 | * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. |
457 | */ |
458 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
459 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
460 | private org.apache.commons.cli.Option getTransformerLocationOption() |
461 | { |
462 | final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Transformer Location Option" ); |
463 | assert _d != null : "'Transformer Location Option' dependency not found."; |
464 | return _d; |
465 | } |
466 | // </editor-fold> |
467 | // SECTION-END |
468 | // SECTION-START[Properties] |
469 | // <editor-fold defaultstate="collapsed" desc=" Generated Properties "> |
470 | /** |
471 | * Gets the value of the {@code <Abbreviated Command Name>} property. |
472 | * <p><dl> |
473 | * <dt><b>Final:</b></dt><dd>No</dd> |
474 | * </dl></p> |
475 | * @return Abbreviated name of the command. |
476 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
477 | */ |
478 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
479 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
480 | private java.lang.String getAbbreviatedCommandName() |
481 | { |
482 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Abbreviated Command Name" ); |
483 | assert _p != null : "'Abbreviated Command Name' property not found."; |
484 | return _p; |
485 | } |
486 | /** |
487 | * Gets the value of the {@code <Application Modlet>} property. |
488 | * <p><dl> |
489 | * <dt><b>Final:</b></dt><dd>Yes</dd> |
490 | * </dl></p> |
491 | * @return Name of the 'shaded' application modlet. |
492 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
493 | */ |
494 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
495 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
496 | private java.lang.String getApplicationModlet() |
497 | { |
498 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Application Modlet" ); |
499 | assert _p != null : "'Application Modlet' property not found."; |
500 | return _p; |
501 | } |
502 | /** |
503 | * Gets the value of the {@code <Command Name>} property. |
504 | * <p><dl> |
505 | * <dt><b>Final:</b></dt><dd>No</dd> |
506 | * </dl></p> |
507 | * @return Name of the command. |
508 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
509 | */ |
510 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
511 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
512 | private java.lang.String getCommandName() |
513 | { |
514 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Command Name" ); |
515 | assert _p != null : "'Command Name' property not found."; |
516 | return _p; |
517 | } |
518 | /** |
519 | * Gets the value of the {@code <Modlet Excludes>} property. |
520 | * <p><dl> |
521 | * <dt><b>Final:</b></dt><dd>Yes</dd> |
522 | * </dl></p> |
523 | * @return List of modlet names to exclude from any {@code META-INF/jomc-modlet.xml} files separated by {@code :}. |
524 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
525 | */ |
526 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
527 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
528 | private java.lang.String getModletExcludes() |
529 | { |
530 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Modlet Excludes" ); |
531 | assert _p != null : "'Modlet Excludes' property not found."; |
532 | return _p; |
533 | } |
534 | /** |
535 | * Gets the value of the {@code <Provider Excludes>} property. |
536 | * <p><dl> |
537 | * <dt><b>Final:</b></dt><dd>Yes</dd> |
538 | * </dl></p> |
539 | * @return List of providers to exclude from any {@code META-INF/services} files separated by {@code :}. |
540 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
541 | */ |
542 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
543 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
544 | private java.lang.String getProviderExcludes() |
545 | { |
546 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Provider Excludes" ); |
547 | assert _p != null : "'Provider Excludes' property not found."; |
548 | return _p; |
549 | } |
550 | /** |
551 | * Gets the value of the {@code <Schema Excludes>} property. |
552 | * <p><dl> |
553 | * <dt><b>Final:</b></dt><dd>Yes</dd> |
554 | * </dl></p> |
555 | * @return List of schema context-ids to exclude from any {@code META-INF/jomc-modlet.xml} files separated by {@code :}. |
556 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
557 | */ |
558 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
559 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
560 | private java.lang.String getSchemaExcludes() |
561 | { |
562 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Schema Excludes" ); |
563 | assert _p != null : "'Schema Excludes' property not found."; |
564 | return _p; |
565 | } |
566 | /** |
567 | * Gets the value of the {@code <Service Excludes>} property. |
568 | * <p><dl> |
569 | * <dt><b>Final:</b></dt><dd>Yes</dd> |
570 | * </dl></p> |
571 | * @return List of service classes to exclude from any {@code META-INF/jomc-modlet.xml} files separated by {@code :}. |
572 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
573 | */ |
574 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
575 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
576 | private java.lang.String getServiceExcludes() |
577 | { |
578 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Service Excludes" ); |
579 | assert _p != null : "'Service Excludes' property not found."; |
580 | return _p; |
581 | } |
582 | // </editor-fold> |
583 | // SECTION-END |
584 | // SECTION-START[Messages] |
585 | // <editor-fold defaultstate="collapsed" desc=" Generated Messages "> |
586 | /** |
587 | * Gets the text of the {@code <Application Title>} message. |
588 | * <p><dl> |
589 | * <dt><b>Languages:</b></dt> |
590 | * <dd>English (default)</dd> |
591 | * <dt><b>Final:</b></dt><dd>No</dd> |
592 | * </dl></p> |
593 | * @param locale The locale of the message to return. |
594 | * @return The text of the {@code <Application Title>} message for {@code locale}. |
595 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
596 | */ |
597 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
598 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
599 | private String getApplicationTitle( final java.util.Locale locale ) |
600 | { |
601 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Application Title", locale ); |
602 | assert _m != null : "'Application Title' message not found."; |
603 | return _m; |
604 | } |
605 | /** |
606 | * Gets the text of the {@code <Cannot Process Message>} message. |
607 | * <p><dl> |
608 | * <dt><b>Languages:</b></dt> |
609 | * <dd>English (default)</dd> |
610 | * <dd>Deutsch</dd> |
611 | * <dt><b>Final:</b></dt><dd>No</dd> |
612 | * </dl></p> |
613 | * @param locale The locale of the message to return. |
614 | * @param itemInfo Format argument. |
615 | * @param detailMessage Format argument. |
616 | * @return The text of the {@code <Cannot Process Message>} message for {@code locale}. |
617 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
618 | */ |
619 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
620 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
621 | private String getCannotProcessMessage( final java.util.Locale locale, final java.lang.String itemInfo, final java.lang.String detailMessage ) |
622 | { |
623 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Cannot Process Message", locale, itemInfo, detailMessage ); |
624 | assert _m != null : "'Cannot Process Message' message not found."; |
625 | return _m; |
626 | } |
627 | /** |
628 | * Gets the text of the {@code <Classpath Element Info>} message. |
629 | * <p><dl> |
630 | * <dt><b>Languages:</b></dt> |
631 | * <dd>English (default)</dd> |
632 | * <dd>Deutsch</dd> |
633 | * <dt><b>Final:</b></dt><dd>No</dd> |
634 | * </dl></p> |
635 | * @param locale The locale of the message to return. |
636 | * @param classpathElement Format argument. |
637 | * @return The text of the {@code <Classpath Element Info>} message for {@code locale}. |
638 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
639 | */ |
640 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
641 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
642 | private String getClasspathElementInfo( final java.util.Locale locale, final java.lang.String classpathElement ) |
643 | { |
644 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Classpath Element Info", locale, classpathElement ); |
645 | assert _m != null : "'Classpath Element Info' message not found."; |
646 | return _m; |
647 | } |
648 | /** |
649 | * Gets the text of the {@code <Classpath Element Not Found Warning>} message. |
650 | * <p><dl> |
651 | * <dt><b>Languages:</b></dt> |
652 | * <dd>English (default)</dd> |
653 | * <dd>Deutsch</dd> |
654 | * <dt><b>Final:</b></dt><dd>No</dd> |
655 | * </dl></p> |
656 | * @param locale The locale of the message to return. |
657 | * @param fileName Format argument. |
658 | * @return The text of the {@code <Classpath Element Not Found Warning>} message for {@code locale}. |
659 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
660 | */ |
661 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
662 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
663 | private String getClasspathElementNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName ) |
664 | { |
665 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Classpath Element Not Found Warning", locale, fileName ); |
666 | assert _m != null : "'Classpath Element Not Found Warning' message not found."; |
667 | return _m; |
668 | } |
669 | /** |
670 | * Gets the text of the {@code <Command Failure Message>} message. |
671 | * <p><dl> |
672 | * <dt><b>Languages:</b></dt> |
673 | * <dd>English (default)</dd> |
674 | * <dd>Deutsch</dd> |
675 | * <dt><b>Final:</b></dt><dd>No</dd> |
676 | * </dl></p> |
677 | * @param locale The locale of the message to return. |
678 | * @param toolName Format argument. |
679 | * @return The text of the {@code <Command Failure Message>} message for {@code locale}. |
680 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
681 | */ |
682 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
683 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
684 | private String getCommandFailureMessage( final java.util.Locale locale, final java.lang.String toolName ) |
685 | { |
686 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Command Failure Message", locale, toolName ); |
687 | assert _m != null : "'Command Failure Message' message not found."; |
688 | return _m; |
689 | } |
690 | /** |
691 | * Gets the text of the {@code <Command Info Message>} message. |
692 | * <p><dl> |
693 | * <dt><b>Languages:</b></dt> |
694 | * <dd>English (default)</dd> |
695 | * <dd>Deutsch</dd> |
696 | * <dt><b>Final:</b></dt><dd>No</dd> |
697 | * </dl></p> |
698 | * @param locale The locale of the message to return. |
699 | * @param toolName Format argument. |
700 | * @return The text of the {@code <Command Info Message>} message for {@code locale}. |
701 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
702 | */ |
703 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
704 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
705 | private String getCommandInfoMessage( final java.util.Locale locale, final java.lang.String toolName ) |
706 | { |
707 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Command Info Message", locale, toolName ); |
708 | assert _m != null : "'Command Info Message' message not found."; |
709 | return _m; |
710 | } |
711 | /** |
712 | * Gets the text of the {@code <Command Success Message>} message. |
713 | * <p><dl> |
714 | * <dt><b>Languages:</b></dt> |
715 | * <dd>English (default)</dd> |
716 | * <dd>Deutsch</dd> |
717 | * <dt><b>Final:</b></dt><dd>No</dd> |
718 | * </dl></p> |
719 | * @param locale The locale of the message to return. |
720 | * @param toolName Format argument. |
721 | * @return The text of the {@code <Command Success Message>} message for {@code locale}. |
722 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
723 | */ |
724 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
725 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
726 | private String getCommandSuccessMessage( final java.util.Locale locale, final java.lang.String toolName ) |
727 | { |
728 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Command Success Message", locale, toolName ); |
729 | assert _m != null : "'Command Success Message' message not found."; |
730 | return _m; |
731 | } |
732 | /** |
733 | * Gets the text of the {@code <Default Log Level Info>} message. |
734 | * <p><dl> |
735 | * <dt><b>Languages:</b></dt> |
736 | * <dd>English (default)</dd> |
737 | * <dd>Deutsch</dd> |
738 | * <dt><b>Final:</b></dt><dd>No</dd> |
739 | * </dl></p> |
740 | * @param locale The locale of the message to return. |
741 | * @param defaultLogLevel Format argument. |
742 | * @return The text of the {@code <Default Log Level Info>} message for {@code locale}. |
743 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
744 | */ |
745 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
746 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
747 | private String getDefaultLogLevelInfo( final java.util.Locale locale, final java.lang.String defaultLogLevel ) |
748 | { |
749 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Default Log Level Info", locale, defaultLogLevel ); |
750 | assert _m != null : "'Default Log Level Info' message not found."; |
751 | return _m; |
752 | } |
753 | /** |
754 | * Gets the text of the {@code <Document File Info>} message. |
755 | * <p><dl> |
756 | * <dt><b>Languages:</b></dt> |
757 | * <dd>English (default)</dd> |
758 | * <dd>Deutsch</dd> |
759 | * <dt><b>Final:</b></dt><dd>No</dd> |
760 | * </dl></p> |
761 | * @param locale The locale of the message to return. |
762 | * @param documentFile Format argument. |
763 | * @return The text of the {@code <Document File Info>} message for {@code locale}. |
764 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
765 | */ |
766 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
767 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
768 | private String getDocumentFileInfo( final java.util.Locale locale, final java.lang.String documentFile ) |
769 | { |
770 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Document File Info", locale, documentFile ); |
771 | assert _m != null : "'Document File Info' message not found."; |
772 | return _m; |
773 | } |
774 | /** |
775 | * Gets the text of the {@code <Document File Not Found Warning>} message. |
776 | * <p><dl> |
777 | * <dt><b>Languages:</b></dt> |
778 | * <dd>English (default)</dd> |
779 | * <dd>Deutsch</dd> |
780 | * <dt><b>Final:</b></dt><dd>No</dd> |
781 | * </dl></p> |
782 | * @param locale The locale of the message to return. |
783 | * @param fileName Format argument. |
784 | * @return The text of the {@code <Document File Not Found Warning>} message for {@code locale}. |
785 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
786 | */ |
787 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
788 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
789 | private String getDocumentFileNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName ) |
790 | { |
791 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Document File Not Found Warning", locale, fileName ); |
792 | assert _m != null : "'Document File Not Found Warning' message not found."; |
793 | return _m; |
794 | } |
795 | /** |
796 | * Gets the text of the {@code <Excluded Modlet Info>} message. |
797 | * <p><dl> |
798 | * <dt><b>Languages:</b></dt> |
799 | * <dd>English (default)</dd> |
800 | * <dd>Deutsch</dd> |
801 | * <dt><b>Final:</b></dt><dd>No</dd> |
802 | * </dl></p> |
803 | * @param locale The locale of the message to return. |
804 | * @param resourceName Format argument. |
805 | * @param modletIdentifier Format argument. |
806 | * @return The text of the {@code <Excluded Modlet Info>} message for {@code locale}. |
807 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
808 | */ |
809 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
810 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
811 | private String getExcludedModletInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String modletIdentifier ) |
812 | { |
813 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Modlet Info", locale, resourceName, modletIdentifier ); |
814 | assert _m != null : "'Excluded Modlet Info' message not found."; |
815 | return _m; |
816 | } |
817 | /** |
818 | * Gets the text of the {@code <Excluded Provider Info>} message. |
819 | * <p><dl> |
820 | * <dt><b>Languages:</b></dt> |
821 | * <dd>English (default)</dd> |
822 | * <dd>Deutsch</dd> |
823 | * <dt><b>Final:</b></dt><dd>No</dd> |
824 | * </dl></p> |
825 | * @param locale The locale of the message to return. |
826 | * @param resourceName Format argument. |
827 | * @param providerName Format argument. |
828 | * @return The text of the {@code <Excluded Provider Info>} message for {@code locale}. |
829 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
830 | */ |
831 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
832 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
833 | private String getExcludedProviderInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String providerName ) |
834 | { |
835 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Provider Info", locale, resourceName, providerName ); |
836 | assert _m != null : "'Excluded Provider Info' message not found."; |
837 | return _m; |
838 | } |
839 | /** |
840 | * Gets the text of the {@code <Excluded Schema Info>} message. |
841 | * <p><dl> |
842 | * <dt><b>Languages:</b></dt> |
843 | * <dd>English (default)</dd> |
844 | * <dd>Deutsch</dd> |
845 | * <dt><b>Final:</b></dt><dd>No</dd> |
846 | * </dl></p> |
847 | * @param locale The locale of the message to return. |
848 | * @param resourceName Format argument. |
849 | * @param contextId Format argument. |
850 | * @return The text of the {@code <Excluded Schema Info>} message for {@code locale}. |
851 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
852 | */ |
853 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
854 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
855 | private String getExcludedSchemaInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String contextId ) |
856 | { |
857 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Schema Info", locale, resourceName, contextId ); |
858 | assert _m != null : "'Excluded Schema Info' message not found."; |
859 | return _m; |
860 | } |
861 | /** |
862 | * Gets the text of the {@code <Excluded Service Info>} message. |
863 | * <p><dl> |
864 | * <dt><b>Languages:</b></dt> |
865 | * <dd>English (default)</dd> |
866 | * <dd>Deutsch</dd> |
867 | * <dt><b>Final:</b></dt><dd>No</dd> |
868 | * </dl></p> |
869 | * @param locale The locale of the message to return. |
870 | * @param resourceName Format argument. |
871 | * @param serviceName Format argument. |
872 | * @return The text of the {@code <Excluded Service Info>} message for {@code locale}. |
873 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
874 | */ |
875 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
876 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
877 | private String getExcludedServiceInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String serviceName ) |
878 | { |
879 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Service Info", locale, resourceName, serviceName ); |
880 | assert _m != null : "'Excluded Service Info' message not found."; |
881 | return _m; |
882 | } |
883 | /** |
884 | * Gets the text of the {@code <Invalid Model Message>} message. |
885 | * <p><dl> |
886 | * <dt><b>Languages:</b></dt> |
887 | * <dd>English (default)</dd> |
888 | * <dd>Deutsch</dd> |
889 | * <dt><b>Final:</b></dt><dd>No</dd> |
890 | * </dl></p> |
891 | * @param locale The locale of the message to return. |
892 | * @param modelIdentifier Format argument. |
893 | * @return The text of the {@code <Invalid Model Message>} message for {@code locale}. |
894 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
895 | */ |
896 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
897 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
898 | private String getInvalidModelMessage( final java.util.Locale locale, final java.lang.String modelIdentifier ) |
899 | { |
900 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Invalid Model Message", locale, modelIdentifier ); |
901 | assert _m != null : "'Invalid Model Message' message not found."; |
902 | return _m; |
903 | } |
904 | /** |
905 | * Gets the text of the {@code <Long Description Message>} message. |
906 | * <p><dl> |
907 | * <dt><b>Languages:</b></dt> |
908 | * <dd>English (default)</dd> |
909 | * <dd>Deutsch</dd> |
910 | * <dt><b>Final:</b></dt><dd>No</dd> |
911 | * </dl></p> |
912 | * @param locale The locale of the message to return. |
913 | * @return The text of the {@code <Long Description Message>} message for {@code locale}. |
914 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
915 | */ |
916 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
917 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
918 | private String getLongDescriptionMessage( final java.util.Locale locale ) |
919 | { |
920 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Long Description Message", locale ); |
921 | assert _m != null : "'Long Description Message' message not found."; |
922 | return _m; |
923 | } |
924 | /** |
925 | * Gets the text of the {@code <Reading Message>} message. |
926 | * <p><dl> |
927 | * <dt><b>Languages:</b></dt> |
928 | * <dd>English (default)</dd> |
929 | * <dd>Deutsch</dd> |
930 | * <dt><b>Final:</b></dt><dd>No</dd> |
931 | * </dl></p> |
932 | * @param locale The locale of the message to return. |
933 | * @param locationInfo Format argument. |
934 | * @return The text of the {@code <Reading Message>} message for {@code locale}. |
935 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
936 | */ |
937 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
938 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
939 | private String getReadingMessage( final java.util.Locale locale, final java.lang.String locationInfo ) |
940 | { |
941 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Reading Message", locale, locationInfo ); |
942 | assert _m != null : "'Reading Message' message not found."; |
943 | return _m; |
944 | } |
945 | /** |
946 | * Gets the text of the {@code <Separator>} message. |
947 | * <p><dl> |
948 | * <dt><b>Languages:</b></dt> |
949 | * <dd>English (default)</dd> |
950 | * <dt><b>Final:</b></dt><dd>No</dd> |
951 | * </dl></p> |
952 | * @param locale The locale of the message to return. |
953 | * @return The text of the {@code <Separator>} message for {@code locale}. |
954 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
955 | */ |
956 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
957 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
958 | private String getSeparator( final java.util.Locale locale ) |
959 | { |
960 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Separator", locale ); |
961 | assert _m != null : "'Separator' message not found."; |
962 | return _m; |
963 | } |
964 | /** |
965 | * Gets the text of the {@code <Short Description Message>} message. |
966 | * <p><dl> |
967 | * <dt><b>Languages:</b></dt> |
968 | * <dd>English (default)</dd> |
969 | * <dd>Deutsch</dd> |
970 | * <dt><b>Final:</b></dt><dd>No</dd> |
971 | * </dl></p> |
972 | * @param locale The locale of the message to return. |
973 | * @return The text of the {@code <Short Description Message>} message for {@code locale}. |
974 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
975 | */ |
976 | @SuppressWarnings({"unused", "PMD.UnnecessaryFullyQualifiedName"}) |
977 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
978 | private String getShortDescriptionMessage( final java.util.Locale locale ) |
979 | { |
980 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Short Description Message", locale ); |
981 | assert _m != null : "'Short Description Message' message not found."; |
982 | return _m; |
983 | } |
984 | // </editor-fold> |
985 | // SECTION-END |
986 | // SECTION-START[Generated Command] |
987 | // <editor-fold defaultstate="collapsed" desc=" Generated Options "> |
988 | /** |
989 | * Gets the options of the command. |
990 | * <p><strong>Options:</strong> |
991 | * <table border="1" width="100%" cellpadding="3" cellspacing="0"> |
992 | * <tr class="TableSubHeadingColor"> |
993 | * <th align="left" scope="col" nowrap><b>Specification</b></th> |
994 | * <th align="left" scope="col" nowrap><b>Implementation</b></th> |
995 | * </tr> |
996 | * <tr class="TableRow"> |
997 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> |
998 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Classpath Option</td> |
999 | * </tr> |
1000 | * <tr class="TableRow"> |
1001 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> |
1002 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Documents Option</td> |
1003 | * </tr> |
1004 | * <tr class="TableRow"> |
1005 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> |
1006 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ ModelContextFactory Class Name Option</td> |
1007 | * </tr> |
1008 | * <tr class="TableRow"> |
1009 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> |
1010 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Model Option</td> |
1011 | * </tr> |
1012 | * <tr class="TableRow"> |
1013 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> |
1014 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Modlet Location Option</td> |
1015 | * </tr> |
1016 | * <tr class="TableRow"> |
1017 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> |
1018 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Modlet Schema System Id Option</td> |
1019 | * </tr> |
1020 | * <tr class="TableRow"> |
1021 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> |
1022 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Module Location Option</td> |
1023 | * </tr> |
1024 | * <tr class="TableRow"> |
1025 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> |
1026 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ No Classpath Resolution Option</td> |
1027 | * </tr> |
1028 | * <tr class="TableRow"> |
1029 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> |
1030 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ No Java Validation Option</td> |
1031 | * </tr> |
1032 | * <tr class="TableRow"> |
1033 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> |
1034 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ No Model Processing Option</td> |
1035 | * </tr> |
1036 | * <tr class="TableRow"> |
1037 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> |
1038 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ No Model Resource Validation Option</td> |
1039 | * </tr> |
1040 | * <tr class="TableRow"> |
1041 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> |
1042 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ No Modlet Resource Validation Option</td> |
1043 | * </tr> |
1044 | * <tr class="TableRow"> |
1045 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> |
1046 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Platform Provider Location Option</td> |
1047 | * </tr> |
1048 | * <tr class="TableRow"> |
1049 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> |
1050 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Provider Location Option</td> |
1051 | * </tr> |
1052 | * <tr class="TableRow"> |
1053 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> |
1054 | * <td align="left" valign="top" nowrap>JOMC ⁑ CLI ⁑ Transformer Location Option</td> |
1055 | * </tr> |
1056 | * </table> |
1057 | * </p> |
1058 | * @return The options of the command. |
1059 | */ |
1060 | @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.6", comments = "See http://www.jomc.org/jomc/1.6/jomc-tools-1.6" ) |
1061 | @Override |
1062 | public org.apache.commons.cli.Options getOptions() |
1063 | { |
1064 | final org.apache.commons.cli.Options options = new org.apache.commons.cli.Options(); |
1065 | options.addOption( this.getClasspathOption() ); |
1066 | options.addOption( this.getDocumentsOption() ); |
1067 | options.addOption( this.getModelContextFactoryOption() ); |
1068 | options.addOption( this.getModelOption() ); |
1069 | options.addOption( this.getModletLocationOption() ); |
1070 | options.addOption( this.getModletSchemaSystemIdOption() ); |
1071 | options.addOption( this.getModuleLocationOption() ); |
1072 | options.addOption( this.getNoClasspathResolutionOption() ); |
1073 | options.addOption( this.getNoJavaValidationOption() ); |
1074 | options.addOption( this.getNoModelProcessingOption() ); |
1075 | options.addOption( this.getNoModelResourceValidation() ); |
1076 | options.addOption( this.getNoModletResourceValidation() ); |
1077 | options.addOption( this.getPlatformProviderLocationOption() ); |
1078 | options.addOption( this.getProviderLocationOption() ); |
1079 | options.addOption( this.getTransformerLocationOption() ); |
1080 | return options; |
1081 | } |
1082 | // </editor-fold> |
1083 | // SECTION-END |
1084 | } |