EMMA Coverage Report (generated Wed Feb 03 01:24:19 UTC 2010)
[all classes][org.jomc.cli.commands]

COVERAGE SUMMARY FOR SOURCE FILE [ValidateModulesCommand.java]

nameclass, %method, %block, %line, %
ValidateModulesCommand.java100% (1/1)23%  (7/31)16%  (111/676)22%  (21/94)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ValidateModulesCommand100% (1/1)23%  (7/31)16%  (111/676)22%  (21/94)
getAbbreviatedCommandName (): String 0%   (0/1)0%   (0/20)0%   (0/3)
getApplicationTitleMessage (Locale): String 0%   (0/1)0%   (0/22)0%   (0/3)
getCannotProcessMessage (Locale, String, String): String 0%   (0/1)0%   (0/30)0%   (0/3)
getClasspathElementMessage (Locale, String): String 0%   (0/1)0%   (0/26)0%   (0/3)
getClasspathOption (): Option 0%   (0/1)0%   (0/20)0%   (0/3)
getDefaultLogLevelInfoMessage (Locale, String): String 0%   (0/1)0%   (0/26)0%   (0/3)
getDocumentFileMessage (Locale, String): String 0%   (0/1)0%   (0/26)0%   (0/3)
getDocumentsOption (): Option 0%   (0/1)0%   (0/20)0%   (0/3)
getInvalidModelMessage (Locale): String 0%   (0/1)0%   (0/22)0%   (0/3)
getLongDescriptionMessage (Locale): String 0%   (0/1)0%   (0/22)0%   (0/3)
getMissingModuleMessage (Locale, String): String 0%   (0/1)0%   (0/26)0%   (0/3)
getModuleLocationOption (): Option 0%   (0/1)0%   (0/20)0%   (0/3)
getModuleNameOption (): Option 0%   (0/1)0%   (0/20)0%   (0/3)
getModulesReportMessage (Locale): String 0%   (0/1)0%   (0/22)0%   (0/3)
getNoClasspathResolutionOption (): Option 0%   (0/1)0%   (0/20)0%   (0/3)
getNoModelProcessingOption (): Option 0%   (0/1)0%   (0/20)0%   (0/3)
getSchemaLocationOption (): Option 0%   (0/1)0%   (0/20)0%   (0/3)
getSeparatorMessage (Locale): String 0%   (0/1)0%   (0/22)0%   (0/3)
getServiceLocationOption (): Option 0%   (0/1)0%   (0/20)0%   (0/3)
getShortDescriptionMessage (Locale): String 0%   (0/1)0%   (0/22)0%   (0/3)
getStartingModuleProcessingMessage (Locale, String, String): String 0%   (0/1)0%   (0/30)0%   (0/3)
getToolFailureMessage (Locale, String): String 0%   (0/1)0%   (0/26)0%   (0/3)
getToolSuccessMessage (Locale, String): String 0%   (0/1)0%   (0/26)0%   (0/3)
getTransformerLocationOption (): Option 0%   (0/1)0%   (0/20)0%   (0/3)
<static initializer> 100% (1/1)75%  (6/8)75%  (0.8/1)
getCommandName (): String 100% (1/1)75%  (15/20)91%  (2.7/3)
getLocale (): Locale 100% (1/1)75%  (15/20)91%  (2.7/3)
getStartingProcessingMessage (Locale, String): String 100% (1/1)81%  (21/26)93%  (2.8/3)
ValidateModulesCommand (): void 100% (1/1)100% (3/3)100% (2/2)
executeCommand (CommandLine): int 100% (1/1)100% (41/41)100% (7/7)
getOptions (): Options 100% (1/1)100% (10/10)100% (3/3)

