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