View Javadoc

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 4588 2012-06-03 06:01:30Z schulte2005 $
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 validate-model Command</dd>
53   *   <dt><b>Name:</b></dt><dd>default-validate-model</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:schulte2005@users.sourceforge.net">Christian Schulte</a> 1.0
62   * @version 1.3
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.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
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.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
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 <ClasspathOption>} 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 <ClasspathOption>} dependency.
156      * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
157      */
158     @SuppressWarnings("unused")
159     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
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, "ClasspathOption" );
163         assert _d != null : "'ClasspathOption' dependency not found.";
164         return _d;
165     }
166     /**
167      * Gets the {@code <DocumentsOption>} 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 <DocumentsOption>} dependency.
176      * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
177      */
178     @SuppressWarnings("unused")
179     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
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, "DocumentsOption" );
183         assert _d != null : "'DocumentsOption' 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")
199     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
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 <ModelContextFactoryOption>} 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 <ModelContextFactoryOption>} dependency.
216      * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
217      */
218     @SuppressWarnings("unused")
219     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
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, "ModelContextFactoryOption" );
223         assert _d != null : "'ModelContextFactoryOption' dependency not found.";
224         return _d;
225     }
226     /**
227      * Gets the {@code <ModelOption>} 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 <ModelOption>} dependency.
236      * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
237      */
238     @SuppressWarnings("unused")
239     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
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, "ModelOption" );
243         assert _d != null : "'ModelOption' dependency not found.";
244         return _d;
245     }
246     /**
247      * Gets the {@code <ModletLocationOption>} 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 <ModletLocationOption>} dependency.
256      * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
257      */
258     @SuppressWarnings("unused")
259     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
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, "ModletLocationOption" );
263         assert _d != null : "'ModletLocationOption' dependency not found.";
264         return _d;
265     }
266     /**
267      * Gets the {@code <ModletSchemaSystemIdOption>} 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 <ModletSchemaSystemIdOption>} dependency.
276      * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
277      */
278     @SuppressWarnings("unused")
279     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
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, "ModletSchemaSystemIdOption" );
283         assert _d != null : "'ModletSchemaSystemIdOption' dependency not found.";
284         return _d;
285     }
286     /**
287      * Gets the {@code <ModuleLocationOption>} 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 <ModuleLocationOption>} dependency.
296      * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
297      */
298     @SuppressWarnings("unused")
299     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
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, "ModuleLocationOption" );
303         assert _d != null : "'ModuleLocationOption' dependency not found.";
304         return _d;
305     }
306     /**
307      * Gets the {@code <NoClasspathResolutionOption>} 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 <NoClasspathResolutionOption>} dependency.
316      * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
317      */
318     @SuppressWarnings("unused")
319     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
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, "NoClasspathResolutionOption" );
323         assert _d != null : "'NoClasspathResolutionOption' dependency not found.";
324         return _d;
325     }
326     /**
327      * Gets the {@code <NoModelProcessingOption>} dependency.
328      * <p>
329      *   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.
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 <NoModelProcessingOption>} dependency.
336      * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
337      */
338     @SuppressWarnings("unused")
339     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
340     private org.apache.commons.cli.Option getNoModelProcessingOption()
341     {
342         final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "NoModelProcessingOption" );
343         assert _d != null : "'NoModelProcessingOption' dependency not found.";
344         return _d;
345     }
346     /**
347      * Gets the {@code <NoModelResourceValidation>} dependency.
348      * <p>
349      *   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.
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 <NoModelResourceValidation>} dependency.
356      * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
357      */
358     @SuppressWarnings("unused")
359     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
360     private org.apache.commons.cli.Option getNoModelResourceValidation()
361     {
362         final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "NoModelResourceValidation" );
363         assert _d != null : "'NoModelResourceValidation' dependency not found.";
364         return _d;
365     }
366     /**
367      * Gets the {@code <NoModletResourceValidation>} dependency.
368      * <p>
369      *   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.
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 <NoModletResourceValidation>} dependency.
376      * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
377      */
378     @SuppressWarnings("unused")
379     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
380     private org.apache.commons.cli.Option getNoModletResourceValidation()
381     {
382         final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "NoModletResourceValidation" );
383         assert _d != null : "'NoModletResourceValidation' dependency not found.";
384         return _d;
385     }
386     /**
387      * Gets the {@code <PlatformProviderLocationOption>} dependency.
388      * <p>
389      *   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.
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 <PlatformProviderLocationOption>} dependency.
396      * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
397      */
398     @SuppressWarnings("unused")
399     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
400     private org.apache.commons.cli.Option getPlatformProviderLocationOption()
401     {
402         final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "PlatformProviderLocationOption" );
403         assert _d != null : "'PlatformProviderLocationOption' dependency not found.";
404         return _d;
405     }
406     /**
407      * Gets the {@code <ProviderLocationOption>} dependency.
408      * <p>
409      *   This method returns the {@code <JOMC CLI 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 <ProviderLocationOption>} dependency.
416      * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
417      */
418     @SuppressWarnings("unused")
419     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
420     private org.apache.commons.cli.Option getProviderLocationOption()
421     {
422         final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ProviderLocationOption" );
423         assert _d != null : "'ProviderLocationOption' dependency not found.";
424         return _d;
425     }
426     /**
427      * Gets the {@code <TransformerLocationOption>} dependency.
428      * <p>
429      *   This method returns the {@code <JOMC CLI Transformer 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 <TransformerLocationOption>} dependency.
436      * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
437      */
438     @SuppressWarnings("unused")
439     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
440     private org.apache.commons.cli.Option getTransformerLocationOption()
441     {
442         final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "TransformerLocationOption" );
443         assert _d != null : "'TransformerLocationOption' dependency not found.";
444         return _d;
445     }
446     // </editor-fold>
447     // SECTION-END
448     // SECTION-START[Properties]
449     // <editor-fold defaultstate="collapsed" desc=" Generated Properties ">
450     /**
451      * Gets the value of the {@code <abbreviatedCommandName>} property.
452      * <p><dl>
453      *   <dt><b>Final:</b></dt><dd>No</dd>
454      * </dl></p>
455      * @return Abbreviated name of the command.
456      * @throws org.jomc.ObjectManagementException if getting the property instance fails.
457      */
458     @SuppressWarnings("unused")
459     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
460     private java.lang.String getAbbreviatedCommandName()
461     {
462         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "abbreviatedCommandName" );
463         assert _p != null : "'abbreviatedCommandName' property not found.";
464         return _p;
465     }
466     /**
467      * Gets the value of the {@code <applicationModlet>} property.
468      * <p><dl>
469      *   <dt><b>Final:</b></dt><dd>Yes</dd>
470      * </dl></p>
471      * @return Name of the 'shaded' application modlet.
472      * @throws org.jomc.ObjectManagementException if getting the property instance fails.
473      */
474     @SuppressWarnings("unused")
475     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
476     private java.lang.String getApplicationModlet()
477     {
478         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "applicationModlet" );
479         assert _p != null : "'applicationModlet' property not found.";
480         return _p;
481     }
482     /**
483      * Gets the value of the {@code <commandName>} property.
484      * <p><dl>
485      *   <dt><b>Final:</b></dt><dd>No</dd>
486      * </dl></p>
487      * @return Name of the command.
488      * @throws org.jomc.ObjectManagementException if getting the property instance fails.
489      */
490     @SuppressWarnings("unused")
491     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
492     private java.lang.String getCommandName()
493     {
494         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "commandName" );
495         assert _p != null : "'commandName' property not found.";
496         return _p;
497     }
498     /**
499      * Gets the value of the {@code <modletExcludes>} property.
500      * <p><dl>
501      *   <dt><b>Final:</b></dt><dd>Yes</dd>
502      * </dl></p>
503      * @return List of modlet names to exclude from any {@code META-INF/jomc-modlet.xml} files separated by {@code :}.
504      * @throws org.jomc.ObjectManagementException if getting the property instance fails.
505      */
506     @SuppressWarnings("unused")
507     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
508     private java.lang.String getModletExcludes()
509     {
510         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "modletExcludes" );
511         assert _p != null : "'modletExcludes' property not found.";
512         return _p;
513     }
514     /**
515      * Gets the value of the {@code <providerExcludes>} property.
516      * <p><dl>
517      *   <dt><b>Final:</b></dt><dd>Yes</dd>
518      * </dl></p>
519      * @return List of providers to exclude from any {@code META-INF/services} files separated by {@code :}.
520      * @throws org.jomc.ObjectManagementException if getting the property instance fails.
521      */
522     @SuppressWarnings("unused")
523     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
524     private java.lang.String getProviderExcludes()
525     {
526         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "providerExcludes" );
527         assert _p != null : "'providerExcludes' property not found.";
528         return _p;
529     }
530     /**
531      * Gets the value of the {@code <schemaExcludes>} property.
532      * <p><dl>
533      *   <dt><b>Final:</b></dt><dd>Yes</dd>
534      * </dl></p>
535      * @return List of schema context-ids to exclude from any {@code META-INF/jomc-modlet.xml} files separated by {@code :}.
536      * @throws org.jomc.ObjectManagementException if getting the property instance fails.
537      */
538     @SuppressWarnings("unused")
539     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
540     private java.lang.String getSchemaExcludes()
541     {
542         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "schemaExcludes" );
543         assert _p != null : "'schemaExcludes' property not found.";
544         return _p;
545     }
546     /**
547      * Gets the value of the {@code <serviceExcludes>} property.
548      * <p><dl>
549      *   <dt><b>Final:</b></dt><dd>Yes</dd>
550      * </dl></p>
551      * @return List of service classes to exclude from any {@code META-INF/jomc-modlet.xml} files separated by {@code :}.
552      * @throws org.jomc.ObjectManagementException if getting the property instance fails.
553      */
554     @SuppressWarnings("unused")
555     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
556     private java.lang.String getServiceExcludes()
557     {
558         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "serviceExcludes" );
559         assert _p != null : "'serviceExcludes' property not found.";
560         return _p;
561     }
562     // </editor-fold>
563     // SECTION-END
564     // SECTION-START[Messages]
565     // <editor-fold defaultstate="collapsed" desc=" Generated Messages ">
566     /**
567      * Gets the text of the {@code <applicationTitle>} message.
568      * <p><dl>
569      *   <dt><b>Languages:</b></dt>
570      *     <dd>English (default)</dd>
571      *   <dt><b>Final:</b></dt><dd>No</dd>
572      * </dl></p>
573      * @param locale The locale of the message to return.
574      * @return The text of the {@code <applicationTitle>} message for {@code locale}.
575      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
576      */
577     @SuppressWarnings("unused")
578     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
579     private String getApplicationTitle( final java.util.Locale locale )
580     {
581         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "applicationTitle", locale );
582         assert _m != null : "'applicationTitle' message not found.";
583         return _m;
584     }
585     /**
586      * Gets the text of the {@code <cannotProcessMessage>} message.
587      * <p><dl>
588      *   <dt><b>Languages:</b></dt>
589      *     <dd>English (default)</dd>
590      *     <dd>Deutsch</dd>
591      *   <dt><b>Final:</b></dt><dd>No</dd>
592      * </dl></p>
593      * @param locale The locale of the message to return.
594      * @param itemInfo Format argument.
595      * @param detailMessage Format argument.
596      * @return The text of the {@code <cannotProcessMessage>} message for {@code locale}.
597      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
598      */
599     @SuppressWarnings("unused")
600     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
601     private String getCannotProcessMessage( final java.util.Locale locale, final java.lang.String itemInfo, final java.lang.String detailMessage )
602     {
603         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "cannotProcessMessage", locale, itemInfo, detailMessage );
604         assert _m != null : "'cannotProcessMessage' message not found.";
605         return _m;
606     }
607     /**
608      * Gets the text of the {@code <classpathElementInfo>} message.
609      * <p><dl>
610      *   <dt><b>Languages:</b></dt>
611      *     <dd>English (default)</dd>
612      *     <dd>Deutsch</dd>
613      *   <dt><b>Final:</b></dt><dd>No</dd>
614      * </dl></p>
615      * @param locale The locale of the message to return.
616      * @param classpathElement Format argument.
617      * @return The text of the {@code <classpathElementInfo>} message for {@code locale}.
618      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
619      */
620     @SuppressWarnings("unused")
621     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
622     private String getClasspathElementInfo( final java.util.Locale locale, final java.lang.String classpathElement )
623     {
624         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathElementInfo", locale, classpathElement );
625         assert _m != null : "'classpathElementInfo' message not found.";
626         return _m;
627     }
628     /**
629      * Gets the text of the {@code <classpathElementNotFoundWarning>} message.
630      * <p><dl>
631      *   <dt><b>Languages:</b></dt>
632      *     <dd>English (default)</dd>
633      *     <dd>Deutsch</dd>
634      *   <dt><b>Final:</b></dt><dd>No</dd>
635      * </dl></p>
636      * @param locale The locale of the message to return.
637      * @param fileName Format argument.
638      * @return The text of the {@code <classpathElementNotFoundWarning>} message for {@code locale}.
639      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
640      */
641     @SuppressWarnings("unused")
642     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
643     private String getClasspathElementNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName )
644     {
645         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathElementNotFoundWarning", locale, fileName );
646         assert _m != null : "'classpathElementNotFoundWarning' message not found.";
647         return _m;
648     }
649     /**
650      * Gets the text of the {@code <commandFailureMessage>} message.
651      * <p><dl>
652      *   <dt><b>Languages:</b></dt>
653      *     <dd>English (default)</dd>
654      *     <dd>Deutsch</dd>
655      *   <dt><b>Final:</b></dt><dd>No</dd>
656      * </dl></p>
657      * @param locale The locale of the message to return.
658      * @param toolName Format argument.
659      * @return The text of the {@code <commandFailureMessage>} message for {@code locale}.
660      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
661      */
662     @SuppressWarnings("unused")
663     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
664     private String getCommandFailureMessage( final java.util.Locale locale, final java.lang.String toolName )
665     {
666         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "commandFailureMessage", locale, toolName );
667         assert _m != null : "'commandFailureMessage' message not found.";
668         return _m;
669     }
670     /**
671      * Gets the text of the {@code <commandInfoMessage>} message.
672      * <p><dl>
673      *   <dt><b>Languages:</b></dt>
674      *     <dd>English (default)</dd>
675      *     <dd>Deutsch</dd>
676      *   <dt><b>Final:</b></dt><dd>No</dd>
677      * </dl></p>
678      * @param locale The locale of the message to return.
679      * @param toolName Format argument.
680      * @return The text of the {@code <commandInfoMessage>} message for {@code locale}.
681      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
682      */
683     @SuppressWarnings("unused")
684     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
685     private String getCommandInfoMessage( final java.util.Locale locale, final java.lang.String toolName )
686     {
687         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "commandInfoMessage", locale, toolName );
688         assert _m != null : "'commandInfoMessage' message not found.";
689         return _m;
690     }
691     /**
692      * Gets the text of the {@code <commandSuccessMessage>} message.
693      * <p><dl>
694      *   <dt><b>Languages:</b></dt>
695      *     <dd>English (default)</dd>
696      *     <dd>Deutsch</dd>
697      *   <dt><b>Final:</b></dt><dd>No</dd>
698      * </dl></p>
699      * @param locale The locale of the message to return.
700      * @param toolName Format argument.
701      * @return The text of the {@code <commandSuccessMessage>} message for {@code locale}.
702      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
703      */
704     @SuppressWarnings("unused")
705     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
706     private String getCommandSuccessMessage( final java.util.Locale locale, final java.lang.String toolName )
707     {
708         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "commandSuccessMessage", locale, toolName );
709         assert _m != null : "'commandSuccessMessage' message not found.";
710         return _m;
711     }
712     /**
713      * Gets the text of the {@code <defaultLogLevelInfo>} message.
714      * <p><dl>
715      *   <dt><b>Languages:</b></dt>
716      *     <dd>English (default)</dd>
717      *     <dd>Deutsch</dd>
718      *   <dt><b>Final:</b></dt><dd>No</dd>
719      * </dl></p>
720      * @param locale The locale of the message to return.
721      * @param defaultLogLevel Format argument.
722      * @return The text of the {@code <defaultLogLevelInfo>} message for {@code locale}.
723      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
724      */
725     @SuppressWarnings("unused")
726     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
727     private String getDefaultLogLevelInfo( final java.util.Locale locale, final java.lang.String defaultLogLevel )
728     {
729         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "defaultLogLevelInfo", locale, defaultLogLevel );
730         assert _m != null : "'defaultLogLevelInfo' message not found.";
731         return _m;
732     }
733     /**
734      * Gets the text of the {@code <documentFileInfo>} message.
735      * <p><dl>
736      *   <dt><b>Languages:</b></dt>
737      *     <dd>English (default)</dd>
738      *     <dd>Deutsch</dd>
739      *   <dt><b>Final:</b></dt><dd>No</dd>
740      * </dl></p>
741      * @param locale The locale of the message to return.
742      * @param documentFile Format argument.
743      * @return The text of the {@code <documentFileInfo>} message for {@code locale}.
744      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
745      */
746     @SuppressWarnings("unused")
747     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
748     private String getDocumentFileInfo( final java.util.Locale locale, final java.lang.String documentFile )
749     {
750         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentFileInfo", locale, documentFile );
751         assert _m != null : "'documentFileInfo' message not found.";
752         return _m;
753     }
754     /**
755      * Gets the text of the {@code <documentFileNotFoundWarning>} message.
756      * <p><dl>
757      *   <dt><b>Languages:</b></dt>
758      *     <dd>English (default)</dd>
759      *     <dd>Deutsch</dd>
760      *   <dt><b>Final:</b></dt><dd>No</dd>
761      * </dl></p>
762      * @param locale The locale of the message to return.
763      * @param fileName Format argument.
764      * @return The text of the {@code <documentFileNotFoundWarning>} message for {@code locale}.
765      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
766      */
767     @SuppressWarnings("unused")
768     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
769     private String getDocumentFileNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName )
770     {
771         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentFileNotFoundWarning", locale, fileName );
772         assert _m != null : "'documentFileNotFoundWarning' message not found.";
773         return _m;
774     }
775     /**
776      * Gets the text of the {@code <excludedModletInfo>} message.
777      * <p><dl>
778      *   <dt><b>Languages:</b></dt>
779      *     <dd>English (default)</dd>
780      *     <dd>Deutsch</dd>
781      *   <dt><b>Final:</b></dt><dd>No</dd>
782      * </dl></p>
783      * @param locale The locale of the message to return.
784      * @param resourceName Format argument.
785      * @param modletIdentifier Format argument.
786      * @return The text of the {@code <excludedModletInfo>} message for {@code locale}.
787      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
788      */
789     @SuppressWarnings("unused")
790     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
791     private String getExcludedModletInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String modletIdentifier )
792     {
793         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedModletInfo", locale, resourceName, modletIdentifier );
794         assert _m != null : "'excludedModletInfo' message not found.";
795         return _m;
796     }
797     /**
798      * Gets the text of the {@code <excludedProviderInfo>} message.
799      * <p><dl>
800      *   <dt><b>Languages:</b></dt>
801      *     <dd>English (default)</dd>
802      *     <dd>Deutsch</dd>
803      *   <dt><b>Final:</b></dt><dd>No</dd>
804      * </dl></p>
805      * @param locale The locale of the message to return.
806      * @param resourceName Format argument.
807      * @param providerName Format argument.
808      * @return The text of the {@code <excludedProviderInfo>} message for {@code locale}.
809      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
810      */
811     @SuppressWarnings("unused")
812     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
813     private String getExcludedProviderInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String providerName )
814     {
815         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedProviderInfo", locale, resourceName, providerName );
816         assert _m != null : "'excludedProviderInfo' message not found.";
817         return _m;
818     }
819     /**
820      * Gets the text of the {@code <excludedSchemaInfo>} message.
821      * <p><dl>
822      *   <dt><b>Languages:</b></dt>
823      *     <dd>English (default)</dd>
824      *     <dd>Deutsch</dd>
825      *   <dt><b>Final:</b></dt><dd>No</dd>
826      * </dl></p>
827      * @param locale The locale of the message to return.
828      * @param resourceName Format argument.
829      * @param contextId Format argument.
830      * @return The text of the {@code <excludedSchemaInfo>} message for {@code locale}.
831      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
832      */
833     @SuppressWarnings("unused")
834     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
835     private String getExcludedSchemaInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String contextId )
836     {
837         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedSchemaInfo", locale, resourceName, contextId );
838         assert _m != null : "'excludedSchemaInfo' message not found.";
839         return _m;
840     }
841     /**
842      * Gets the text of the {@code <excludedServiceInfo>} message.
843      * <p><dl>
844      *   <dt><b>Languages:</b></dt>
845      *     <dd>English (default)</dd>
846      *     <dd>Deutsch</dd>
847      *   <dt><b>Final:</b></dt><dd>No</dd>
848      * </dl></p>
849      * @param locale The locale of the message to return.
850      * @param resourceName Format argument.
851      * @param serviceName Format argument.
852      * @return The text of the {@code <excludedServiceInfo>} message for {@code locale}.
853      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
854      */
855     @SuppressWarnings("unused")
856     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
857     private String getExcludedServiceInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String serviceName )
858     {
859         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedServiceInfo", locale, resourceName, serviceName );
860         assert _m != null : "'excludedServiceInfo' message not found.";
861         return _m;
862     }
863     /**
864      * Gets the text of the {@code <invalidModelMessage>} message.
865      * <p><dl>
866      *   <dt><b>Languages:</b></dt>
867      *     <dd>English (default)</dd>
868      *     <dd>Deutsch</dd>
869      *   <dt><b>Final:</b></dt><dd>No</dd>
870      * </dl></p>
871      * @param locale The locale of the message to return.
872      * @param modelIdentifier Format argument.
873      * @return The text of the {@code <invalidModelMessage>} message for {@code locale}.
874      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
875      */
876     @SuppressWarnings("unused")
877     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
878     private String getInvalidModelMessage( final java.util.Locale locale, final java.lang.String modelIdentifier )
879     {
880         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "invalidModelMessage", locale, modelIdentifier );
881         assert _m != null : "'invalidModelMessage' message not found.";
882         return _m;
883     }
884     /**
885      * Gets the text of the {@code <longDescriptionMessage>} message.
886      * <p><dl>
887      *   <dt><b>Languages:</b></dt>
888      *     <dd>English (default)</dd>
889      *     <dd>Deutsch</dd>
890      *   <dt><b>Final:</b></dt><dd>No</dd>
891      * </dl></p>
892      * @param locale The locale of the message to return.
893      * @return The text of the {@code <longDescriptionMessage>} message for {@code locale}.
894      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
895      */
896     @SuppressWarnings("unused")
897     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
898     private String getLongDescriptionMessage( final java.util.Locale locale )
899     {
900         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "longDescriptionMessage", locale );
901         assert _m != null : "'longDescriptionMessage' message not found.";
902         return _m;
903     }
904     /**
905      * Gets the text of the {@code <readingMessage>} 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      * @param locationInfo Format argument.
914      * @return The text of the {@code <readingMessage>} message for {@code locale}.
915      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
916      */
917     @SuppressWarnings("unused")
918     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
919     private String getReadingMessage( final java.util.Locale locale, final java.lang.String locationInfo )
920     {
921         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "readingMessage", locale, locationInfo );
922         assert _m != null : "'readingMessage' message not found.";
923         return _m;
924     }
925     /**
926      * Gets the text of the {@code <separator>} message.
927      * <p><dl>
928      *   <dt><b>Languages:</b></dt>
929      *     <dd>English (default)</dd>
930      *   <dt><b>Final:</b></dt><dd>No</dd>
931      * </dl></p>
932      * @param locale The locale of the message to return.
933      * @return The text of the {@code <separator>} message for {@code locale}.
934      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
935      */
936     @SuppressWarnings("unused")
937     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
938     private String getSeparator( final java.util.Locale locale )
939     {
940         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "separator", locale );
941         assert _m != null : "'separator' message not found.";
942         return _m;
943     }
944     /**
945      * Gets the text of the {@code <shortDescriptionMessage>} message.
946      * <p><dl>
947      *   <dt><b>Languages:</b></dt>
948      *     <dd>English (default)</dd>
949      *     <dd>Deutsch</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 <shortDescriptionMessage>} message for {@code locale}.
954      * @throws org.jomc.ObjectManagementException if getting the message instance fails.
955      */
956     @SuppressWarnings("unused")
957     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
958     private String getShortDescriptionMessage( final java.util.Locale locale )
959     {
960         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "shortDescriptionMessage", locale );
961         assert _m != null : "'shortDescriptionMessage' message not found.";
962         return _m;
963     }
964     // </editor-fold>
965     // SECTION-END
966     // SECTION-START[Generated Command]
967     // <editor-fold defaultstate="collapsed" desc=" Generated Options ">
968     /**
969      * Gets the options of the command.
970      * <p><strong>Options:</strong>
971      *   <table border="1" width="100%" cellpadding="3" cellspacing="0">
972      *     <tr class="TableSubHeadingColor">
973      *       <th align="left" scope="col" nowrap><b>Specification</b></th>
974      *       <th align="left" scope="col" nowrap><b>Implementation</b></th>
975      *     </tr>
976      *     <tr class="TableRow">
977      *       <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td>
978      *       <td align="left" valign="top" nowrap>JOMC CLI Classpath Option</td>
979      *     </tr>
980      *     <tr class="TableRow">
981      *       <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td>
982      *       <td align="left" valign="top" nowrap>JOMC CLI Documents Option</td>
983      *     </tr>
984      *     <tr class="TableRow">
985      *       <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td>
986      *       <td align="left" valign="top" nowrap>JOMC CLI ModelContextFactory Class Name Option</td>
987      *     </tr>
988      *     <tr class="TableRow">
989      *       <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td>
990      *       <td align="left" valign="top" nowrap>JOMC CLI Model Option</td>
991      *     </tr>
992      *     <tr class="TableRow">
993      *       <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td>
994      *       <td align="left" valign="top" nowrap>JOMC CLI Modlet Location Option</td>
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 Modlet Schema System Id 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 Module Location 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 No Classpath Resolution 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 No Model Processing 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 No Model Resource Validation 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 No Modlet Resource Validation 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 Platform Provider 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 Provider Location 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 Transformer Location Option</td>
1031      *     </tr>
1032      *   </table>
1033      * </p>
1034      * @return The options of the command.
1035      */
1036     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
1037     @Override
1038     public org.apache.commons.cli.Options getOptions()
1039     {
1040         final org.apache.commons.cli.Options options = new org.apache.commons.cli.Options();
1041         options.addOption( this.getClasspathOption() );
1042         options.addOption( this.getDocumentsOption() );
1043         options.addOption( this.getModelContextFactoryOption() );
1044         options.addOption( this.getModelOption() );
1045         options.addOption( this.getModletLocationOption() );
1046         options.addOption( this.getModletSchemaSystemIdOption() );
1047         options.addOption( this.getModuleLocationOption() );
1048         options.addOption( this.getNoClasspathResolutionOption() );
1049         options.addOption( this.getNoModelProcessingOption() );
1050         options.addOption( this.getNoModelResourceValidation() );
1051         options.addOption( this.getNoModletResourceValidation() );
1052         options.addOption( this.getPlatformProviderLocationOption() );
1053         options.addOption( this.getProviderLocationOption() );
1054         options.addOption( this.getTransformerLocationOption() );
1055         return options;
1056     }
1057     // </editor-fold>
1058     // SECTION-END
1059 }