001    // SECTION-START[License Header]
002    // <editor-fold defaultstate="collapsed" desc=" Generated License ">
003    /*
004     *   Copyright (c) 2009 The JOMC Project
005     *   Copyright (c) 2005 Christian Schulte <cs@jomc.org>
006     *   All rights reserved.
007     *
008     *   Redistribution and use in source and binary forms, with or without
009     *   modification, are permitted provided that the following conditions
010     *   are met:
011     *
012     *     o Redistributions of source code must retain the above copyright
013     *       notice, this list of conditions and the following disclaimer.
014     *
015     *     o Redistributions in binary form must reproduce the above copyright
016     *       notice, this list of conditions and the following disclaimer in
017     *       the documentation and/or other materials provided with the
018     *       distribution.
019     *
020     *   THIS SOFTWARE IS PROVIDED BY THE JOMC PROJECT AND CONTRIBUTORS "AS IS"
021     *   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
022     *   THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
023     *   PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE JOMC PROJECT OR
024     *   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
025     *   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
026     *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
027     *   OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
028     *   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
029     *   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
030     *   ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
031     *
032     *   $Id: ValidateModulesCommand.java 1102 2009-12-07 03:01:58Z schulte2005 $
033     *
034     */
035    // </editor-fold>
036    // SECTION-END
037    package org.jomc.cli.commands;
038    
039    import java.util.logging.Level;
040    import javax.xml.bind.JAXBContext;
041    import javax.xml.bind.Marshaller;
042    import javax.xml.validation.Schema;
043    import org.apache.commons.cli.CommandLine;
044    import org.apache.commons.cli.Options;
045    import org.jomc.model.ModelObjectValidationReport;
046    import org.jomc.model.ObjectFactory;
047    
048    // SECTION-START[Documentation]
049    // <editor-fold defaultstate="collapsed" desc=" Generated Documentation ">
050    /**
051     * Command line interface for validating modules.
052     * <p><b>Specifications</b><ul>
053     * <li>{@code org.jomc.cli.Command} {@code 1.0} {@code Multiton}</li>
054     * </ul></p>
055     * <p><b>Properties</b><ul>
056     * <li>"{@link #getAbbreviatedCommandName abbreviatedCommandName}"
057     * <blockquote>Property of type {@code java.lang.String}.
058     * <p>Abbreviated name of the command.</p>
059     * </blockquote></li>
060     * <li>"{@link #getClasspathOptionLongName classpathOptionLongName}"
061     * <blockquote>Property of type {@code java.lang.String}.
062     * <p>Long name of the 'classpath' option.</p>
063     * </blockquote></li>
064     * <li>"{@link #getClasspathOptionShortName classpathOptionShortName}"
065     * <blockquote>Property of type {@code java.lang.String}.
066     * <p>Name of the 'classpath' option.</p>
067     * </blockquote></li>
068     * <li>"{@link #getCommandName commandName}"
069     * <blockquote>Property of type {@code java.lang.String}.
070     * <p>Name of the command.</p>
071     * </blockquote></li>
072     * <li>"{@link #getDocumentsOptionLongName documentsOptionLongName}"
073     * <blockquote>Property of type {@code java.lang.String}.
074     * <p>Long name of the 'documents' option.</p>
075     * </blockquote></li>
076     * <li>"{@link #getDocumentsOptionShortName documentsOptionShortName}"
077     * <blockquote>Property of type {@code java.lang.String}.
078     * <p>Name of the 'documents' option.</p>
079     * </blockquote></li>
080     * <li>"{@link #getModuleLocationOptionLongName moduleLocationOptionLongName}"
081     * <blockquote>Property of type {@code java.lang.String}.
082     * <p>Long name of the 'module-location' option.</p>
083     * </blockquote></li>
084     * <li>"{@link #getModuleLocationOptionShortName moduleLocationOptionShortName}"
085     * <blockquote>Property of type {@code java.lang.String}.
086     * <p>Name of the 'module-location' option.</p>
087     * </blockquote></li>
088     * <li>"{@link #getModuleNameOptionLongName moduleNameOptionLongName}"
089     * <blockquote>Property of type {@code java.lang.String}.
090     * <p>Long name of the 'module' option.</p>
091     * </blockquote></li>
092     * <li>"{@link #getModuleNameOptionShortName moduleNameOptionShortName}"
093     * <blockquote>Property of type {@code java.lang.String}.
094     * <p>Name of the 'module' option.</p>
095     * </blockquote></li>
096     * <li>"{@link #getNoClasspathResolutionOptionLongName noClasspathResolutionOptionLongName}"
097     * <blockquote>Property of type {@code java.lang.String}.
098     * <p>Long name of the 'no-classpath-resolution' option.</p>
099     * </blockquote></li>
100     * <li>"{@link #getNoClasspathResolutionOptionShortName noClasspathResolutionOptionShortName}"
101     * <blockquote>Property of type {@code java.lang.String}.
102     * <p>Name of the 'no-classpath-resolution' option.</p>
103     * </blockquote></li>
104     * </ul></p>
105     * <p><b>Dependencies</b><ul>
106     * <li>"{@link #getLocale Locale}"<blockquote>
107     * Dependency on {@code java.util.Locale} at specification level 1.1 bound to an instance.</blockquote></li>
108     * </ul></p>
109     * <p><b>Messages</b><ul>
110     * <li>"{@link #getApplicationTitleMessage applicationTitle}"<table>
111     * <tr><td valign="top">English:</td><td valign="top"><pre>JOMC Version 1.0-alpha-11 Build 2009-12-07T02:58:52+0000</pre></td></tr>
112     * </table>
113     * <li>"{@link #getCannotProcessMessage cannotProcess}"<table>
114     * <tr><td valign="top">English:</td><td valign="top"><pre>Cannot process ''{0}'': {1}</pre></td></tr>
115     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kann ''{0}'' nicht verarbeiten: {1}</pre></td></tr>
116     * </table>
117     * <li>"{@link #getClasspathElementMessage classpathElement}"<table>
118     * <tr><td valign="top">English:</td><td valign="top"><pre>Classpath element: ''{0}''</pre></td></tr>
119     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Klassenpfad-Element: ''{0}''</pre></td></tr>
120     * </table>
121     * <li>"{@link #getClasspathOptionMessage classpathOption}"<table>
122     * <tr><td valign="top">English:</td><td valign="top"><pre>Classpath elements separated by ''{0}''. If starting with a ''@'' character, a file name of a file holding classpath elements.</pre></td></tr>
123     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Klassenpfad-Elemente mit ''{0}'' getrennt. Wenn mit ''@'' beginnend, Dateiname einer Textdatei mit Klassenpfad-Elementen.</pre></td></tr>
124     * </table>
125     * <li>"{@link #getClasspathOptionArgNameMessage classpathOptionArgName}"<table>
126     * <tr><td valign="top">English:</td><td valign="top"><pre>elements</pre></td></tr>
127     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Elemente</pre></td></tr>
128     * </table>
129     * <li>"{@link #getDefaultLogLevelInfoMessage defaultLogLevelInfo}"<table>
130     * <tr><td valign="top">English:</td><td valign="top"><pre>Default log level: ''{0}''</pre></td></tr>
131     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Standard-Protokollierungsstufe: ''{0}''</pre></td></tr>
132     * </table>
133     * <li>"{@link #getDocumentFileMessage documentFile}"<table>
134     * <tr><td valign="top">English:</td><td valign="top"><pre>Document file: ''{0}''</pre></td></tr>
135     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dokument-Datei: ''{0}''</pre></td></tr>
136     * </table>
137     * <li>"{@link #getDocumentsOptionMessage documentsOption}"<table>
138     * <tr><td valign="top">English:</td><td valign="top"><pre>Document filenames separated by ''{0}''. If starting with a ''@'' character, a file name of a file holding document filenames.</pre></td></tr>
139     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dokument-Dateinamen mit ''{0}'' getrennt. Wenn mit ''@'' beginnend, Dateiname einer Textdatei mit Dokument-Dateinamen.</pre></td></tr>
140     * </table>
141     * <li>"{@link #getDocumentsOptionArgNameMessage documentsOptionArgName}"<table>
142     * <tr><td valign="top">English:</td><td valign="top"><pre>files</pre></td></tr>
143     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dateien</pre></td></tr>
144     * </table>
145     * <li>"{@link #getInvalidModelMessage invalidModel}"<table>
146     * <tr><td valign="top">English:</td><td valign="top"><pre>Invalid model.</pre></td></tr>
147     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ung&uuml;ltiges Modell.</pre></td></tr>
148     * </table>
149     * <li>"{@link #getLongDescriptionMessage longDescription}"<table>
150     * <tr><td valign="top">English:</td><td valign="top"><pre>Example:
151     *   jomc validate-modules -df examples/xml/jomc-cli.xml -v</pre></td></tr>
152     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Beispiel:
153     *   jomc validate-modules -df examples/xml/jomc-cli.xml -v</pre></td></tr>
154     * </table>
155     * <li>"{@link #getMissingModuleMessage missingModule}"<table>
156     * <tr><td valign="top">English:</td><td valign="top"><pre>Module ''{0}'' not found.</pre></td></tr>
157     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Modul ''{0}'' nicht gefunden.</pre></td></tr>
158     * </table>
159     * <li>"{@link #getModuleLocationOptionMessage moduleLocationOption}"<table>
160     * <tr><td valign="top">English:</td><td valign="top"><pre>Location of classpath modules.</pre></td></tr>
161     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ort der Klassenpfad-Module.</pre></td></tr>
162     * </table>
163     * <li>"{@link #getModuleLocationOptionArgNameMessage moduleLocationOptionArgName}"<table>
164     * <tr><td valign="top">English:</td><td valign="top"><pre>location</pre></td></tr>
165     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ort</pre></td></tr>
166     * </table>
167     * <li>"{@link #getModuleNameOptionMessage moduleNameOption}"<table>
168     * <tr><td valign="top">English:</td><td valign="top"><pre>Name of the module to process.</pre></td></tr>
169     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Name des zu verarbeitenden Moduls.</pre></td></tr>
170     * </table>
171     * <li>"{@link #getModuleNameOptionArgNameMessage moduleNameOptionArgName}"<table>
172     * <tr><td valign="top">English:</td><td valign="top"><pre>name</pre></td></tr>
173     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Name</pre></td></tr>
174     * </table>
175     * <li>"{@link #getModulesReportMessage modulesReport}"<table>
176     * <tr><td valign="top">English:</td><td valign="top"><pre>Modules</pre></td></tr>
177     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Module</pre></td></tr>
178     * </table>
179     * <li>"{@link #getNoClasspathResolutionOptionMessage noClasspathResolutionOption}"<table>
180     * <tr><td valign="top">English:</td><td valign="top"><pre>Do not perform classpath resolution.</pre></td></tr>
181     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Keine Klassenpfad-Aufl&ouml;sung durchf&uuml;hren.</pre></td></tr>
182     * </table>
183     * <li>"{@link #getSeparatorMessage separator}"<table>
184     * <tr><td valign="top">English:</td><td valign="top"><pre>--------------------------------------------------------------------------------</pre></td></tr>
185     * </table>
186     * <li>"{@link #getShortDescriptionMessage shortDescription}"<table>
187     * <tr><td valign="top">English:</td><td valign="top"><pre>Validates modules.</pre></td></tr>
188     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Pr&uuml;ft Module.</pre></td></tr>
189     * </table>
190     * <li>"{@link #getStartingModuleProcessingMessage startingModuleProcessing}"<table>
191     * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} with module ''{1}'' ...</pre></td></tr>
192     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>F&uuml;hrt Befehl {0} mit Modul ''{1}'' aus ... </pre></td></tr>
193     * </table>
194     * <li>"{@link #getStartingProcessingMessage startingProcessing}"<table>
195     * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} ...</pre></td></tr>
196     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>F&uuml;hrt Befehl {0} aus ... </pre></td></tr>
197     * </table>
198     * <li>"{@link #getToolFailureMessage toolFailure}"<table>
199     * <tr><td valign="top">English:</td><td valign="top"><pre>{0} failure.</pre></td></tr>
200     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} fehlgeschlagen.</pre></td></tr>
201     * </table>
202     * <li>"{@link #getToolSuccessMessage toolSuccess}"<table>
203     * <tr><td valign="top">English:</td><td valign="top"><pre>{0} successful.</pre></td></tr>
204     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} erfolgreich.</pre></td></tr>
205     * </table>
206     * </ul></p>
207     *
208     * @author <a href="mailto:cs@jomc.org">Christian Schulte</a> 1.0
209     * @version $Id: ValidateModulesCommand.java 1102 2009-12-07 03:01:58Z schulte2005 $
210     */
211    // </editor-fold>
212    // SECTION-END
213    // SECTION-START[Annotations]
214    // <editor-fold defaultstate="collapsed" desc=" Generated Annotations ">
215    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
216                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
217    // </editor-fold>
218    // SECTION-END
219    public class ValidateModulesCommand extends AbstractJomcCommand
220    {
221        // SECTION-START[Command]
222    
223        /** Options of the instance. */
224        private Options options;
225    
226        @Override
227        public Options getOptions()
228        {
229            if ( this.options == null )
230            {
231                this.options = super.getOptions();
232            }
233    
234            return this.options;
235        }
236    
237        @Override
238        public int executeCommand( final CommandLine commandLine ) throws Exception
239        {
240            if ( this.isLoggable( Level.INFO ) )
241            {
242                this.log( Level.INFO, this.getStartingProcessingMessage( this.getLocale(), this.getCommandName() ), null );
243            }
244    
245            final ClassLoader classLoader = this.getClassLoader( commandLine );
246            final JAXBContext context = this.getModelManager().getContext( classLoader );
247            final Marshaller marshaller = this.getModelManager().getMarshaller( classLoader );
248            final Schema schema = this.getModelManager().getSchema( classLoader );
249            final ModelObjectValidationReport validationReport = this.getModelObjectValidator().validateModules(
250                new ObjectFactory().createModules( this.getModules( commandLine ) ), context, schema );
251    
252            this.log( validationReport, marshaller );
253    
254            return validationReport.isModelObjectValid() ? STATUS_SUCCESS : STATUS_FAILURE;
255        }
256    
257        // SECTION-END
258        // SECTION-START[ValidateModulesCommand]
259        // SECTION-END
260        // SECTION-START[Constructors]
261        // <editor-fold defaultstate="collapsed" desc=" Generated Constructors ">
262    
263        /** Creates a new {@code ValidateModulesCommand} instance. */
264        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
265                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
266        public ValidateModulesCommand()
267        {
268            // SECTION-START[Default Constructor]
269            super();
270            // SECTION-END
271        }
272        // </editor-fold>
273        // SECTION-END
274        // SECTION-START[Dependencies]
275        // <editor-fold defaultstate="collapsed" desc=" Generated Dependencies ">
276    
277        /**
278         * Gets the {@code Locale} dependency.
279         * <p>This method returns the "{@code default}" object of the {@code java.util.Locale} specification at specification level 1.1.</p>
280         * <p>That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance.</p>
281         * @return The {@code Locale} dependency.
282         * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
283         */
284        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
285                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
286        private java.util.Locale getLocale()
287        {
288            final java.util.Locale _d = (java.util.Locale) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Locale" );
289            assert _d != null : "'Locale' dependency not found.";
290            return _d;
291        }
292        // </editor-fold>
293        // SECTION-END
294        // SECTION-START[Properties]
295        // <editor-fold defaultstate="collapsed" desc=" Generated Properties ">
296    
297        /**
298         * Gets the value of the {@code abbreviatedCommandName} property.
299         * @return Abbreviated name of the command.
300         * @throws org.jomc.ObjectManagementException if getting the property instance fails.
301         */
302        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
303                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
304        private java.lang.String getAbbreviatedCommandName()
305        {
306            final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "abbreviatedCommandName" );
307            assert _p != null : "'abbreviatedCommandName' property not found.";
308            return _p;
309        }
310    
311        /**
312         * Gets the value of the {@code classpathOptionLongName} property.
313         * @return Long name of the 'classpath' option.
314         * @throws org.jomc.ObjectManagementException if getting the property instance fails.
315         */
316        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
317                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
318        private java.lang.String getClasspathOptionLongName()
319        {
320            final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "classpathOptionLongName" );
321            assert _p != null : "'classpathOptionLongName' property not found.";
322            return _p;
323        }
324    
325        /**
326         * Gets the value of the {@code classpathOptionShortName} property.
327         * @return Name of the 'classpath' option.
328         * @throws org.jomc.ObjectManagementException if getting the property instance fails.
329         */
330        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
331                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
332        private java.lang.String getClasspathOptionShortName()
333        {
334            final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "classpathOptionShortName" );
335            assert _p != null : "'classpathOptionShortName' property not found.";
336            return _p;
337        }
338    
339        /**
340         * Gets the value of the {@code commandName} property.
341         * @return Name of the command.
342         * @throws org.jomc.ObjectManagementException if getting the property instance fails.
343         */
344        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
345                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
346        private java.lang.String getCommandName()
347        {
348            final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "commandName" );
349            assert _p != null : "'commandName' property not found.";
350            return _p;
351        }
352    
353        /**
354         * Gets the value of the {@code documentsOptionLongName} property.
355         * @return Long name of the 'documents' option.
356         * @throws org.jomc.ObjectManagementException if getting the property instance fails.
357         */
358        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
359                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
360        private java.lang.String getDocumentsOptionLongName()
361        {
362            final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "documentsOptionLongName" );
363            assert _p != null : "'documentsOptionLongName' property not found.";
364            return _p;
365        }
366    
367        /**
368         * Gets the value of the {@code documentsOptionShortName} property.
369         * @return Name of the 'documents' option.
370         * @throws org.jomc.ObjectManagementException if getting the property instance fails.
371         */
372        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
373                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
374        private java.lang.String getDocumentsOptionShortName()
375        {
376            final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "documentsOptionShortName" );
377            assert _p != null : "'documentsOptionShortName' property not found.";
378            return _p;
379        }
380    
381        /**
382         * Gets the value of the {@code moduleLocationOptionLongName} property.
383         * @return Long name of the 'module-location' option.
384         * @throws org.jomc.ObjectManagementException if getting the property instance fails.
385         */
386        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
387                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
388        private java.lang.String getModuleLocationOptionLongName()
389        {
390            final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "moduleLocationOptionLongName" );
391            assert _p != null : "'moduleLocationOptionLongName' property not found.";
392            return _p;
393        }
394    
395        /**
396         * Gets the value of the {@code moduleLocationOptionShortName} property.
397         * @return Name of the 'module-location' option.
398         * @throws org.jomc.ObjectManagementException if getting the property instance fails.
399         */
400        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
401                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
402        private java.lang.String getModuleLocationOptionShortName()
403        {
404            final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "moduleLocationOptionShortName" );
405            assert _p != null : "'moduleLocationOptionShortName' property not found.";
406            return _p;
407        }
408    
409        /**
410         * Gets the value of the {@code moduleNameOptionLongName} property.
411         * @return Long name of the 'module' option.
412         * @throws org.jomc.ObjectManagementException if getting the property instance fails.
413         */
414        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
415                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
416        private java.lang.String getModuleNameOptionLongName()
417        {
418            final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "moduleNameOptionLongName" );
419            assert _p != null : "'moduleNameOptionLongName' property not found.";
420            return _p;
421        }
422    
423        /**
424         * Gets the value of the {@code moduleNameOptionShortName} property.
425         * @return Name of the 'module' option.
426         * @throws org.jomc.ObjectManagementException if getting the property instance fails.
427         */
428        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
429                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
430        private java.lang.String getModuleNameOptionShortName()
431        {
432            final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "moduleNameOptionShortName" );
433            assert _p != null : "'moduleNameOptionShortName' property not found.";
434            return _p;
435        }
436    
437        /**
438         * Gets the value of the {@code noClasspathResolutionOptionLongName} property.
439         * @return Long name of the 'no-classpath-resolution' option.
440         * @throws org.jomc.ObjectManagementException if getting the property instance fails.
441         */
442        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
443                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
444        private java.lang.String getNoClasspathResolutionOptionLongName()
445        {
446            final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "noClasspathResolutionOptionLongName" );
447            assert _p != null : "'noClasspathResolutionOptionLongName' property not found.";
448            return _p;
449        }
450    
451        /**
452         * Gets the value of the {@code noClasspathResolutionOptionShortName} property.
453         * @return Name of the 'no-classpath-resolution' option.
454         * @throws org.jomc.ObjectManagementException if getting the property instance fails.
455         */
456        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
457                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
458        private java.lang.String getNoClasspathResolutionOptionShortName()
459        {
460            final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "noClasspathResolutionOptionShortName" );
461            assert _p != null : "'noClasspathResolutionOptionShortName' property not found.";
462            return _p;
463        }
464        // </editor-fold>
465        // SECTION-END
466        // SECTION-START[Messages]
467        // <editor-fold defaultstate="collapsed" desc=" Generated Messages ">
468    
469        /**
470         * Gets the text of the {@code applicationTitle} message.
471         * <p><b>Templates</b><br/><table>
472         * <tr><td valign="top">English:</td><td valign="top"><pre>JOMC Version 1.0-alpha-11 Build 2009-12-07T02:58:52+0000</pre></td></tr>
473         * </table></p>
474         * @param locale The locale of the message to return.
475         * @return The text of the {@code applicationTitle} message.
476         *
477         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
478         */
479        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
480                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
481        private String getApplicationTitleMessage( final java.util.Locale locale )
482        {
483            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "applicationTitle", locale,  null );
484            assert _m != null : "'applicationTitle' message not found.";
485            return _m;
486        }
487    
488        /**
489         * Gets the text of the {@code cannotProcess} message.
490         * <p><b>Templates</b><br/><table>
491         * <tr><td valign="top">English:</td><td valign="top"><pre>Cannot process ''{0}'': {1}</pre></td></tr>
492         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kann ''{0}'' nicht verarbeiten: {1}</pre></td></tr>
493         * </table></p>
494         * @param locale The locale of the message to return.
495         * @param itemInfo Format argument.
496         * @param detailMessage Format argument.
497         * @return The text of the {@code cannotProcess} message.
498         *
499         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
500         */
501        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
502                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
503        private String getCannotProcessMessage( final java.util.Locale locale, final java.lang.String itemInfo, final java.lang.String detailMessage )
504        {
505            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "cannotProcess", locale, new Object[] { itemInfo, detailMessage, null } );
506            assert _m != null : "'cannotProcess' message not found.";
507            return _m;
508        }
509    
510        /**
511         * Gets the text of the {@code classpathElement} message.
512         * <p><b>Templates</b><br/><table>
513         * <tr><td valign="top">English:</td><td valign="top"><pre>Classpath element: ''{0}''</pre></td></tr>
514         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Klassenpfad-Element: ''{0}''</pre></td></tr>
515         * </table></p>
516         * @param locale The locale of the message to return.
517         * @param classpathElement Format argument.
518         * @return The text of the {@code classpathElement} message.
519         *
520         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
521         */
522        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
523                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
524        private String getClasspathElementMessage( final java.util.Locale locale, final java.lang.String classpathElement )
525        {
526            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathElement", locale, new Object[] { classpathElement, null } );
527            assert _m != null : "'classpathElement' message not found.";
528            return _m;
529        }
530    
531        /**
532         * Gets the text of the {@code classpathOption} message.
533         * <p><b>Templates</b><br/><table>
534         * <tr><td valign="top">English:</td><td valign="top"><pre>Classpath elements separated by ''{0}''. If starting with a ''@'' character, a file name of a file holding classpath elements.</pre></td></tr>
535         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Klassenpfad-Elemente mit ''{0}'' getrennt. Wenn mit ''@'' beginnend, Dateiname einer Textdatei mit Klassenpfad-Elementen.</pre></td></tr>
536         * </table></p>
537         * @param locale The locale of the message to return.
538         * @param pathSeparator Format argument.
539         * @return The text of the {@code classpathOption} message.
540         *
541         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
542         */
543        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
544                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
545        private String getClasspathOptionMessage( final java.util.Locale locale, final java.lang.String pathSeparator )
546        {
547            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathOption", locale, new Object[] { pathSeparator, null } );
548            assert _m != null : "'classpathOption' message not found.";
549            return _m;
550        }
551    
552        /**
553         * Gets the text of the {@code classpathOptionArgName} message.
554         * <p><b>Templates</b><br/><table>
555         * <tr><td valign="top">English:</td><td valign="top"><pre>elements</pre></td></tr>
556         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Elemente</pre></td></tr>
557         * </table></p>
558         * @param locale The locale of the message to return.
559         * @return The text of the {@code classpathOptionArgName} message.
560         *
561         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
562         */
563        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
564                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
565        private String getClasspathOptionArgNameMessage( final java.util.Locale locale )
566        {
567            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathOptionArgName", locale,  null );
568            assert _m != null : "'classpathOptionArgName' message not found.";
569            return _m;
570        }
571    
572        /**
573         * Gets the text of the {@code defaultLogLevelInfo} message.
574         * <p><b>Templates</b><br/><table>
575         * <tr><td valign="top">English:</td><td valign="top"><pre>Default log level: ''{0}''</pre></td></tr>
576         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Standard-Protokollierungsstufe: ''{0}''</pre></td></tr>
577         * </table></p>
578         * @param locale The locale of the message to return.
579         * @param defaultLogLevel Format argument.
580         * @return The text of the {@code defaultLogLevelInfo} message.
581         *
582         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
583         */
584        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
585                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
586        private String getDefaultLogLevelInfoMessage( final java.util.Locale locale, final java.lang.String defaultLogLevel )
587        {
588            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "defaultLogLevelInfo", locale, new Object[] { defaultLogLevel, null } );
589            assert _m != null : "'defaultLogLevelInfo' message not found.";
590            return _m;
591        }
592    
593        /**
594         * Gets the text of the {@code documentFile} message.
595         * <p><b>Templates</b><br/><table>
596         * <tr><td valign="top">English:</td><td valign="top"><pre>Document file: ''{0}''</pre></td></tr>
597         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dokument-Datei: ''{0}''</pre></td></tr>
598         * </table></p>
599         * @param locale The locale of the message to return.
600         * @param documentFile Format argument.
601         * @return The text of the {@code documentFile} message.
602         *
603         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
604         */
605        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
606                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
607        private String getDocumentFileMessage( final java.util.Locale locale, final java.lang.String documentFile )
608        {
609            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentFile", locale, new Object[] { documentFile, null } );
610            assert _m != null : "'documentFile' message not found.";
611            return _m;
612        }
613    
614        /**
615         * Gets the text of the {@code documentsOption} message.
616         * <p><b>Templates</b><br/><table>
617         * <tr><td valign="top">English:</td><td valign="top"><pre>Document filenames separated by ''{0}''. If starting with a ''@'' character, a file name of a file holding document filenames.</pre></td></tr>
618         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dokument-Dateinamen mit ''{0}'' getrennt. Wenn mit ''@'' beginnend, Dateiname einer Textdatei mit Dokument-Dateinamen.</pre></td></tr>
619         * </table></p>
620         * @param locale The locale of the message to return.
621         * @param pathSeparator Format argument.
622         * @return The text of the {@code documentsOption} message.
623         *
624         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
625         */
626        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
627                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
628        private String getDocumentsOptionMessage( final java.util.Locale locale, final java.lang.String pathSeparator )
629        {
630            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentsOption", locale, new Object[] { pathSeparator, null } );
631            assert _m != null : "'documentsOption' message not found.";
632            return _m;
633        }
634    
635        /**
636         * Gets the text of the {@code documentsOptionArgName} message.
637         * <p><b>Templates</b><br/><table>
638         * <tr><td valign="top">English:</td><td valign="top"><pre>files</pre></td></tr>
639         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dateien</pre></td></tr>
640         * </table></p>
641         * @param locale The locale of the message to return.
642         * @return The text of the {@code documentsOptionArgName} message.
643         *
644         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
645         */
646        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
647                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
648        private String getDocumentsOptionArgNameMessage( final java.util.Locale locale )
649        {
650            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentsOptionArgName", locale,  null );
651            assert _m != null : "'documentsOptionArgName' message not found.";
652            return _m;
653        }
654    
655        /**
656         * Gets the text of the {@code invalidModel} message.
657         * <p><b>Templates</b><br/><table>
658         * <tr><td valign="top">English:</td><td valign="top"><pre>Invalid model.</pre></td></tr>
659         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ung&uuml;ltiges Modell.</pre></td></tr>
660         * </table></p>
661         * @param locale The locale of the message to return.
662         * @return The text of the {@code invalidModel} message.
663         *
664         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
665         */
666        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
667                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
668        private String getInvalidModelMessage( final java.util.Locale locale )
669        {
670            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "invalidModel", locale,  null );
671            assert _m != null : "'invalidModel' message not found.";
672            return _m;
673        }
674    
675        /**
676         * Gets the text of the {@code longDescription} message.
677         * <p><b>Templates</b><br/><table>
678         * <tr><td valign="top">English:</td><td valign="top"><pre>Example:
679         *   jomc validate-modules -df examples/xml/jomc-cli.xml -v</pre></td></tr>
680         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Beispiel:
681         *   jomc validate-modules -df examples/xml/jomc-cli.xml -v</pre></td></tr>
682         * </table></p>
683         * @param locale The locale of the message to return.
684         * @return The text of the {@code longDescription} message.
685         *
686         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
687         */
688        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
689                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
690        private String getLongDescriptionMessage( final java.util.Locale locale )
691        {
692            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "longDescription", locale,  null );
693            assert _m != null : "'longDescription' message not found.";
694            return _m;
695        }
696    
697        /**
698         * Gets the text of the {@code missingModule} message.
699         * <p><b>Templates</b><br/><table>
700         * <tr><td valign="top">English:</td><td valign="top"><pre>Module ''{0}'' not found.</pre></td></tr>
701         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Modul ''{0}'' nicht gefunden.</pre></td></tr>
702         * </table></p>
703         * @param locale The locale of the message to return.
704         * @param moduleName Format argument.
705         * @return The text of the {@code missingModule} message.
706         *
707         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
708         */
709        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
710                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
711        private String getMissingModuleMessage( final java.util.Locale locale, final java.lang.String moduleName )
712        {
713            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "missingModule", locale, new Object[] { moduleName, null } );
714            assert _m != null : "'missingModule' message not found.";
715            return _m;
716        }
717    
718        /**
719         * Gets the text of the {@code moduleLocationOption} message.
720         * <p><b>Templates</b><br/><table>
721         * <tr><td valign="top">English:</td><td valign="top"><pre>Location of classpath modules.</pre></td></tr>
722         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ort der Klassenpfad-Module.</pre></td></tr>
723         * </table></p>
724         * @param locale The locale of the message to return.
725         * @return The text of the {@code moduleLocationOption} message.
726         *
727         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
728         */
729        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
730                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
731        private String getModuleLocationOptionMessage( final java.util.Locale locale )
732        {
733            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "moduleLocationOption", locale,  null );
734            assert _m != null : "'moduleLocationOption' message not found.";
735            return _m;
736        }
737    
738        /**
739         * Gets the text of the {@code moduleLocationOptionArgName} message.
740         * <p><b>Templates</b><br/><table>
741         * <tr><td valign="top">English:</td><td valign="top"><pre>location</pre></td></tr>
742         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ort</pre></td></tr>
743         * </table></p>
744         * @param locale The locale of the message to return.
745         * @return The text of the {@code moduleLocationOptionArgName} message.
746         *
747         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
748         */
749        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
750                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
751        private String getModuleLocationOptionArgNameMessage( final java.util.Locale locale )
752        {
753            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "moduleLocationOptionArgName", locale,  null );
754            assert _m != null : "'moduleLocationOptionArgName' message not found.";
755            return _m;
756        }
757    
758        /**
759         * Gets the text of the {@code moduleNameOption} message.
760         * <p><b>Templates</b><br/><table>
761         * <tr><td valign="top">English:</td><td valign="top"><pre>Name of the module to process.</pre></td></tr>
762         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Name des zu verarbeitenden Moduls.</pre></td></tr>
763         * </table></p>
764         * @param locale The locale of the message to return.
765         * @return The text of the {@code moduleNameOption} message.
766         *
767         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
768         */
769        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
770                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
771        private String getModuleNameOptionMessage( final java.util.Locale locale )
772        {
773            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "moduleNameOption", locale,  null );
774            assert _m != null : "'moduleNameOption' message not found.";
775            return _m;
776        }
777    
778        /**
779         * Gets the text of the {@code moduleNameOptionArgName} message.
780         * <p><b>Templates</b><br/><table>
781         * <tr><td valign="top">English:</td><td valign="top"><pre>name</pre></td></tr>
782         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Name</pre></td></tr>
783         * </table></p>
784         * @param locale The locale of the message to return.
785         * @return The text of the {@code moduleNameOptionArgName} message.
786         *
787         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
788         */
789        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
790                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
791        private String getModuleNameOptionArgNameMessage( final java.util.Locale locale )
792        {
793            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "moduleNameOptionArgName", locale,  null );
794            assert _m != null : "'moduleNameOptionArgName' message not found.";
795            return _m;
796        }
797    
798        /**
799         * Gets the text of the {@code modulesReport} message.
800         * <p><b>Templates</b><br/><table>
801         * <tr><td valign="top">English:</td><td valign="top"><pre>Modules</pre></td></tr>
802         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Module</pre></td></tr>
803         * </table></p>
804         * @param locale The locale of the message to return.
805         * @return The text of the {@code modulesReport} message.
806         *
807         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
808         */
809        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
810                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
811        private String getModulesReportMessage( final java.util.Locale locale )
812        {
813            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "modulesReport", locale,  null );
814            assert _m != null : "'modulesReport' message not found.";
815            return _m;
816        }
817    
818        /**
819         * Gets the text of the {@code noClasspathResolutionOption} message.
820         * <p><b>Templates</b><br/><table>
821         * <tr><td valign="top">English:</td><td valign="top"><pre>Do not perform classpath resolution.</pre></td></tr>
822         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Keine Klassenpfad-Aufl&ouml;sung durchf&uuml;hren.</pre></td></tr>
823         * </table></p>
824         * @param locale The locale of the message to return.
825         * @return The text of the {@code noClasspathResolutionOption} message.
826         *
827         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
828         */
829        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
830                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
831        private String getNoClasspathResolutionOptionMessage( final java.util.Locale locale )
832        {
833            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "noClasspathResolutionOption", locale,  null );
834            assert _m != null : "'noClasspathResolutionOption' message not found.";
835            return _m;
836        }
837    
838        /**
839         * Gets the text of the {@code separator} message.
840         * <p><b>Templates</b><br/><table>
841         * <tr><td valign="top">English:</td><td valign="top"><pre>--------------------------------------------------------------------------------</pre></td></tr>
842         * </table></p>
843         * @param locale The locale of the message to return.
844         * @return The text of the {@code separator} message.
845         *
846         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
847         */
848        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
849                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
850        private String getSeparatorMessage( final java.util.Locale locale )
851        {
852            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "separator", locale,  null );
853            assert _m != null : "'separator' message not found.";
854            return _m;
855        }
856    
857        /**
858         * Gets the text of the {@code shortDescription} message.
859         * <p><b>Templates</b><br/><table>
860         * <tr><td valign="top">English:</td><td valign="top"><pre>Validates modules.</pre></td></tr>
861         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Pr&uuml;ft Module.</pre></td></tr>
862         * </table></p>
863         * @param locale The locale of the message to return.
864         * @return The text of the {@code shortDescription} message.
865         *
866         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
867         */
868        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
869                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
870        private String getShortDescriptionMessage( final java.util.Locale locale )
871        {
872            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "shortDescription", locale,  null );
873            assert _m != null : "'shortDescription' message not found.";
874            return _m;
875        }
876    
877        /**
878         * Gets the text of the {@code startingModuleProcessing} message.
879         * <p><b>Templates</b><br/><table>
880         * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} with module ''{1}'' ...</pre></td></tr>
881         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>F&uuml;hrt Befehl {0} mit Modul ''{1}'' aus ... </pre></td></tr>
882         * </table></p>
883         * @param locale The locale of the message to return.
884         * @param toolName Format argument.
885         * @param moduleName Format argument.
886         * @return The text of the {@code startingModuleProcessing} message.
887         *
888         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
889         */
890        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
891                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
892        private String getStartingModuleProcessingMessage( final java.util.Locale locale, final java.lang.String toolName, final java.lang.String moduleName )
893        {
894            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "startingModuleProcessing", locale, new Object[] { toolName, moduleName, null } );
895            assert _m != null : "'startingModuleProcessing' message not found.";
896            return _m;
897        }
898    
899        /**
900         * Gets the text of the {@code startingProcessing} message.
901         * <p><b>Templates</b><br/><table>
902         * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} ...</pre></td></tr>
903         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>F&uuml;hrt Befehl {0} aus ... </pre></td></tr>
904         * </table></p>
905         * @param locale The locale of the message to return.
906         * @param toolName Format argument.
907         * @return The text of the {@code startingProcessing} message.
908         *
909         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
910         */
911        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
912                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
913        private String getStartingProcessingMessage( final java.util.Locale locale, final java.lang.String toolName )
914        {
915            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "startingProcessing", locale, new Object[] { toolName, null } );
916            assert _m != null : "'startingProcessing' message not found.";
917            return _m;
918        }
919    
920        /**
921         * Gets the text of the {@code toolFailure} message.
922         * <p><b>Templates</b><br/><table>
923         * <tr><td valign="top">English:</td><td valign="top"><pre>{0} failure.</pre></td></tr>
924         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} fehlgeschlagen.</pre></td></tr>
925         * </table></p>
926         * @param locale The locale of the message to return.
927         * @param toolName Format argument.
928         * @return The text of the {@code toolFailure} message.
929         *
930         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
931         */
932        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
933                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
934        private String getToolFailureMessage( final java.util.Locale locale, final java.lang.String toolName )
935        {
936            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "toolFailure", locale, new Object[] { toolName, null } );
937            assert _m != null : "'toolFailure' message not found.";
938            return _m;
939        }
940    
941        /**
942         * Gets the text of the {@code toolSuccess} message.
943         * <p><b>Templates</b><br/><table>
944         * <tr><td valign="top">English:</td><td valign="top"><pre>{0} successful.</pre></td></tr>
945         * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} erfolgreich.</pre></td></tr>
946         * </table></p>
947         * @param locale The locale of the message to return.
948         * @param toolName Format argument.
949         * @return The text of the {@code toolSuccess} message.
950         *
951         * @throws org.jomc.ObjectManagementException if getting the message instance fails.
952         */
953        @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
954                                     comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
955        private String getToolSuccessMessage( final java.util.Locale locale, final java.lang.String toolName )
956        {
957            final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "toolSuccess", locale, new Object[] { toolName, null } );
958            assert _m != null : "'toolSuccess' message not found.";
959            return _m;
960        }
961        // </editor-fold>
962        // SECTION-END
963    }