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