1// SECTION-START[License Header]
2// <editor-fold defaultstate="collapsed" desc=" Generated License ">
3/*
4 *   Copyright (c) 2010 The JOMC Project
5 *   Copyright (c) 2005 Christian Schulte <cs@jomc.org>
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 BY THE JOMC PROJECT AND CONTRIBUTORS "AS IS"
21 *   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22 *   THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 *   PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE JOMC PROJECT OR
24 *   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 *   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27 *   OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28 *   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29 *   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
30 *   ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 *   $Id: ValidateModulesCommand.java 1452 2010-02-02 05:35:30Z schulte2005 $
33 *
34 */
35// </editor-fold>
36// SECTION-END
37package org.jomc.cli.commands;
38 
39import java.util.logging.Level;
40import org.apache.commons.cli.CommandLine;
41import org.apache.commons.cli.Options;
42import org.jomc.model.ModelContext;
43import org.jomc.model.ModelValidationReport;
44 
45// SECTION-START[Documentation]
46// <editor-fold defaultstate="collapsed" desc=" Generated Documentation ">
47/**
48 * Command line interface for validating modules.
49 * <p><b>Specifications</b><ul>
50 * <li>{@code org.jomc.cli.Command} {@code 1.0} {@code Multiton}</li>
51 * </ul></p>
52 * <p><b>Properties</b><ul>
53 * <li>"{@link #getAbbreviatedCommandName abbreviatedCommandName}"
54 * <blockquote>Property of type {@code java.lang.String}.
55 * <p>Abbreviated name of the command.</p>
56 * </blockquote></li>
57 * <li>"{@link #getCommandName commandName}"
58 * <blockquote>Property of type {@code java.lang.String}.
59 * <p>Name of the command.</p>
60 * </blockquote></li>
61 * </ul></p>
62 * <p><b>Dependencies</b><ul>
63 * <li>"{@link #getClasspathOption ClasspathOption}"<blockquote>
64 * Dependency on {@code org.apache.commons.cli.Option} bound to an instance.</blockquote></li>
65 * <li>"{@link #getDocumentsOption DocumentsOption}"<blockquote>
66 * Dependency on {@code org.apache.commons.cli.Option} bound to an instance.</blockquote></li>
67 * <li>"{@link #getLocale Locale}"<blockquote>
68 * Dependency on {@code java.util.Locale} at specification level 1.1 bound to an instance.</blockquote></li>
69 * <li>"{@link #getModuleLocationOption ModuleLocationOption}"<blockquote>
70 * Dependency on {@code org.apache.commons.cli.Option} bound to an instance.</blockquote></li>
71 * <li>"{@link #getModuleNameOption ModuleNameOption}"<blockquote>
72 * Dependency on {@code org.apache.commons.cli.Option} bound to an instance.</blockquote></li>
73 * <li>"{@link #getNoClasspathResolutionOption NoClasspathResolutionOption}"<blockquote>
74 * Dependency on {@code org.apache.commons.cli.Option} bound to an instance.</blockquote></li>
75 * <li>"{@link #getNoModelProcessingOption NoModelProcessingOption}"<blockquote>
76 * Dependency on {@code org.apache.commons.cli.Option} bound to an instance.</blockquote></li>
77 * <li>"{@link #getSchemaLocationOption SchemaLocationOption}"<blockquote>
78 * Dependency on {@code org.apache.commons.cli.Option} bound to an instance.</blockquote></li>
79 * <li>"{@link #getServiceLocationOption ServiceLocationOption}"<blockquote>
80 * Dependency on {@code org.apache.commons.cli.Option} bound to an instance.</blockquote></li>
81 * <li>"{@link #getTransformerLocationOption TransformerLocationOption}"<blockquote>
82 * Dependency on {@code org.apache.commons.cli.Option} bound to an instance.</blockquote></li>
83 * </ul></p>
84 * <p><b>Messages</b><ul>
85 * <li>"{@link #getApplicationTitleMessage applicationTitle}"<table>
86 * <tr><td valign="top">English:</td><td valign="top"><pre>JOMC Version 1.0-alpha-16 Build 2010-02-02T05:28:08+0000</pre></td></tr>
87 * </table>
88 * <li>"{@link #getCannotProcessMessage cannotProcess}"<table>
89 * <tr><td valign="top">English:</td><td valign="top"><pre>Cannot process ''{0}'': {1}</pre></td></tr>
90 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kann ''{0}'' nicht verarbeiten: {1}</pre></td></tr>
91 * </table>
92 * <li>"{@link #getClasspathElementMessage classpathElement}"<table>
93 * <tr><td valign="top">English:</td><td valign="top"><pre>Classpath element: ''{0}''</pre></td></tr>
94 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Klassenpfad-Element: ''{0}''</pre></td></tr>
95 * </table>
96 * <li>"{@link #getDefaultLogLevelInfoMessage defaultLogLevelInfo}"<table>
97 * <tr><td valign="top">English:</td><td valign="top"><pre>Default log level: ''{0}''</pre></td></tr>
98 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Standard-Protokollierungsstufe: ''{0}''</pre></td></tr>
99 * </table>
100 * <li>"{@link #getDocumentFileMessage documentFile}"<table>
101 * <tr><td valign="top">English:</td><td valign="top"><pre>Document file: ''{0}''</pre></td></tr>
102 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dokument-Datei: ''{0}''</pre></td></tr>
103 * </table>
104 * <li>"{@link #getInvalidModelMessage invalidModel}"<table>
105 * <tr><td valign="top">English:</td><td valign="top"><pre>Invalid model.</pre></td></tr>
106 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ung&uuml;ltiges Modell.</pre></td></tr>
107 * </table>
108 * <li>"{@link #getLongDescriptionMessage longDescription}"<table>
109 * <tr><td valign="top">English:</td><td valign="top"><pre>Example:
110 *   jomc validate-modules -cp &lt;classpath&gt; \
111 *                         -df examples/xml/jomc-cli.xml \
112 *                         -v</pre></td></tr>
113 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Beispiel:
114 *   jomc validate-modules -cp &lt;classpath&gt; \
115 *                         -df examples/xml/jomc-cli.xml \
116 *                         -v</pre></td></tr>
117 * </table>
118 * <li>"{@link #getMissingModuleMessage missingModule}"<table>
119 * <tr><td valign="top">English:</td><td valign="top"><pre>Module ''{0}'' not found.</pre></td></tr>
120 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Modul ''{0}'' nicht gefunden.</pre></td></tr>
121 * </table>
122 * <li>"{@link #getModulesReportMessage modulesReport}"<table>
123 * <tr><td valign="top">English:</td><td valign="top"><pre>Modules</pre></td></tr>
124 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Module</pre></td></tr>
125 * </table>
126 * <li>"{@link #getSeparatorMessage separator}"<table>
127 * <tr><td valign="top">English:</td><td valign="top"><pre>--------------------------------------------------------------------------------</pre></td></tr>
128 * </table>
129 * <li>"{@link #getShortDescriptionMessage shortDescription}"<table>
130 * <tr><td valign="top">English:</td><td valign="top"><pre>Validates modules.</pre></td></tr>
131 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Pr&uuml;ft Module.</pre></td></tr>
132 * </table>
133 * <li>"{@link #getStartingModuleProcessingMessage startingModuleProcessing}"<table>
134 * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} with module ''{1}'' ...</pre></td></tr>
135 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>F&uuml;hrt Befehl {0} mit Modul ''{1}'' aus ... </pre></td></tr>
136 * </table>
137 * <li>"{@link #getStartingProcessingMessage startingProcessing}"<table>
138 * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} ...</pre></td></tr>
139 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>F&uuml;hrt Befehl {0} aus ... </pre></td></tr>
140 * </table>
141 * <li>"{@link #getToolFailureMessage toolFailure}"<table>
142 * <tr><td valign="top">English:</td><td valign="top"><pre>{0} failure.</pre></td></tr>
143 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} fehlgeschlagen.</pre></td></tr>
144 * </table>
145 * <li>"{@link #getToolSuccessMessage toolSuccess}"<table>
146 * <tr><td valign="top">English:</td><td valign="top"><pre>{0} successful.</pre></td></tr>
147 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} erfolgreich.</pre></td></tr>
148 * </table>
149 * </ul></p>
150 *
151 * @author <a href="mailto:cs@jomc.org">Christian Schulte</a> 1.0
152 * @version $Id: ValidateModulesCommand.java 1452 2010-02-02 05:35:30Z schulte2005 $
153 */
154// </editor-fold>
155// SECTION-END
156// SECTION-START[Annotations]
157// <editor-fold defaultstate="collapsed" desc=" Generated Annotations ">
158@javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
159                             comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
160// </editor-fold>
161// SECTION-END
162public class ValidateModulesCommand extends AbstractJomcCommand
163{
164    // SECTION-START[Command]
165 
166    /** Options of the instance. */
167    private Options options;
168 
169    @Override
170    public Options getOptions()
171    {
172        if ( this.options == null )
173        {
174            this.options = super.getOptions();
175        }
176 
177        return this.options;
178    }
179 
180    @Override
181    public int executeCommand( final CommandLine commandLine ) throws Exception
182    {
183        if ( this.isLoggable( Level.INFO ) )
184        {
185            this.log( Level.INFO, this.getStartingProcessingMessage( this.getLocale(), this.getCommandName() ), null );
186        }
187 
188        final ClassLoader classLoader = this.getClassLoader( commandLine );
189        final ModelContext context = this.getModelContext( classLoader );
190        final ModelValidationReport validationReport = context.validateModel( this.getModules( context, commandLine ) );
191        this.log( validationReport, context.createMarshaller() );
192        return validationReport.isModelValid() ? STATUS_SUCCESS : STATUS_FAILURE;
193    }
194 
195    // SECTION-END
196    // SECTION-START[ValidateModulesCommand]
197    // SECTION-END
198    // SECTION-START[Constructors]
199    // <editor-fold defaultstate="collapsed" desc=" Generated Constructors ">
200 
201    /** Creates a new {@code ValidateModulesCommand} instance. */
202    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
203                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
204    public ValidateModulesCommand()
205    {
206        // SECTION-START[Default Constructor]
207        super();
208        // SECTION-END
209    }
210    // </editor-fold>
211    // SECTION-END
212    // SECTION-START[Dependencies]
213    // <editor-fold defaultstate="collapsed" desc=" Generated Dependencies ">
214 
215    /**
216     * Gets the {@code ClasspathOption} dependency.
217     * <p>This method returns the "{@code JOMC CLI Classpath Option}" object of the {@code org.apache.commons.cli.Option} specification.</p>
218     * <p>That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance.</p>
219     * @return The {@code ClasspathOption} dependency.
220     * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
221     */
222    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
223                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
224    private org.apache.commons.cli.Option getClasspathOption()
225    {
226        final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ClasspathOption" );
227        assert _d != null : "'ClasspathOption' dependency not found.";
228        return _d;
229    }
230 
231    /**
232     * Gets the {@code DocumentsOption} dependency.
233     * <p>This method returns the "{@code JOMC CLI Documents Option}" object of the {@code org.apache.commons.cli.Option} specification.</p>
234     * <p>That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance.</p>
235     * @return The {@code DocumentsOption} dependency.
236     * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
237     */
238    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
239                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
240    private org.apache.commons.cli.Option getDocumentsOption()
241    {
242        final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "DocumentsOption" );
243        assert _d != null : "'DocumentsOption' dependency not found.";
244        return _d;
245    }
246 
247    /**
248     * Gets the {@code Locale} dependency.
249     * <p>This method returns the "{@code default}" object of the {@code java.util.Locale} specification at specification level 1.1.</p>
250     * <p>That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance.</p>
251     * @return The {@code Locale} dependency.
252     * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
253     */
254    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
255                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
256    private java.util.Locale getLocale()
257    {
258        final java.util.Locale _d = (java.util.Locale) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Locale" );
259        assert _d != null : "'Locale' dependency not found.";
260        return _d;
261    }
262 
263    /**
264     * Gets the {@code ModuleLocationOption} dependency.
265     * <p>This method returns the "{@code JOMC CLI Module Location Option}" object of the {@code org.apache.commons.cli.Option} specification.</p>
266     * <p>That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance.</p>
267     * @return The {@code ModuleLocationOption} dependency.
268     * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
269     */
270    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
271                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
272    private org.apache.commons.cli.Option getModuleLocationOption()
273    {
274        final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModuleLocationOption" );
275        assert _d != null : "'ModuleLocationOption' dependency not found.";
276        return _d;
277    }
278 
279    /**
280     * Gets the {@code ModuleNameOption} dependency.
281     * <p>This method returns the "{@code JOMC CLI Module Name Option}" object of the {@code org.apache.commons.cli.Option} specification.</p>
282     * <p>That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance.</p>
283     * @return The {@code ModuleNameOption} dependency.
284     * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
285     */
286    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
287                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
288    private org.apache.commons.cli.Option getModuleNameOption()
289    {
290        final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModuleNameOption" );
291        assert _d != null : "'ModuleNameOption' dependency not found.";
292        return _d;
293    }
294 
295    /**
296     * Gets the {@code NoClasspathResolutionOption} dependency.
297     * <p>This method returns the "{@code JOMC CLI No Classpath Resolution Option}" object of the {@code org.apache.commons.cli.Option} specification.</p>
298     * <p>That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance.</p>
299     * @return The {@code NoClasspathResolutionOption} dependency.
300     * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
301     */
302    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
303                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
304    private org.apache.commons.cli.Option getNoClasspathResolutionOption()
305    {
306        final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "NoClasspathResolutionOption" );
307        assert _d != null : "'NoClasspathResolutionOption' dependency not found.";
308        return _d;
309    }
310 
311    /**
312     * Gets the {@code NoModelProcessingOption} dependency.
313     * <p>This method returns the "{@code JOMC CLI No Model Processing Option}" object of the {@code org.apache.commons.cli.Option} specification.</p>
314     * <p>That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance.</p>
315     * @return The {@code NoModelProcessingOption} dependency.
316     * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
317     */
318    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
319                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
320    private org.apache.commons.cli.Option getNoModelProcessingOption()
321    {
322        final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "NoModelProcessingOption" );
323        assert _d != null : "'NoModelProcessingOption' dependency not found.";
324        return _d;
325    }
326 
327    /**
328     * Gets the {@code SchemaLocationOption} dependency.
329     * <p>This method returns the "{@code JOMC CLI Schema Location Option}" object of the {@code org.apache.commons.cli.Option} specification.</p>
330     * <p>That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance.</p>
331     * @return The {@code SchemaLocationOption} dependency.
332     * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
333     */
334    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
335                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
336    private org.apache.commons.cli.Option getSchemaLocationOption()
337    {
338        final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "SchemaLocationOption" );
339        assert _d != null : "'SchemaLocationOption' dependency not found.";
340        return _d;
341    }
342 
343    /**
344     * Gets the {@code ServiceLocationOption} dependency.
345     * <p>This method returns the "{@code JOMC CLI Service Location Option}" object of the {@code org.apache.commons.cli.Option} specification.</p>
346     * <p>That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance.</p>
347     * @return The {@code ServiceLocationOption} dependency.
348     * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
349     */
350    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
351                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
352    private org.apache.commons.cli.Option getServiceLocationOption()
353    {
354        final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ServiceLocationOption" );
355        assert _d != null : "'ServiceLocationOption' dependency not found.";
356        return _d;
357    }
358 
359    /**
360     * Gets the {@code TransformerLocationOption} dependency.
361     * <p>This method returns the "{@code JOMC CLI Transformer Location Option}" object of the {@code org.apache.commons.cli.Option} specification.</p>
362     * <p>That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance.</p>
363     * @return The {@code TransformerLocationOption} dependency.
364     * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
365     */
366    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
367                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
368    private org.apache.commons.cli.Option getTransformerLocationOption()
369    {
370        final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "TransformerLocationOption" );
371        assert _d != null : "'TransformerLocationOption' dependency not found.";
372        return _d;
373    }
374    // </editor-fold>
375    // SECTION-END
376    // SECTION-START[Properties]
377    // <editor-fold defaultstate="collapsed" desc=" Generated Properties ">
378 
379    /**
380     * Gets the value of the {@code abbreviatedCommandName} property.
381     * @return Abbreviated name of the command.
382     * @throws org.jomc.ObjectManagementException if getting the property instance fails.
383     */
384    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
385                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
386    private java.lang.String getAbbreviatedCommandName()
387    {
388        final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "abbreviatedCommandName" );
389        assert _p != null : "'abbreviatedCommandName' property not found.";
390        return _p;
391    }
392 
393    /**
394     * Gets the value of the {@code commandName} property.
395     * @return Name of the command.
396     * @throws org.jomc.ObjectManagementException if getting the property instance fails.
397     */
398    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
399                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
400    private java.lang.String getCommandName()
401    {
402        final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "commandName" );
403        assert _p != null : "'commandName' property not found.";
404        return _p;
405    }
406    // </editor-fold>
407    // SECTION-END
408    // SECTION-START[Messages]
409    // <editor-fold defaultstate="collapsed" desc=" Generated Messages ">
410 
411    /**
412     * Gets the text of the {@code applicationTitle} message.
413     * <p><b>Templates</b><br/><table>
414     * <tr><td valign="top">English:</td><td valign="top"><pre>JOMC Version 1.0-alpha-16 Build 2010-02-02T05:28:08+0000</pre></td></tr>
415     * </table></p>
416     * @param locale The locale of the message to return.
417     * @return The text of the {@code applicationTitle} message.
418     *
419     * @throws org.jomc.ObjectManagementException if getting the message instance fails.
420     */
421    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
422                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
423    private String getApplicationTitleMessage( final java.util.Locale locale )
424    {
425        final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "applicationTitle", locale );
426        assert _m != null : "'applicationTitle' message not found.";
427        return _m;
428    }
429 
430    /**
431     * Gets the text of the {@code cannotProcess} message.
432     * <p><b>Templates</b><br/><table>
433     * <tr><td valign="top">English:</td><td valign="top"><pre>Cannot process ''{0}'': {1}</pre></td></tr>
434     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kann ''{0}'' nicht verarbeiten: {1}</pre></td></tr>
435     * </table></p>
436     * @param locale The locale of the message to return.
437     * @param itemInfo Format argument.
438     * @param detailMessage Format argument.
439     * @return The text of the {@code cannotProcess} message.
440     *
441     * @throws org.jomc.ObjectManagementException if getting the message instance fails.
442     */
443    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
444                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
445    private String getCannotProcessMessage( final java.util.Locale locale, final java.lang.String itemInfo, final java.lang.String detailMessage )
446    {
447        final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "cannotProcess", locale, itemInfo, detailMessage );
448        assert _m != null : "'cannotProcess' message not found.";
449        return _m;
450    }
451 
452    /**
453     * Gets the text of the {@code classpathElement} message.
454     * <p><b>Templates</b><br/><table>
455     * <tr><td valign="top">English:</td><td valign="top"><pre>Classpath element: ''{0}''</pre></td></tr>
456     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Klassenpfad-Element: ''{0}''</pre></td></tr>
457     * </table></p>
458     * @param locale The locale of the message to return.
459     * @param classpathElement Format argument.
460     * @return The text of the {@code classpathElement} message.
461     *
462     * @throws org.jomc.ObjectManagementException if getting the message instance fails.
463     */
464    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
465                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
466    private String getClasspathElementMessage( final java.util.Locale locale, final java.lang.String classpathElement )
467    {
468        final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathElement", locale, classpathElement );
469        assert _m != null : "'classpathElement' message not found.";
470        return _m;
471    }
472 
473    /**
474     * Gets the text of the {@code defaultLogLevelInfo} message.
475     * <p><b>Templates</b><br/><table>
476     * <tr><td valign="top">English:</td><td valign="top"><pre>Default log level: ''{0}''</pre></td></tr>
477     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Standard-Protokollierungsstufe: ''{0}''</pre></td></tr>
478     * </table></p>
479     * @param locale The locale of the message to return.
480     * @param defaultLogLevel Format argument.
481     * @return The text of the {@code defaultLogLevelInfo} message.
482     *
483     * @throws org.jomc.ObjectManagementException if getting the message instance fails.
484     */
485    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
486                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
487    private String getDefaultLogLevelInfoMessage( final java.util.Locale locale, final java.lang.String defaultLogLevel )
488    {
489        final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "defaultLogLevelInfo", locale, defaultLogLevel );
490        assert _m != null : "'defaultLogLevelInfo' message not found.";
491        return _m;
492    }
493 
494    /**
495     * Gets the text of the {@code documentFile} message.
496     * <p><b>Templates</b><br/><table>
497     * <tr><td valign="top">English:</td><td valign="top"><pre>Document file: ''{0}''</pre></td></tr>
498     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dokument-Datei: ''{0}''</pre></td></tr>
499     * </table></p>
500     * @param locale The locale of the message to return.
501     * @param documentFile Format argument.
502     * @return The text of the {@code documentFile} message.
503     *
504     * @throws org.jomc.ObjectManagementException if getting the message instance fails.
505     */
506    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
507                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
508    private String getDocumentFileMessage( final java.util.Locale locale, final java.lang.String documentFile )
509    {
510        final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentFile", locale, documentFile );
511        assert _m != null : "'documentFile' message not found.";
512        return _m;
513    }
514 
515    /**
516     * Gets the text of the {@code invalidModel} message.
517     * <p><b>Templates</b><br/><table>
518     * <tr><td valign="top">English:</td><td valign="top"><pre>Invalid model.</pre></td></tr>
519     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ung&uuml;ltiges Modell.</pre></td></tr>
520     * </table></p>
521     * @param locale The locale of the message to return.
522     * @return The text of the {@code invalidModel} message.
523     *
524     * @throws org.jomc.ObjectManagementException if getting the message instance fails.
525     */
526    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
527                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
528    private String getInvalidModelMessage( final java.util.Locale locale )
529    {
530        final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "invalidModel", locale );
531        assert _m != null : "'invalidModel' message not found.";
532        return _m;
533    }
534 
535    /**
536     * Gets the text of the {@code longDescription} message.
537     * <p><b>Templates</b><br/><table>
538     * <tr><td valign="top">English:</td><td valign="top"><pre>Example:
539     *   jomc validate-modules -cp &lt;classpath&gt; \
540     *                         -df examples/xml/jomc-cli.xml \
541     *                         -v</pre></td></tr>
542     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Beispiel:
543     *   jomc validate-modules -cp &lt;classpath&gt; \
544     *                         -df examples/xml/jomc-cli.xml \
545     *                         -v</pre></td></tr>
546     * </table></p>
547     * @param locale The locale of the message to return.
548     * @return The text of the {@code longDescription} message.
549     *
550     * @throws org.jomc.ObjectManagementException if getting the message instance fails.
551     */
552    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
553                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
554    private String getLongDescriptionMessage( final java.util.Locale locale )
555    {
556        final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "longDescription", locale );
557        assert _m != null : "'longDescription' message not found.";
558        return _m;
559    }
560 
561    /**
562     * Gets the text of the {@code missingModule} message.
563     * <p><b>Templates</b><br/><table>
564     * <tr><td valign="top">English:</td><td valign="top"><pre>Module ''{0}'' not found.</pre></td></tr>
565     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Modul ''{0}'' nicht gefunden.</pre></td></tr>
566     * </table></p>
567     * @param locale The locale of the message to return.
568     * @param moduleName Format argument.
569     * @return The text of the {@code missingModule} message.
570     *
571     * @throws org.jomc.ObjectManagementException if getting the message instance fails.
572     */
573    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
574                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
575    private String getMissingModuleMessage( final java.util.Locale locale, final java.lang.String moduleName )
576    {
577        final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "missingModule", locale, moduleName );
578        assert _m != null : "'missingModule' message not found.";
579        return _m;
580    }
581 
582    /**
583     * Gets the text of the {@code modulesReport} message.
584     * <p><b>Templates</b><br/><table>
585     * <tr><td valign="top">English:</td><td valign="top"><pre>Modules</pre></td></tr>
586     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Module</pre></td></tr>
587     * </table></p>
588     * @param locale The locale of the message to return.
589     * @return The text of the {@code modulesReport} message.
590     *
591     * @throws org.jomc.ObjectManagementException if getting the message instance fails.
592     */
593    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
594                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
595    private String getModulesReportMessage( final java.util.Locale locale )
596    {
597        final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "modulesReport", locale );
598        assert _m != null : "'modulesReport' message not found.";
599        return _m;
600    }
601 
602    /**
603     * Gets the text of the {@code separator} message.
604     * <p><b>Templates</b><br/><table>
605     * <tr><td valign="top">English:</td><td valign="top"><pre>--------------------------------------------------------------------------------</pre></td></tr>
606     * </table></p>
607     * @param locale The locale of the message to return.
608     * @return The text of the {@code separator} message.
609     *
610     * @throws org.jomc.ObjectManagementException if getting the message instance fails.
611     */
612    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
613                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
614    private String getSeparatorMessage( final java.util.Locale locale )
615    {
616        final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "separator", locale );
617        assert _m != null : "'separator' message not found.";
618        return _m;
619    }
620 
621    /**
622     * Gets the text of the {@code shortDescription} message.
623     * <p><b>Templates</b><br/><table>
624     * <tr><td valign="top">English:</td><td valign="top"><pre>Validates modules.</pre></td></tr>
625     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Pr&uuml;ft Module.</pre></td></tr>
626     * </table></p>
627     * @param locale The locale of the message to return.
628     * @return The text of the {@code shortDescription} message.
629     *
630     * @throws org.jomc.ObjectManagementException if getting the message instance fails.
631     */
632    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
633                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
634    private String getShortDescriptionMessage( final java.util.Locale locale )
635    {
636        final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "shortDescription", locale );
637        assert _m != null : "'shortDescription' message not found.";
638        return _m;
639    }
640 
641    /**
642     * Gets the text of the {@code startingModuleProcessing} message.
643     * <p><b>Templates</b><br/><table>
644     * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} with module ''{1}'' ...</pre></td></tr>
645     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>F&uuml;hrt Befehl {0} mit Modul ''{1}'' aus ... </pre></td></tr>
646     * </table></p>
647     * @param locale The locale of the message to return.
648     * @param toolName Format argument.
649     * @param moduleName Format argument.
650     * @return The text of the {@code startingModuleProcessing} message.
651     *
652     * @throws org.jomc.ObjectManagementException if getting the message instance fails.
653     */
654    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
655                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
656    private String getStartingModuleProcessingMessage( final java.util.Locale locale, final java.lang.String toolName, final java.lang.String moduleName )
657    {
658        final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "startingModuleProcessing", locale, toolName, moduleName );
659        assert _m != null : "'startingModuleProcessing' message not found.";
660        return _m;
661    }
662 
663    /**
664     * Gets the text of the {@code startingProcessing} message.
665     * <p><b>Templates</b><br/><table>
666     * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} ...</pre></td></tr>
667     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>F&uuml;hrt Befehl {0} aus ... </pre></td></tr>
668     * </table></p>
669     * @param locale The locale of the message to return.
670     * @param toolName Format argument.
671     * @return The text of the {@code startingProcessing} message.
672     *
673     * @throws org.jomc.ObjectManagementException if getting the message instance fails.
674     */
675    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
676                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
677    private String getStartingProcessingMessage( final java.util.Locale locale, final java.lang.String toolName )
678    {
679        final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "startingProcessing", locale, toolName );
680        assert _m != null : "'startingProcessing' message not found.";
681        return _m;
682    }
683 
684    /**
685     * Gets the text of the {@code toolFailure} message.
686     * <p><b>Templates</b><br/><table>
687     * <tr><td valign="top">English:</td><td valign="top"><pre>{0} failure.</pre></td></tr>
688     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} fehlgeschlagen.</pre></td></tr>
689     * </table></p>
690     * @param locale The locale of the message to return.
691     * @param toolName Format argument.
692     * @return The text of the {@code toolFailure} message.
693     *
694     * @throws org.jomc.ObjectManagementException if getting the message instance fails.
695     */
696    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
697                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
698    private String getToolFailureMessage( final java.util.Locale locale, final java.lang.String toolName )
699    {
700        final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "toolFailure", locale, toolName );
701        assert _m != null : "'toolFailure' message not found.";
702        return _m;
703    }
704 
705    /**
706     * Gets the text of the {@code toolSuccess} message.
707     * <p><b>Templates</b><br/><table>
708     * <tr><td valign="top">English:</td><td valign="top"><pre>{0} successful.</pre></td></tr>
709     * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} erfolgreich.</pre></td></tr>
710     * </table></p>
711     * @param locale The locale of the message to return.
712     * @param toolName Format argument.
713     * @return The text of the {@code toolSuccess} message.
714     *
715     * @throws org.jomc.ObjectManagementException if getting the message instance fails.
716     */
717    @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
718                                 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools" )
719    private String getToolSuccessMessage( final java.util.Locale locale, final java.lang.String toolName )
720    {
721        final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "toolSuccess", locale, toolName );
722        assert _m != null : "'toolSuccess' message not found.";
723        return _m;
724    }
725    // </editor-fold>
726    // SECTION-END
727}

[all classes][org.jomc.cli.commands]
EMMA 2.0.5312 (C) Vladimir Roubtsov