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 1346 2010-01-19 12:16:43Z schulte2005 $ |
33 | * |
34 | */ |
35 | // </editor-fold> |
36 | // SECTION-END |
37 | package org.jomc.cli.commands; |
38 | |
39 | import java.util.logging.Level; |
40 | import org.apache.commons.cli.CommandLine; |
41 | import org.apache.commons.cli.Options; |
42 | import org.jomc.model.ModelContext; |
43 | import 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 #getClasspathOptionLongName classpathOptionLongName}" |
58 | * <blockquote>Property of type {@code java.lang.String}. |
59 | * <p>Long name of the 'classpath' option.</p> |
60 | * </blockquote></li> |
61 | * <li>"{@link #getClasspathOptionShortName classpathOptionShortName}" |
62 | * <blockquote>Property of type {@code java.lang.String}. |
63 | * <p>Name of the 'classpath' option.</p> |
64 | * </blockquote></li> |
65 | * <li>"{@link #getCommandName commandName}" |
66 | * <blockquote>Property of type {@code java.lang.String}. |
67 | * <p>Name of the command.</p> |
68 | * </blockquote></li> |
69 | * <li>"{@link #getDocumentsOptionLongName documentsOptionLongName}" |
70 | * <blockquote>Property of type {@code java.lang.String}. |
71 | * <p>Long name of the 'documents' option.</p> |
72 | * </blockquote></li> |
73 | * <li>"{@link #getDocumentsOptionShortName documentsOptionShortName}" |
74 | * <blockquote>Property of type {@code java.lang.String}. |
75 | * <p>Name of the 'documents' option.</p> |
76 | * </blockquote></li> |
77 | * <li>"{@link #getModuleLocationOptionLongName moduleLocationOptionLongName}" |
78 | * <blockquote>Property of type {@code java.lang.String}. |
79 | * <p>Long name of the 'module-location' option.</p> |
80 | * </blockquote></li> |
81 | * <li>"{@link #getModuleLocationOptionShortName moduleLocationOptionShortName}" |
82 | * <blockquote>Property of type {@code java.lang.String}. |
83 | * <p>Name of the 'module-location' option.</p> |
84 | * </blockquote></li> |
85 | * <li>"{@link #getModuleNameOptionLongName moduleNameOptionLongName}" |
86 | * <blockquote>Property of type {@code java.lang.String}. |
87 | * <p>Long name of the 'module' option.</p> |
88 | * </blockquote></li> |
89 | * <li>"{@link #getModuleNameOptionShortName moduleNameOptionShortName}" |
90 | * <blockquote>Property of type {@code java.lang.String}. |
91 | * <p>Name of the 'module' option.</p> |
92 | * </blockquote></li> |
93 | * <li>"{@link #getNoClasspathResolutionOptionLongName noClasspathResolutionOptionLongName}" |
94 | * <blockquote>Property of type {@code java.lang.String}. |
95 | * <p>Long name of the 'no-classpath-resolution' option.</p> |
96 | * </blockquote></li> |
97 | * <li>"{@link #getNoClasspathResolutionOptionShortName noClasspathResolutionOptionShortName}" |
98 | * <blockquote>Property of type {@code java.lang.String}. |
99 | * <p>Name of the 'no-classpath-resolution' option.</p> |
100 | * </blockquote></li> |
101 | * </ul></p> |
102 | * <p><b>Dependencies</b><ul> |
103 | * <li>"{@link #getLocale Locale}"<blockquote> |
104 | * Dependency on {@code java.util.Locale} at specification level 1.1 bound to an instance.</blockquote></li> |
105 | * </ul></p> |
106 | * <p><b>Messages</b><ul> |
107 | * <li>"{@link #getApplicationTitleMessage applicationTitle}"<table> |
108 | * <tr><td valign="top">English:</td><td valign="top"><pre>JOMC Version 1.0-alpha-15 Build 2010-01-19T12:08:03+0000</pre></td></tr> |
109 | * </table> |
110 | * <li>"{@link #getCannotProcessMessage cannotProcess}"<table> |
111 | * <tr><td valign="top">English:</td><td valign="top"><pre>Cannot process ''{0}'': {1}</pre></td></tr> |
112 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kann ''{0}'' nicht verarbeiten: {1}</pre></td></tr> |
113 | * </table> |
114 | * <li>"{@link #getClasspathElementMessage classpathElement}"<table> |
115 | * <tr><td valign="top">English:</td><td valign="top"><pre>Classpath element: ''{0}''</pre></td></tr> |
116 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Klassenpfad-Element: ''{0}''</pre></td></tr> |
117 | * </table> |
118 | * <li>"{@link #getClasspathOptionMessage classpathOption}"<table> |
119 | * <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> |
120 | * <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> |
121 | * </table> |
122 | * <li>"{@link #getClasspathOptionArgNameMessage classpathOptionArgName}"<table> |
123 | * <tr><td valign="top">English:</td><td valign="top"><pre>elements</pre></td></tr> |
124 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Elemente</pre></td></tr> |
125 | * </table> |
126 | * <li>"{@link #getDefaultLogLevelInfoMessage defaultLogLevelInfo}"<table> |
127 | * <tr><td valign="top">English:</td><td valign="top"><pre>Default log level: ''{0}''</pre></td></tr> |
128 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Standard-Protokollierungsstufe: ''{0}''</pre></td></tr> |
129 | * </table> |
130 | * <li>"{@link #getDocumentFileMessage documentFile}"<table> |
131 | * <tr><td valign="top">English:</td><td valign="top"><pre>Document file: ''{0}''</pre></td></tr> |
132 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dokument-Datei: ''{0}''</pre></td></tr> |
133 | * </table> |
134 | * <li>"{@link #getDocumentsOptionMessage documentsOption}"<table> |
135 | * <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> |
136 | * <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> |
137 | * </table> |
138 | * <li>"{@link #getDocumentsOptionArgNameMessage documentsOptionArgName}"<table> |
139 | * <tr><td valign="top">English:</td><td valign="top"><pre>files</pre></td></tr> |
140 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dateien</pre></td></tr> |
141 | * </table> |
142 | * <li>"{@link #getInvalidModelMessage invalidModel}"<table> |
143 | * <tr><td valign="top">English:</td><td valign="top"><pre>Invalid model.</pre></td></tr> |
144 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ungültiges Modell.</pre></td></tr> |
145 | * </table> |
146 | * <li>"{@link #getLongDescriptionMessage longDescription}"<table> |
147 | * <tr><td valign="top">English:</td><td valign="top"><pre>Example: |
148 | * jomc validate-modules -df examples/xml/jomc-cli.xml -v</pre></td></tr> |
149 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Beispiel: |
150 | * jomc validate-modules -df examples/xml/jomc-cli.xml -v</pre></td></tr> |
151 | * </table> |
152 | * <li>"{@link #getMissingModuleMessage missingModule}"<table> |
153 | * <tr><td valign="top">English:</td><td valign="top"><pre>Module ''{0}'' not found.</pre></td></tr> |
154 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Modul ''{0}'' nicht gefunden.</pre></td></tr> |
155 | * </table> |
156 | * <li>"{@link #getModuleLocationOptionMessage moduleLocationOption}"<table> |
157 | * <tr><td valign="top">English:</td><td valign="top"><pre>Location of classpath modules.</pre></td></tr> |
158 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ort der Klassenpfad-Module.</pre></td></tr> |
159 | * </table> |
160 | * <li>"{@link #getModuleLocationOptionArgNameMessage moduleLocationOptionArgName}"<table> |
161 | * <tr><td valign="top">English:</td><td valign="top"><pre>location</pre></td></tr> |
162 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ort</pre></td></tr> |
163 | * </table> |
164 | * <li>"{@link #getModuleNameOptionMessage moduleNameOption}"<table> |
165 | * <tr><td valign="top">English:</td><td valign="top"><pre>Name of the module to process.</pre></td></tr> |
166 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Name des zu verarbeitenden Moduls.</pre></td></tr> |
167 | * </table> |
168 | * <li>"{@link #getModuleNameOptionArgNameMessage moduleNameOptionArgName}"<table> |
169 | * <tr><td valign="top">English:</td><td valign="top"><pre>name</pre></td></tr> |
170 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Name</pre></td></tr> |
171 | * </table> |
172 | * <li>"{@link #getModulesReportMessage modulesReport}"<table> |
173 | * <tr><td valign="top">English:</td><td valign="top"><pre>Modules</pre></td></tr> |
174 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Module</pre></td></tr> |
175 | * </table> |
176 | * <li>"{@link #getNoClasspathResolutionOptionMessage noClasspathResolutionOption}"<table> |
177 | * <tr><td valign="top">English:</td><td valign="top"><pre>Do not perform classpath resolution.</pre></td></tr> |
178 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Keine Klassenpfad-Auflösung durchführen.</pre></td></tr> |
179 | * </table> |
180 | * <li>"{@link #getSeparatorMessage separator}"<table> |
181 | * <tr><td valign="top">English:</td><td valign="top"><pre>--------------------------------------------------------------------------------</pre></td></tr> |
182 | * </table> |
183 | * <li>"{@link #getShortDescriptionMessage shortDescription}"<table> |
184 | * <tr><td valign="top">English:</td><td valign="top"><pre>Validates modules.</pre></td></tr> |
185 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Prüft Module.</pre></td></tr> |
186 | * </table> |
187 | * <li>"{@link #getStartingModuleProcessingMessage startingModuleProcessing}"<table> |
188 | * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} with module ''{1}'' ...</pre></td></tr> |
189 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Führt Befehl {0} mit Modul ''{1}'' aus ... </pre></td></tr> |
190 | * </table> |
191 | * <li>"{@link #getStartingProcessingMessage startingProcessing}"<table> |
192 | * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} ...</pre></td></tr> |
193 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Führt Befehl {0} aus ... </pre></td></tr> |
194 | * </table> |
195 | * <li>"{@link #getToolFailureMessage toolFailure}"<table> |
196 | * <tr><td valign="top">English:</td><td valign="top"><pre>{0} failure.</pre></td></tr> |
197 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} fehlgeschlagen.</pre></td></tr> |
198 | * </table> |
199 | * <li>"{@link #getToolSuccessMessage toolSuccess}"<table> |
200 | * <tr><td valign="top">English:</td><td valign="top"><pre>{0} successful.</pre></td></tr> |
201 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} erfolgreich.</pre></td></tr> |
202 | * </table> |
203 | * </ul></p> |
204 | * |
205 | * @author <a href="mailto:cs@jomc.org">Christian Schulte</a> 1.0 |
206 | * @version $Id: ValidateModulesCommand.java 1346 2010-01-19 12:16:43Z schulte2005 $ |
207 | */ |
208 | // </editor-fold> |
209 | // SECTION-END |
210 | // SECTION-START[Annotations] |
211 | // <editor-fold defaultstate="collapsed" desc=" Generated Annotations "> |
212 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
213 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
214 | // </editor-fold> |
215 | // SECTION-END |
216 | public class ValidateModulesCommand extends AbstractJomcCommand |
217 | { |
218 | // SECTION-START[Command] |
219 | |
220 | /** Options of the instance. */ |
221 | private Options options; |
222 | |
223 | @Override |
224 | public Options getOptions() |
225 | { |
226 | if ( this.options == null ) |
227 | { |
228 | this.options = super.getOptions(); |
229 | } |
230 | |
231 | return this.options; |
232 | } |
233 | |
234 | @Override |
235 | public int executeCommand( final CommandLine commandLine ) throws Exception |
236 | { |
237 | if ( this.isLoggable( Level.INFO ) ) |
238 | { |
239 | this.log( Level.INFO, this.getStartingProcessingMessage( this.getLocale(), this.getCommandName() ), null ); |
240 | } |
241 | |
242 | final ClassLoader classLoader = this.getClassLoader( commandLine ); |
243 | final ModelContext context = this.getModelContext( classLoader ); |
244 | final ModelValidationReport validationReport = context.validateModel( this.getModules( commandLine ) ); |
245 | this.log( validationReport, context.createMarshaller() ); |
246 | return validationReport.isModelValid() ? STATUS_SUCCESS : STATUS_FAILURE; |
247 | } |
248 | |
249 | // SECTION-END |
250 | // SECTION-START[ValidateModulesCommand] |
251 | // SECTION-END |
252 | // SECTION-START[Constructors] |
253 | // <editor-fold defaultstate="collapsed" desc=" Generated Constructors "> |
254 | |
255 | /** Creates a new {@code ValidateModulesCommand} instance. */ |
256 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
257 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
258 | public ValidateModulesCommand() |
259 | { |
260 | // SECTION-START[Default Constructor] |
261 | super(); |
262 | // SECTION-END |
263 | } |
264 | // </editor-fold> |
265 | // SECTION-END |
266 | // SECTION-START[Dependencies] |
267 | // <editor-fold defaultstate="collapsed" desc=" Generated Dependencies "> |
268 | |
269 | /** |
270 | * Gets the {@code Locale} dependency. |
271 | * <p>This method returns the "{@code default}" object of the {@code java.util.Locale} specification at specification level 1.1.</p> |
272 | * <p>That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance.</p> |
273 | * @return The {@code Locale} dependency. |
274 | * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. |
275 | */ |
276 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
277 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
278 | private java.util.Locale getLocale() |
279 | { |
280 | final java.util.Locale _d = (java.util.Locale) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Locale" ); |
281 | assert _d != null : "'Locale' dependency not found."; |
282 | return _d; |
283 | } |
284 | // </editor-fold> |
285 | // SECTION-END |
286 | // SECTION-START[Properties] |
287 | // <editor-fold defaultstate="collapsed" desc=" Generated Properties "> |
288 | |
289 | /** |
290 | * Gets the value of the {@code abbreviatedCommandName} property. |
291 | * @return Abbreviated name of the command. |
292 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
293 | */ |
294 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
295 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
296 | private java.lang.String getAbbreviatedCommandName() |
297 | { |
298 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "abbreviatedCommandName" ); |
299 | assert _p != null : "'abbreviatedCommandName' property not found."; |
300 | return _p; |
301 | } |
302 | |
303 | /** |
304 | * Gets the value of the {@code classpathOptionLongName} property. |
305 | * @return Long name of the 'classpath' option. |
306 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
307 | */ |
308 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
309 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
310 | private java.lang.String getClasspathOptionLongName() |
311 | { |
312 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "classpathOptionLongName" ); |
313 | assert _p != null : "'classpathOptionLongName' property not found."; |
314 | return _p; |
315 | } |
316 | |
317 | /** |
318 | * Gets the value of the {@code classpathOptionShortName} property. |
319 | * @return Name of the 'classpath' option. |
320 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
321 | */ |
322 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
323 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
324 | private java.lang.String getClasspathOptionShortName() |
325 | { |
326 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "classpathOptionShortName" ); |
327 | assert _p != null : "'classpathOptionShortName' property not found."; |
328 | return _p; |
329 | } |
330 | |
331 | /** |
332 | * Gets the value of the {@code commandName} property. |
333 | * @return Name of the command. |
334 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
335 | */ |
336 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
337 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
338 | private java.lang.String getCommandName() |
339 | { |
340 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "commandName" ); |
341 | assert _p != null : "'commandName' property not found."; |
342 | return _p; |
343 | } |
344 | |
345 | /** |
346 | * Gets the value of the {@code documentsOptionLongName} property. |
347 | * @return Long name of the 'documents' option. |
348 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
349 | */ |
350 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
351 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
352 | private java.lang.String getDocumentsOptionLongName() |
353 | { |
354 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "documentsOptionLongName" ); |
355 | assert _p != null : "'documentsOptionLongName' property not found."; |
356 | return _p; |
357 | } |
358 | |
359 | /** |
360 | * Gets the value of the {@code documentsOptionShortName} property. |
361 | * @return Name of the 'documents' option. |
362 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
363 | */ |
364 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
365 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
366 | private java.lang.String getDocumentsOptionShortName() |
367 | { |
368 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "documentsOptionShortName" ); |
369 | assert _p != null : "'documentsOptionShortName' property not found."; |
370 | return _p; |
371 | } |
372 | |
373 | /** |
374 | * Gets the value of the {@code moduleLocationOptionLongName} property. |
375 | * @return Long name of the 'module-location' option. |
376 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
377 | */ |
378 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
379 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
380 | private java.lang.String getModuleLocationOptionLongName() |
381 | { |
382 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "moduleLocationOptionLongName" ); |
383 | assert _p != null : "'moduleLocationOptionLongName' property not found."; |
384 | return _p; |
385 | } |
386 | |
387 | /** |
388 | * Gets the value of the {@code moduleLocationOptionShortName} property. |
389 | * @return Name of the 'module-location' option. |
390 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
391 | */ |
392 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
393 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
394 | private java.lang.String getModuleLocationOptionShortName() |
395 | { |
396 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "moduleLocationOptionShortName" ); |
397 | assert _p != null : "'moduleLocationOptionShortName' property not found."; |
398 | return _p; |
399 | } |
400 | |
401 | /** |
402 | * Gets the value of the {@code moduleNameOptionLongName} property. |
403 | * @return Long name of the 'module' option. |
404 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
405 | */ |
406 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
407 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
408 | private java.lang.String getModuleNameOptionLongName() |
409 | { |
410 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "moduleNameOptionLongName" ); |
411 | assert _p != null : "'moduleNameOptionLongName' property not found."; |
412 | return _p; |
413 | } |
414 | |
415 | /** |
416 | * Gets the value of the {@code moduleNameOptionShortName} property. |
417 | * @return Name of the 'module' option. |
418 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
419 | */ |
420 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
421 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
422 | private java.lang.String getModuleNameOptionShortName() |
423 | { |
424 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "moduleNameOptionShortName" ); |
425 | assert _p != null : "'moduleNameOptionShortName' property not found."; |
426 | return _p; |
427 | } |
428 | |
429 | /** |
430 | * Gets the value of the {@code noClasspathResolutionOptionLongName} property. |
431 | * @return Long name of the 'no-classpath-resolution' option. |
432 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
433 | */ |
434 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
435 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
436 | private java.lang.String getNoClasspathResolutionOptionLongName() |
437 | { |
438 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "noClasspathResolutionOptionLongName" ); |
439 | assert _p != null : "'noClasspathResolutionOptionLongName' property not found."; |
440 | return _p; |
441 | } |
442 | |
443 | /** |
444 | * Gets the value of the {@code noClasspathResolutionOptionShortName} property. |
445 | * @return Name of the 'no-classpath-resolution' option. |
446 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
447 | */ |
448 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
449 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
450 | private java.lang.String getNoClasspathResolutionOptionShortName() |
451 | { |
452 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "noClasspathResolutionOptionShortName" ); |
453 | assert _p != null : "'noClasspathResolutionOptionShortName' property not found."; |
454 | return _p; |
455 | } |
456 | // </editor-fold> |
457 | // SECTION-END |
458 | // SECTION-START[Messages] |
459 | // <editor-fold defaultstate="collapsed" desc=" Generated Messages "> |
460 | |
461 | /** |
462 | * Gets the text of the {@code applicationTitle} message. |
463 | * <p><b>Templates</b><br/><table> |
464 | * <tr><td valign="top">English:</td><td valign="top"><pre>JOMC Version 1.0-alpha-15 Build 2010-01-19T12:08:03+0000</pre></td></tr> |
465 | * </table></p> |
466 | * @param locale The locale of the message to return. |
467 | * @return The text of the {@code applicationTitle} message. |
468 | * |
469 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
470 | */ |
471 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
472 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
473 | private String getApplicationTitleMessage( final java.util.Locale locale ) |
474 | { |
475 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "applicationTitle", locale ); |
476 | assert _m != null : "'applicationTitle' message not found."; |
477 | return _m; |
478 | } |
479 | |
480 | /** |
481 | * Gets the text of the {@code cannotProcess} message. |
482 | * <p><b>Templates</b><br/><table> |
483 | * <tr><td valign="top">English:</td><td valign="top"><pre>Cannot process ''{0}'': {1}</pre></td></tr> |
484 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kann ''{0}'' nicht verarbeiten: {1}</pre></td></tr> |
485 | * </table></p> |
486 | * @param locale The locale of the message to return. |
487 | * @param itemInfo Format argument. |
488 | * @param detailMessage Format argument. |
489 | * @return The text of the {@code cannotProcess} message. |
490 | * |
491 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
492 | */ |
493 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
494 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
495 | private String getCannotProcessMessage( final java.util.Locale locale, final java.lang.String itemInfo, final java.lang.String detailMessage ) |
496 | { |
497 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "cannotProcess", locale, itemInfo, detailMessage ); |
498 | assert _m != null : "'cannotProcess' message not found."; |
499 | return _m; |
500 | } |
501 | |
502 | /** |
503 | * Gets the text of the {@code classpathElement} message. |
504 | * <p><b>Templates</b><br/><table> |
505 | * <tr><td valign="top">English:</td><td valign="top"><pre>Classpath element: ''{0}''</pre></td></tr> |
506 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Klassenpfad-Element: ''{0}''</pre></td></tr> |
507 | * </table></p> |
508 | * @param locale The locale of the message to return. |
509 | * @param classpathElement Format argument. |
510 | * @return The text of the {@code classpathElement} message. |
511 | * |
512 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
513 | */ |
514 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
515 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
516 | private String getClasspathElementMessage( final java.util.Locale locale, final java.lang.String classpathElement ) |
517 | { |
518 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathElement", locale, classpathElement ); |
519 | assert _m != null : "'classpathElement' message not found."; |
520 | return _m; |
521 | } |
522 | |
523 | /** |
524 | * Gets the text of the {@code classpathOption} message. |
525 | * <p><b>Templates</b><br/><table> |
526 | * <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> |
527 | * <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> |
528 | * </table></p> |
529 | * @param locale The locale of the message to return. |
530 | * @param pathSeparator Format argument. |
531 | * @return The text of the {@code classpathOption} message. |
532 | * |
533 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
534 | */ |
535 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
536 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
537 | private String getClasspathOptionMessage( final java.util.Locale locale, final java.lang.String pathSeparator ) |
538 | { |
539 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathOption", locale, pathSeparator ); |
540 | assert _m != null : "'classpathOption' message not found."; |
541 | return _m; |
542 | } |
543 | |
544 | /** |
545 | * Gets the text of the {@code classpathOptionArgName} message. |
546 | * <p><b>Templates</b><br/><table> |
547 | * <tr><td valign="top">English:</td><td valign="top"><pre>elements</pre></td></tr> |
548 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Elemente</pre></td></tr> |
549 | * </table></p> |
550 | * @param locale The locale of the message to return. |
551 | * @return The text of the {@code classpathOptionArgName} message. |
552 | * |
553 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
554 | */ |
555 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
556 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
557 | private String getClasspathOptionArgNameMessage( final java.util.Locale locale ) |
558 | { |
559 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathOptionArgName", locale ); |
560 | assert _m != null : "'classpathOptionArgName' message not found."; |
561 | return _m; |
562 | } |
563 | |
564 | /** |
565 | * Gets the text of the {@code defaultLogLevelInfo} message. |
566 | * <p><b>Templates</b><br/><table> |
567 | * <tr><td valign="top">English:</td><td valign="top"><pre>Default log level: ''{0}''</pre></td></tr> |
568 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Standard-Protokollierungsstufe: ''{0}''</pre></td></tr> |
569 | * </table></p> |
570 | * @param locale The locale of the message to return. |
571 | * @param defaultLogLevel Format argument. |
572 | * @return The text of the {@code defaultLogLevelInfo} message. |
573 | * |
574 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
575 | */ |
576 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
577 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
578 | private String getDefaultLogLevelInfoMessage( final java.util.Locale locale, final java.lang.String defaultLogLevel ) |
579 | { |
580 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "defaultLogLevelInfo", locale, defaultLogLevel ); |
581 | assert _m != null : "'defaultLogLevelInfo' message not found."; |
582 | return _m; |
583 | } |
584 | |
585 | /** |
586 | * Gets the text of the {@code documentFile} message. |
587 | * <p><b>Templates</b><br/><table> |
588 | * <tr><td valign="top">English:</td><td valign="top"><pre>Document file: ''{0}''</pre></td></tr> |
589 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dokument-Datei: ''{0}''</pre></td></tr> |
590 | * </table></p> |
591 | * @param locale The locale of the message to return. |
592 | * @param documentFile Format argument. |
593 | * @return The text of the {@code documentFile} message. |
594 | * |
595 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
596 | */ |
597 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
598 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
599 | private String getDocumentFileMessage( final java.util.Locale locale, final java.lang.String documentFile ) |
600 | { |
601 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentFile", locale, documentFile ); |
602 | assert _m != null : "'documentFile' message not found."; |
603 | return _m; |
604 | } |
605 | |
606 | /** |
607 | * Gets the text of the {@code documentsOption} message. |
608 | * <p><b>Templates</b><br/><table> |
609 | * <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> |
610 | * <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> |
611 | * </table></p> |
612 | * @param locale The locale of the message to return. |
613 | * @param pathSeparator Format argument. |
614 | * @return The text of the {@code documentsOption} message. |
615 | * |
616 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
617 | */ |
618 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
619 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
620 | private String getDocumentsOptionMessage( final java.util.Locale locale, final java.lang.String pathSeparator ) |
621 | { |
622 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentsOption", locale, pathSeparator ); |
623 | assert _m != null : "'documentsOption' message not found."; |
624 | return _m; |
625 | } |
626 | |
627 | /** |
628 | * Gets the text of the {@code documentsOptionArgName} message. |
629 | * <p><b>Templates</b><br/><table> |
630 | * <tr><td valign="top">English:</td><td valign="top"><pre>files</pre></td></tr> |
631 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dateien</pre></td></tr> |
632 | * </table></p> |
633 | * @param locale The locale of the message to return. |
634 | * @return The text of the {@code documentsOptionArgName} message. |
635 | * |
636 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
637 | */ |
638 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
639 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
640 | private String getDocumentsOptionArgNameMessage( final java.util.Locale locale ) |
641 | { |
642 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentsOptionArgName", locale ); |
643 | assert _m != null : "'documentsOptionArgName' message not found."; |
644 | return _m; |
645 | } |
646 | |
647 | /** |
648 | * Gets the text of the {@code invalidModel} message. |
649 | * <p><b>Templates</b><br/><table> |
650 | * <tr><td valign="top">English:</td><td valign="top"><pre>Invalid model.</pre></td></tr> |
651 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ungültiges Modell.</pre></td></tr> |
652 | * </table></p> |
653 | * @param locale The locale of the message to return. |
654 | * @return The text of the {@code invalidModel} message. |
655 | * |
656 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
657 | */ |
658 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
659 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
660 | private String getInvalidModelMessage( final java.util.Locale locale ) |
661 | { |
662 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "invalidModel", locale ); |
663 | assert _m != null : "'invalidModel' message not found."; |
664 | return _m; |
665 | } |
666 | |
667 | /** |
668 | * Gets the text of the {@code longDescription} message. |
669 | * <p><b>Templates</b><br/><table> |
670 | * <tr><td valign="top">English:</td><td valign="top"><pre>Example: |
671 | * jomc validate-modules -df examples/xml/jomc-cli.xml -v</pre></td></tr> |
672 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Beispiel: |
673 | * jomc validate-modules -df examples/xml/jomc-cli.xml -v</pre></td></tr> |
674 | * </table></p> |
675 | * @param locale The locale of the message to return. |
676 | * @return The text of the {@code longDescription} message. |
677 | * |
678 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
679 | */ |
680 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
681 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
682 | private String getLongDescriptionMessage( final java.util.Locale locale ) |
683 | { |
684 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "longDescription", locale ); |
685 | assert _m != null : "'longDescription' message not found."; |
686 | return _m; |
687 | } |
688 | |
689 | /** |
690 | * Gets the text of the {@code missingModule} message. |
691 | * <p><b>Templates</b><br/><table> |
692 | * <tr><td valign="top">English:</td><td valign="top"><pre>Module ''{0}'' not found.</pre></td></tr> |
693 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Modul ''{0}'' nicht gefunden.</pre></td></tr> |
694 | * </table></p> |
695 | * @param locale The locale of the message to return. |
696 | * @param moduleName Format argument. |
697 | * @return The text of the {@code missingModule} message. |
698 | * |
699 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
700 | */ |
701 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
702 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
703 | private String getMissingModuleMessage( final java.util.Locale locale, final java.lang.String moduleName ) |
704 | { |
705 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "missingModule", locale, moduleName ); |
706 | assert _m != null : "'missingModule' message not found."; |
707 | return _m; |
708 | } |
709 | |
710 | /** |
711 | * Gets the text of the {@code moduleLocationOption} message. |
712 | * <p><b>Templates</b><br/><table> |
713 | * <tr><td valign="top">English:</td><td valign="top"><pre>Location of classpath modules.</pre></td></tr> |
714 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ort der Klassenpfad-Module.</pre></td></tr> |
715 | * </table></p> |
716 | * @param locale The locale of the message to return. |
717 | * @return The text of the {@code moduleLocationOption} message. |
718 | * |
719 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
720 | */ |
721 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
722 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
723 | private String getModuleLocationOptionMessage( final java.util.Locale locale ) |
724 | { |
725 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "moduleLocationOption", locale ); |
726 | assert _m != null : "'moduleLocationOption' message not found."; |
727 | return _m; |
728 | } |
729 | |
730 | /** |
731 | * Gets the text of the {@code moduleLocationOptionArgName} message. |
732 | * <p><b>Templates</b><br/><table> |
733 | * <tr><td valign="top">English:</td><td valign="top"><pre>location</pre></td></tr> |
734 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ort</pre></td></tr> |
735 | * </table></p> |
736 | * @param locale The locale of the message to return. |
737 | * @return The text of the {@code moduleLocationOptionArgName} message. |
738 | * |
739 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
740 | */ |
741 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
742 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
743 | private String getModuleLocationOptionArgNameMessage( final java.util.Locale locale ) |
744 | { |
745 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "moduleLocationOptionArgName", locale ); |
746 | assert _m != null : "'moduleLocationOptionArgName' message not found."; |
747 | return _m; |
748 | } |
749 | |
750 | /** |
751 | * Gets the text of the {@code moduleNameOption} message. |
752 | * <p><b>Templates</b><br/><table> |
753 | * <tr><td valign="top">English:</td><td valign="top"><pre>Name of the module to process.</pre></td></tr> |
754 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Name des zu verarbeitenden Moduls.</pre></td></tr> |
755 | * </table></p> |
756 | * @param locale The locale of the message to return. |
757 | * @return The text of the {@code moduleNameOption} message. |
758 | * |
759 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
760 | */ |
761 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
762 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
763 | private String getModuleNameOptionMessage( final java.util.Locale locale ) |
764 | { |
765 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "moduleNameOption", locale ); |
766 | assert _m != null : "'moduleNameOption' message not found."; |
767 | return _m; |
768 | } |
769 | |
770 | /** |
771 | * Gets the text of the {@code moduleNameOptionArgName} message. |
772 | * <p><b>Templates</b><br/><table> |
773 | * <tr><td valign="top">English:</td><td valign="top"><pre>name</pre></td></tr> |
774 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Name</pre></td></tr> |
775 | * </table></p> |
776 | * @param locale The locale of the message to return. |
777 | * @return The text of the {@code moduleNameOptionArgName} message. |
778 | * |
779 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
780 | */ |
781 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
782 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
783 | private String getModuleNameOptionArgNameMessage( final java.util.Locale locale ) |
784 | { |
785 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "moduleNameOptionArgName", locale ); |
786 | assert _m != null : "'moduleNameOptionArgName' message not found."; |
787 | return _m; |
788 | } |
789 | |
790 | /** |
791 | * Gets the text of the {@code modulesReport} message. |
792 | * <p><b>Templates</b><br/><table> |
793 | * <tr><td valign="top">English:</td><td valign="top"><pre>Modules</pre></td></tr> |
794 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Module</pre></td></tr> |
795 | * </table></p> |
796 | * @param locale The locale of the message to return. |
797 | * @return The text of the {@code modulesReport} message. |
798 | * |
799 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
800 | */ |
801 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
802 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
803 | private String getModulesReportMessage( final java.util.Locale locale ) |
804 | { |
805 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "modulesReport", locale ); |
806 | assert _m != null : "'modulesReport' message not found."; |
807 | return _m; |
808 | } |
809 | |
810 | /** |
811 | * Gets the text of the {@code noClasspathResolutionOption} message. |
812 | * <p><b>Templates</b><br/><table> |
813 | * <tr><td valign="top">English:</td><td valign="top"><pre>Do not perform classpath resolution.</pre></td></tr> |
814 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Keine Klassenpfad-Auflösung durchführen.</pre></td></tr> |
815 | * </table></p> |
816 | * @param locale The locale of the message to return. |
817 | * @return The text of the {@code noClasspathResolutionOption} message. |
818 | * |
819 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
820 | */ |
821 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
822 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
823 | private String getNoClasspathResolutionOptionMessage( final java.util.Locale locale ) |
824 | { |
825 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "noClasspathResolutionOption", locale ); |
826 | assert _m != null : "'noClasspathResolutionOption' message not found."; |
827 | return _m; |
828 | } |
829 | |
830 | /** |
831 | * Gets the text of the {@code separator} message. |
832 | * <p><b>Templates</b><br/><table> |
833 | * <tr><td valign="top">English:</td><td valign="top"><pre>--------------------------------------------------------------------------------</pre></td></tr> |
834 | * </table></p> |
835 | * @param locale The locale of the message to return. |
836 | * @return The text of the {@code separator} message. |
837 | * |
838 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
839 | */ |
840 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
841 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
842 | private String getSeparatorMessage( final java.util.Locale locale ) |
843 | { |
844 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "separator", locale ); |
845 | assert _m != null : "'separator' message not found."; |
846 | return _m; |
847 | } |
848 | |
849 | /** |
850 | * Gets the text of the {@code shortDescription} message. |
851 | * <p><b>Templates</b><br/><table> |
852 | * <tr><td valign="top">English:</td><td valign="top"><pre>Validates modules.</pre></td></tr> |
853 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Prüft Module.</pre></td></tr> |
854 | * </table></p> |
855 | * @param locale The locale of the message to return. |
856 | * @return The text of the {@code shortDescription} message. |
857 | * |
858 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
859 | */ |
860 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
861 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
862 | private String getShortDescriptionMessage( final java.util.Locale locale ) |
863 | { |
864 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "shortDescription", locale ); |
865 | assert _m != null : "'shortDescription' message not found."; |
866 | return _m; |
867 | } |
868 | |
869 | /** |
870 | * Gets the text of the {@code startingModuleProcessing} message. |
871 | * <p><b>Templates</b><br/><table> |
872 | * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} with module ''{1}'' ...</pre></td></tr> |
873 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Führt Befehl {0} mit Modul ''{1}'' aus ... </pre></td></tr> |
874 | * </table></p> |
875 | * @param locale The locale of the message to return. |
876 | * @param toolName Format argument. |
877 | * @param moduleName Format argument. |
878 | * @return The text of the {@code startingModuleProcessing} message. |
879 | * |
880 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
881 | */ |
882 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
883 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
884 | private String getStartingModuleProcessingMessage( final java.util.Locale locale, final java.lang.String toolName, final java.lang.String moduleName ) |
885 | { |
886 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "startingModuleProcessing", locale, toolName, moduleName ); |
887 | assert _m != null : "'startingModuleProcessing' message not found."; |
888 | return _m; |
889 | } |
890 | |
891 | /** |
892 | * Gets the text of the {@code startingProcessing} message. |
893 | * <p><b>Templates</b><br/><table> |
894 | * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} ...</pre></td></tr> |
895 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Führt Befehl {0} aus ... </pre></td></tr> |
896 | * </table></p> |
897 | * @param locale The locale of the message to return. |
898 | * @param toolName Format argument. |
899 | * @return The text of the {@code startingProcessing} message. |
900 | * |
901 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
902 | */ |
903 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
904 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
905 | private String getStartingProcessingMessage( final java.util.Locale locale, final java.lang.String toolName ) |
906 | { |
907 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "startingProcessing", locale, toolName ); |
908 | assert _m != null : "'startingProcessing' message not found."; |
909 | return _m; |
910 | } |
911 | |
912 | /** |
913 | * Gets the text of the {@code toolFailure} message. |
914 | * <p><b>Templates</b><br/><table> |
915 | * <tr><td valign="top">English:</td><td valign="top"><pre>{0} failure.</pre></td></tr> |
916 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} fehlgeschlagen.</pre></td></tr> |
917 | * </table></p> |
918 | * @param locale The locale of the message to return. |
919 | * @param toolName Format argument. |
920 | * @return The text of the {@code toolFailure} message. |
921 | * |
922 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
923 | */ |
924 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
925 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
926 | private String getToolFailureMessage( final java.util.Locale locale, final java.lang.String toolName ) |
927 | { |
928 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "toolFailure", locale, toolName ); |
929 | assert _m != null : "'toolFailure' message not found."; |
930 | return _m; |
931 | } |
932 | |
933 | /** |
934 | * Gets the text of the {@code toolSuccess} message. |
935 | * <p><b>Templates</b><br/><table> |
936 | * <tr><td valign="top">English:</td><td valign="top"><pre>{0} successful.</pre></td></tr> |
937 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} erfolgreich.</pre></td></tr> |
938 | * </table></p> |
939 | * @param locale The locale of the message to return. |
940 | * @param toolName Format argument. |
941 | * @return The text of the {@code toolSuccess} message. |
942 | * |
943 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
944 | */ |
945 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
946 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-15/jomc-tools" ) |
947 | private String getToolSuccessMessage( final java.util.Locale locale, final java.lang.String toolName ) |
948 | { |
949 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "toolSuccess", locale, toolName ); |
950 | assert _m != null : "'toolSuccess' message not found."; |
951 | return _m; |
952 | } |
953 | // </editor-fold> |
954 | // SECTION-END |
955 | } |