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