001 // SECTION-START[License Header]
002 // <editor-fold defaultstate="collapsed" desc=" Generated License ">
003 /*
004 * Copyright (c) 2009 The JOMC Project
005 * Copyright (c) 2005 Christian Schulte <cs@jomc.org>
006 * All rights reserved.
007 *
008 * Redistribution and use in source and binary forms, with or without
009 * modification, are permitted provided that the following conditions
010 * are met:
011 *
012 * o Redistributions of source code must retain the above copyright
013 * notice, this list of conditions and the following disclaimer.
014 *
015 * o Redistributions in binary form must reproduce the above copyright
016 * notice, this list of conditions and the following disclaimer in
017 * the documentation and/or other materials provided with the
018 * distribution.
019 *
020 * THIS SOFTWARE IS PROVIDED BY THE JOMC PROJECT AND CONTRIBUTORS "AS IS"
021 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
022 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
023 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE JOMC PROJECT OR
024 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
025 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
026 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
027 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
028 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
029 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
030 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
031 *
032 * $Id: ManageJavaSourcesCommand.java 1102 2009-12-07 03:01:58Z schulte2005 $
033 *
034 */
035 // </editor-fold>
036 // SECTION-END
037 package org.jomc.cli.commands;
038
039 import java.io.File;
040 import java.util.logging.Level;
041 import javax.xml.bind.JAXBContext;
042 import javax.xml.bind.Marshaller;
043 import javax.xml.validation.Schema;
044 import org.apache.commons.cli.CommandLine;
045 import org.apache.commons.cli.Option;
046 import org.apache.commons.cli.Options;
047 import org.jomc.model.ModelObjectValidationReport;
048 import org.jomc.model.Module;
049 import org.jomc.model.Modules;
050 import org.jomc.model.ObjectFactory;
051 import org.jomc.tools.JavaSources;
052
053 // SECTION-START[Documentation]
054 // <editor-fold defaultstate="collapsed" desc=" Generated Documentation ">
055 /**
056 * Command line interface for the {@code JavaSources} tool.
057 * <p><b>Specifications</b><ul>
058 * <li>{@code org.jomc.cli.Command} {@code 1.0} {@code Multiton}</li>
059 * </ul></p>
060 * <p><b>Properties</b><ul>
061 * <li>"{@link #getAbbreviatedCommandName abbreviatedCommandName}"
062 * <blockquote>Property of type {@code java.lang.String}.
063 * <p>Abbreviated name of the command.</p>
064 * </blockquote></li>
065 * <li>"{@link #getClasspathOptionLongName classpathOptionLongName}"
066 * <blockquote>Property of type {@code java.lang.String}.
067 * <p>Long name of the 'classpath' option.</p>
068 * </blockquote></li>
069 * <li>"{@link #getClasspathOptionShortName classpathOptionShortName}"
070 * <blockquote>Property of type {@code java.lang.String}.
071 * <p>Name of the 'classpath' option.</p>
072 * </blockquote></li>
073 * <li>"{@link #getCommandName commandName}"
074 * <blockquote>Property of type {@code java.lang.String}.
075 * <p>Name of the command.</p>
076 * </blockquote></li>
077 * <li>"{@link #getDocumentsOptionLongName documentsOptionLongName}"
078 * <blockquote>Property of type {@code java.lang.String}.
079 * <p>Long name of the 'documents' option.</p>
080 * </blockquote></li>
081 * <li>"{@link #getDocumentsOptionShortName documentsOptionShortName}"
082 * <blockquote>Property of type {@code java.lang.String}.
083 * <p>Name of the 'documents' option.</p>
084 * </blockquote></li>
085 * <li>"{@link #getInputEncodingOptionLongName inputEncodingOptionLongName}"
086 * <blockquote>Property of type {@code java.lang.String}.
087 * <p>Long name of the 'input-encoding' option.</p>
088 * </blockquote></li>
089 * <li>"{@link #getInputEncodingOptionShortName inputEncodingOptionShortName}"
090 * <blockquote>Property of type {@code java.lang.String}.
091 * <p>Name of the 'input-encoding' option.</p>
092 * </blockquote></li>
093 * <li>"{@link #getModuleLocationOptionLongName moduleLocationOptionLongName}"
094 * <blockquote>Property of type {@code java.lang.String}.
095 * <p>Long name of the 'module-location' option.</p>
096 * </blockquote></li>
097 * <li>"{@link #getModuleLocationOptionShortName moduleLocationOptionShortName}"
098 * <blockquote>Property of type {@code java.lang.String}.
099 * <p>Name of the 'module-location' option.</p>
100 * </blockquote></li>
101 * <li>"{@link #getModuleNameOptionLongName moduleNameOptionLongName}"
102 * <blockquote>Property of type {@code java.lang.String}.
103 * <p>Long name of the 'module' option.</p>
104 * </blockquote></li>
105 * <li>"{@link #getModuleNameOptionShortName moduleNameOptionShortName}"
106 * <blockquote>Property of type {@code java.lang.String}.
107 * <p>Name of the 'module' option.</p>
108 * </blockquote></li>
109 * <li>"{@link #getNoClasspathResolutionOptionLongName noClasspathResolutionOptionLongName}"
110 * <blockquote>Property of type {@code java.lang.String}.
111 * <p>Long name of the 'no-classpath-resolution' option.</p>
112 * </blockquote></li>
113 * <li>"{@link #getNoClasspathResolutionOptionShortName noClasspathResolutionOptionShortName}"
114 * <blockquote>Property of type {@code java.lang.String}.
115 * <p>Name of the 'no-classpath-resolution' option.</p>
116 * </blockquote></li>
117 * <li>"{@link #getOutputEncodingOptionLongName outputEncodingOptionLongName}"
118 * <blockquote>Property of type {@code java.lang.String}.
119 * <p>Long name of the 'output-encoding' option.</p>
120 * </blockquote></li>
121 * <li>"{@link #getOutputEncodingOptionShortName outputEncodingOptionShortName}"
122 * <blockquote>Property of type {@code java.lang.String}.
123 * <p>Name of the 'output-encoding' option.</p>
124 * </blockquote></li>
125 * <li>"{@link #getProfileOptionLongName profileOptionLongName}"
126 * <blockquote>Property of type {@code java.lang.String}.
127 * <p>Long name of the 'profile' option.</p>
128 * </blockquote></li>
129 * <li>"{@link #getProfileOptionShortName profileOptionShortName}"
130 * <blockquote>Property of type {@code java.lang.String}.
131 * <p>Name of the 'profile' option.</p>
132 * </blockquote></li>
133 * <li>"{@link #getSourceDirectoryOptionLongName sourceDirectoryOptionLongName}"
134 * <blockquote>Property of type {@code java.lang.String}.
135 * <p>Long name of the 'source-dir' option.</p>
136 * </blockquote></li>
137 * <li>"{@link #getSourceDirectoryOptionShortName sourceDirectoryOptionShortName}"
138 * <blockquote>Property of type {@code java.lang.String}.
139 * <p>Name of the 'source-dir' option.</p>
140 * </blockquote></li>
141 * <li>"{@link #getTemplateEncodingOptionLongName templateEncodingOptionLongName}"
142 * <blockquote>Property of type {@code java.lang.String}.
143 * <p>Long name of the 'template-encoding' option.</p>
144 * </blockquote></li>
145 * <li>"{@link #getTemplateEncodingOptionShortName templateEncodingOptionShortName}"
146 * <blockquote>Property of type {@code java.lang.String}.
147 * <p>Name of the 'template-encoding' option.</p>
148 * </blockquote></li>
149 * </ul></p>
150 * <p><b>Dependencies</b><ul>
151 * <li>"{@link #getLocale Locale}"<blockquote>
152 * Dependency on {@code java.util.Locale} at specification level 1.1 bound to an instance.</blockquote></li>
153 * </ul></p>
154 * <p><b>Messages</b><ul>
155 * <li>"{@link #getApplicationTitleMessage applicationTitle}"<table>
156 * <tr><td valign="top">English:</td><td valign="top"><pre>JOMC Version 1.0-alpha-11 Build 2009-12-07T02:58:52+0000</pre></td></tr>
157 * </table>
158 * <li>"{@link #getCannotProcessMessage cannotProcess}"<table>
159 * <tr><td valign="top">English:</td><td valign="top"><pre>Cannot process ''{0}'': {1}</pre></td></tr>
160 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kann ''{0}'' nicht verarbeiten: {1}</pre></td></tr>
161 * </table>
162 * <li>"{@link #getClasspathElementMessage classpathElement}"<table>
163 * <tr><td valign="top">English:</td><td valign="top"><pre>Classpath element: ''{0}''</pre></td></tr>
164 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Klassenpfad-Element: ''{0}''</pre></td></tr>
165 * </table>
166 * <li>"{@link #getClasspathOptionMessage classpathOption}"<table>
167 * <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>
168 * <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>
169 * </table>
170 * <li>"{@link #getClasspathOptionArgNameMessage classpathOptionArgName}"<table>
171 * <tr><td valign="top">English:</td><td valign="top"><pre>elements</pre></td></tr>
172 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Elemente</pre></td></tr>
173 * </table>
174 * <li>"{@link #getDefaultLogLevelInfoMessage defaultLogLevelInfo}"<table>
175 * <tr><td valign="top">English:</td><td valign="top"><pre>Default log level: ''{0}''</pre></td></tr>
176 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Standard-Protokollierungsstufe: ''{0}''</pre></td></tr>
177 * </table>
178 * <li>"{@link #getDocumentFileMessage documentFile}"<table>
179 * <tr><td valign="top">English:</td><td valign="top"><pre>Document file: ''{0}''</pre></td></tr>
180 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dokument-Datei: ''{0}''</pre></td></tr>
181 * </table>
182 * <li>"{@link #getDocumentsOptionMessage documentsOption}"<table>
183 * <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>
184 * <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>
185 * </table>
186 * <li>"{@link #getDocumentsOptionArgNameMessage documentsOptionArgName}"<table>
187 * <tr><td valign="top">English:</td><td valign="top"><pre>files</pre></td></tr>
188 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dateien</pre></td></tr>
189 * </table>
190 * <li>"{@link #getInputEncodingOptionMessage inputEncodingOption}"<table>
191 * <tr><td valign="top">English:</td><td valign="top"><pre>Input encoding.</pre></td></tr>
192 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Eingabekodierung.</pre></td></tr>
193 * </table>
194 * <li>"{@link #getInputEncodingOptionArgNameMessage inputEncodingOptionArgName}"<table>
195 * <tr><td valign="top">English:</td><td valign="top"><pre>encoding</pre></td></tr>
196 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kodierung</pre></td></tr>
197 * </table>
198 * <li>"{@link #getInvalidModelMessage invalidModel}"<table>
199 * <tr><td valign="top">English:</td><td valign="top"><pre>Invalid model.</pre></td></tr>
200 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ungültiges Modell.</pre></td></tr>
201 * </table>
202 * <li>"{@link #getLongDescriptionMessage longDescription}"<table>
203 * <tr><td valign="top">English:</td><td valign="top"><pre>Example:
204 * jomc manage-java-sources -sd /tmp/src -df examples/xml/jomc-cli.xml } \
205 * -mn "JOMC CLI" -v</pre></td></tr>
206 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Beispiel:
207 * jomc manage-java-sources -sd /tmp/src -df examples/xml/jomc-cli.xml \
208 * -mn "JOMC CLI" -v</pre></td></tr>
209 * </table>
210 * <li>"{@link #getMissingModuleMessage missingModule}"<table>
211 * <tr><td valign="top">English:</td><td valign="top"><pre>Module ''{0}'' not found.</pre></td></tr>
212 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Modul ''{0}'' nicht gefunden.</pre></td></tr>
213 * </table>
214 * <li>"{@link #getModuleLocationOptionMessage moduleLocationOption}"<table>
215 * <tr><td valign="top">English:</td><td valign="top"><pre>Location of classpath modules.</pre></td></tr>
216 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ort der Klassenpfad-Module.</pre></td></tr>
217 * </table>
218 * <li>"{@link #getModuleLocationOptionArgNameMessage moduleLocationOptionArgName}"<table>
219 * <tr><td valign="top">English:</td><td valign="top"><pre>location</pre></td></tr>
220 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ort</pre></td></tr>
221 * </table>
222 * <li>"{@link #getModuleNameOptionMessage moduleNameOption}"<table>
223 * <tr><td valign="top">English:</td><td valign="top"><pre>Name of the module to process.</pre></td></tr>
224 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Name des zu verarbeitenden Moduls.</pre></td></tr>
225 * </table>
226 * <li>"{@link #getModuleNameOptionArgNameMessage moduleNameOptionArgName}"<table>
227 * <tr><td valign="top">English:</td><td valign="top"><pre>name</pre></td></tr>
228 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Name</pre></td></tr>
229 * </table>
230 * <li>"{@link #getModulesReportMessage modulesReport}"<table>
231 * <tr><td valign="top">English:</td><td valign="top"><pre>Modules</pre></td></tr>
232 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Module</pre></td></tr>
233 * </table>
234 * <li>"{@link #getNoClasspathResolutionOptionMessage noClasspathResolutionOption}"<table>
235 * <tr><td valign="top">English:</td><td valign="top"><pre>Do not perform classpath resolution.</pre></td></tr>
236 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Keine Klassenpfad-Auflösung durchführen.</pre></td></tr>
237 * </table>
238 * <li>"{@link #getOutputEncodingOptionMessage outputEncodingOption}"<table>
239 * <tr><td valign="top">English:</td><td valign="top"><pre>Output encoding.</pre></td></tr>
240 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ausgabekodierung.</pre></td></tr>
241 * </table>
242 * <li>"{@link #getOutputEncodingOptionArgNameMessage outputEncodingOptionArgName}"<table>
243 * <tr><td valign="top">English:</td><td valign="top"><pre>encoding</pre></td></tr>
244 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kodierung</pre></td></tr>
245 * </table>
246 * <li>"{@link #getProfileOptionMessage profileOption}"<table>
247 * <tr><td valign="top">English:</td><td valign="top"><pre>Templates profile to use.</pre></td></tr>
248 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Zu verwendendes Vorlagen-Profil.</pre></td></tr>
249 * </table>
250 * <li>"{@link #getProfileOptionArgNameMessage profileOptionArgName}"<table>
251 * <tr><td valign="top">English:</td><td valign="top"><pre>profile</pre></td></tr>
252 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Profil</pre></td></tr>
253 * </table>
254 * <li>"{@link #getSeparatorMessage separator}"<table>
255 * <tr><td valign="top">English:</td><td valign="top"><pre>--------------------------------------------------------------------------------</pre></td></tr>
256 * </table>
257 * <li>"{@link #getShortDescriptionMessage shortDescription}"<table>
258 * <tr><td valign="top">English:</td><td valign="top"><pre>Manages Java source files.</pre></td></tr>
259 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Verwaltet Java Quelltext-Dateien.</pre></td></tr>
260 * </table>
261 * <li>"{@link #getSourceDirectoryOptionMessage sourceDirectoryOption}"<table>
262 * <tr><td valign="top">English:</td><td valign="top"><pre>Directory to write source files to.</pre></td></tr>
263 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Verzeichnis in das Quelltext-Dateien geschrieben werden sollen.</pre></td></tr>
264 * </table>
265 * <li>"{@link #getSourceDirectoryOptionArgNameMessage sourceDirectoryOptionArgName}"<table>
266 * <tr><td valign="top">English:</td><td valign="top"><pre>directory</pre></td></tr>
267 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Verzeichnis</pre></td></tr>
268 * </table>
269 * <li>"{@link #getStartingModuleProcessingMessage startingModuleProcessing}"<table>
270 * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} with module ''{1}'' ...</pre></td></tr>
271 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Führt Befehl {0} mit Modul ''{1}'' aus ... </pre></td></tr>
272 * </table>
273 * <li>"{@link #getStartingProcessingMessage startingProcessing}"<table>
274 * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} ...</pre></td></tr>
275 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Führt Befehl {0} aus ... </pre></td></tr>
276 * </table>
277 * <li>"{@link #getTemplateEncodingOptionMessage templateEncodingOption}"<table>
278 * <tr><td valign="top">English:</td><td valign="top"><pre>Template encoding.</pre></td></tr>
279 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Vorlagenkodierung.</pre></td></tr>
280 * </table>
281 * <li>"{@link #getTemplateEncodingOptionArgNameMessage templateEncodingOptionArgName}"<table>
282 * <tr><td valign="top">English:</td><td valign="top"><pre>encoding</pre></td></tr>
283 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kodierung</pre></td></tr>
284 * </table>
285 * <li>"{@link #getToolFailureMessage toolFailure}"<table>
286 * <tr><td valign="top">English:</td><td valign="top"><pre>{0} failure.</pre></td></tr>
287 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} fehlgeschlagen.</pre></td></tr>
288 * </table>
289 * <li>"{@link #getToolSuccessMessage toolSuccess}"<table>
290 * <tr><td valign="top">English:</td><td valign="top"><pre>{0} successful.</pre></td></tr>
291 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} erfolgreich.</pre></td></tr>
292 * </table>
293 * </ul></p>
294 *
295 * @author <a href="mailto:cs@jomc.org">Christian Schulte</a> 1.0
296 * @version $Id: ManageJavaSourcesCommand.java 1102 2009-12-07 03:01:58Z schulte2005 $
297 */
298 // </editor-fold>
299 // SECTION-END
300 // SECTION-START[Annotations]
301 // <editor-fold defaultstate="collapsed" desc=" Generated Annotations ">
302 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
303 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
304 // </editor-fold>
305 // SECTION-END
306 public final class ManageJavaSourcesCommand extends AbstractJomcCommand
307 {
308 // SECTION-START[Command]
309
310 /** Options of the instance. */
311 private Options options;
312
313 @Override
314 public Options getOptions()
315 {
316 if ( this.options == null )
317 {
318 this.options = super.getOptions();
319 this.options.addOption( this.getSourceDirectoryOption() );
320 this.options.addOption( this.getProfileOption() );
321 this.options.addOption( this.getTemplateEncodingOption() );
322 this.options.addOption( this.getInputEncodingOption() );
323 this.options.addOption( this.getOutputEncodingOption() );
324 }
325
326 return this.options;
327 }
328
329 public int executeCommand( final CommandLine commandLine ) throws Exception
330 {
331 final Modules modules = this.getModules( commandLine );
332 final ClassLoader classLoader = this.getClassLoader( commandLine );
333 final JAXBContext context = this.getModelManager().getContext( classLoader );
334 final Marshaller marshaller = this.getModelManager().getMarshaller( classLoader );
335 final Schema schema = this.getModelManager().getSchema( classLoader );
336 final ModelObjectValidationReport validationReport = this.getModelObjectValidator().validateModelObject(
337 new ObjectFactory().createModules( modules ), context, schema );
338
339 this.log( validationReport, marshaller );
340
341 if ( validationReport.isModelObjectValid() )
342 {
343 final JavaSources tool = this.getJavaSources();
344 tool.setModules( modules );
345
346 if ( commandLine.hasOption( this.getProfileOption().getOpt() ) )
347 {
348 tool.setProfile( commandLine.getOptionValue( this.getProfileOption().getOpt() ) );
349 }
350 if ( commandLine.hasOption( this.getTemplateEncodingOption().getOpt() ) )
351 {
352 tool.setTemplateEncoding( commandLine.getOptionValue( this.getTemplateEncodingOption().getOpt() ) );
353 }
354 if ( commandLine.hasOption( this.getInputEncodingOption().getOpt() ) )
355 {
356 tool.setInputEncoding( commandLine.getOptionValue( this.getInputEncodingOption().getOpt() ) );
357 }
358 if ( commandLine.hasOption( this.getOutputEncodingOption().getOpt() ) )
359 {
360 tool.setOutputEncoding( commandLine.getOptionValue( this.getOutputEncodingOption().getOpt() ) );
361 }
362
363 final File sourcesDirectory =
364 new File( commandLine.getOptionValue( this.getSourceDirectoryOption().getOpt() ) );
365
366 if ( commandLine.hasOption( this.getModuleNameOption().getOpt() ) )
367 {
368 final String moduleName = commandLine.getOptionValue( this.getModuleNameOption().getOpt() );
369 final Module module = tool.getModules().getModule( moduleName );
370
371 if ( module != null )
372 {
373 if ( this.isLoggable( Level.INFO ) )
374 {
375 this.log( Level.INFO, this.getStartingModuleProcessingMessage(
376 this.getLocale(), this.getCommandName(), module.getName() ), null );
377
378 }
379
380 tool.manageSources( module, sourcesDirectory );
381 }
382 else if ( this.isLoggable( Level.WARNING ) )
383 {
384 this.log( Level.WARNING, this.getMissingModuleMessage( this.getLocale(), moduleName ), null );
385 }
386 }
387 else
388 {
389 if ( this.isLoggable( Level.INFO ) )
390 {
391 this.log( Level.INFO, this.getStartingProcessingMessage(
392 this.getLocale(), this.getCommandName() ), null );
393
394 }
395
396 tool.manageSources( sourcesDirectory );
397 }
398
399 return STATUS_SUCCESS;
400 }
401
402 return STATUS_FAILURE;
403 }
404
405 // SECTION-END
406 // SECTION-START[ManageJavaSourcesCommand]
407 private Option sourceDirectoryOption;
408
409 private Option profileOption;
410
411 private Option templateEncodingOption;
412
413 private Option outputEncodingOption;
414
415 private Option inputEncodingOption;
416
417 protected Option getSourceDirectoryOption()
418 {
419 if ( this.sourceDirectoryOption == null )
420 {
421 this.sourceDirectoryOption = new Option( this.getSourceDirectoryOptionShortName(),
422 this.getSourceDirectoryOptionLongName(), true,
423 this.getSourceDirectoryOptionMessage( this.getLocale() ) );
424
425 this.sourceDirectoryOption.setRequired( true );
426 this.sourceDirectoryOption.setArgName( this.getSourceDirectoryOptionArgNameMessage( this.getLocale() ) );
427 }
428
429 return this.sourceDirectoryOption;
430 }
431
432 protected Option getProfileOption()
433 {
434 if ( this.profileOption == null )
435 {
436 this.profileOption = new Option( this.getProfileOptionShortName(), this.getProfileOptionLongName(),
437 true, this.getProfileOptionMessage( this.getLocale() ) );
438
439 this.profileOption.setArgName( this.getProfileOptionArgNameMessage( this.getLocale() ) );
440 }
441
442 return this.profileOption;
443 }
444
445 protected Option getTemplateEncodingOption()
446 {
447 if ( this.templateEncodingOption == null )
448 {
449 this.templateEncodingOption = new Option( this.getTemplateEncodingOptionShortName(),
450 this.getTemplateEncodingOptionLongName(), true,
451 this.getTemplateEncodingOptionMessage( this.getLocale() ) );
452
453 this.templateEncodingOption.setArgName( this.getTemplateEncodingOptionArgNameMessage( this.getLocale() ) );
454 }
455
456 return this.templateEncodingOption;
457 }
458
459 protected Option getInputEncodingOption()
460 {
461 if ( this.inputEncodingOption == null )
462 {
463 this.inputEncodingOption = new Option( this.getInputEncodingOptionShortName(),
464 this.getInputEncodingOptionLongName(), true,
465 this.getInputEncodingOptionMessage( this.getLocale() ) );
466
467 this.inputEncodingOption.setArgName( this.getInputEncodingOptionArgNameMessage( this.getLocale() ) );
468 }
469
470 return this.inputEncodingOption;
471 }
472
473 protected Option getOutputEncodingOption()
474 {
475 if ( this.outputEncodingOption == null )
476 {
477 this.outputEncodingOption = new Option( this.getOutputEncodingOptionShortName(),
478 this.getOutputEncodingOptionLongName(), true,
479 this.getOutputEncodingOptionMessage( this.getLocale() ) );
480
481 this.outputEncodingOption.setArgName( this.getOutputEncodingOptionArgNameMessage( this.getLocale() ) );
482 }
483
484 return this.outputEncodingOption;
485 }
486
487 // SECTION-END
488 // SECTION-START[Constructors]
489 // <editor-fold defaultstate="collapsed" desc=" Generated Constructors ">
490
491 /** Creates a new {@code ManageJavaSourcesCommand} instance. */
492 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
493 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
494 public ManageJavaSourcesCommand()
495 {
496 // SECTION-START[Default Constructor]
497 super();
498 // SECTION-END
499 }
500 // </editor-fold>
501 // SECTION-END
502 // SECTION-START[Dependencies]
503 // <editor-fold defaultstate="collapsed" desc=" Generated Dependencies ">
504
505 /**
506 * Gets the {@code Locale} dependency.
507 * <p>This method returns the "{@code default}" object of the {@code java.util.Locale} specification at specification level 1.1.</p>
508 * <p>That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance.</p>
509 * @return The {@code Locale} dependency.
510 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails.
511 */
512 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
513 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
514 private java.util.Locale getLocale()
515 {
516 final java.util.Locale _d = (java.util.Locale) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Locale" );
517 assert _d != null : "'Locale' dependency not found.";
518 return _d;
519 }
520 // </editor-fold>
521 // SECTION-END
522 // SECTION-START[Properties]
523 // <editor-fold defaultstate="collapsed" desc=" Generated Properties ">
524
525 /**
526 * Gets the value of the {@code abbreviatedCommandName} property.
527 * @return Abbreviated name of the command.
528 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
529 */
530 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
531 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
532 private java.lang.String getAbbreviatedCommandName()
533 {
534 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "abbreviatedCommandName" );
535 assert _p != null : "'abbreviatedCommandName' property not found.";
536 return _p;
537 }
538
539 /**
540 * Gets the value of the {@code classpathOptionLongName} property.
541 * @return Long name of the 'classpath' option.
542 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
543 */
544 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
545 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
546 private java.lang.String getClasspathOptionLongName()
547 {
548 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "classpathOptionLongName" );
549 assert _p != null : "'classpathOptionLongName' property not found.";
550 return _p;
551 }
552
553 /**
554 * Gets the value of the {@code classpathOptionShortName} property.
555 * @return Name of the 'classpath' option.
556 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
557 */
558 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
559 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
560 private java.lang.String getClasspathOptionShortName()
561 {
562 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "classpathOptionShortName" );
563 assert _p != null : "'classpathOptionShortName' property not found.";
564 return _p;
565 }
566
567 /**
568 * Gets the value of the {@code commandName} property.
569 * @return Name of the command.
570 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
571 */
572 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
573 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
574 private java.lang.String getCommandName()
575 {
576 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "commandName" );
577 assert _p != null : "'commandName' property not found.";
578 return _p;
579 }
580
581 /**
582 * Gets the value of the {@code documentsOptionLongName} property.
583 * @return Long name of the 'documents' option.
584 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
585 */
586 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
587 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
588 private java.lang.String getDocumentsOptionLongName()
589 {
590 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "documentsOptionLongName" );
591 assert _p != null : "'documentsOptionLongName' property not found.";
592 return _p;
593 }
594
595 /**
596 * Gets the value of the {@code documentsOptionShortName} property.
597 * @return Name of the 'documents' option.
598 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
599 */
600 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
601 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
602 private java.lang.String getDocumentsOptionShortName()
603 {
604 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "documentsOptionShortName" );
605 assert _p != null : "'documentsOptionShortName' property not found.";
606 return _p;
607 }
608
609 /**
610 * Gets the value of the {@code inputEncodingOptionLongName} property.
611 * @return Long name of the 'input-encoding' option.
612 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
613 */
614 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
615 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
616 private java.lang.String getInputEncodingOptionLongName()
617 {
618 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "inputEncodingOptionLongName" );
619 assert _p != null : "'inputEncodingOptionLongName' property not found.";
620 return _p;
621 }
622
623 /**
624 * Gets the value of the {@code inputEncodingOptionShortName} property.
625 * @return Name of the 'input-encoding' option.
626 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
627 */
628 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
629 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
630 private java.lang.String getInputEncodingOptionShortName()
631 {
632 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "inputEncodingOptionShortName" );
633 assert _p != null : "'inputEncodingOptionShortName' property not found.";
634 return _p;
635 }
636
637 /**
638 * Gets the value of the {@code moduleLocationOptionLongName} property.
639 * @return Long name of the 'module-location' option.
640 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
641 */
642 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
643 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
644 private java.lang.String getModuleLocationOptionLongName()
645 {
646 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "moduleLocationOptionLongName" );
647 assert _p != null : "'moduleLocationOptionLongName' property not found.";
648 return _p;
649 }
650
651 /**
652 * Gets the value of the {@code moduleLocationOptionShortName} property.
653 * @return Name of the 'module-location' option.
654 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
655 */
656 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
657 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
658 private java.lang.String getModuleLocationOptionShortName()
659 {
660 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "moduleLocationOptionShortName" );
661 assert _p != null : "'moduleLocationOptionShortName' property not found.";
662 return _p;
663 }
664
665 /**
666 * Gets the value of the {@code moduleNameOptionLongName} property.
667 * @return Long name of the 'module' option.
668 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
669 */
670 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
671 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
672 private java.lang.String getModuleNameOptionLongName()
673 {
674 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "moduleNameOptionLongName" );
675 assert _p != null : "'moduleNameOptionLongName' property not found.";
676 return _p;
677 }
678
679 /**
680 * Gets the value of the {@code moduleNameOptionShortName} property.
681 * @return Name of the 'module' option.
682 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
683 */
684 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
685 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
686 private java.lang.String getModuleNameOptionShortName()
687 {
688 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "moduleNameOptionShortName" );
689 assert _p != null : "'moduleNameOptionShortName' property not found.";
690 return _p;
691 }
692
693 /**
694 * Gets the value of the {@code noClasspathResolutionOptionLongName} property.
695 * @return Long name of the 'no-classpath-resolution' option.
696 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
697 */
698 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
699 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
700 private java.lang.String getNoClasspathResolutionOptionLongName()
701 {
702 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "noClasspathResolutionOptionLongName" );
703 assert _p != null : "'noClasspathResolutionOptionLongName' property not found.";
704 return _p;
705 }
706
707 /**
708 * Gets the value of the {@code noClasspathResolutionOptionShortName} property.
709 * @return Name of the 'no-classpath-resolution' option.
710 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
711 */
712 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
713 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
714 private java.lang.String getNoClasspathResolutionOptionShortName()
715 {
716 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "noClasspathResolutionOptionShortName" );
717 assert _p != null : "'noClasspathResolutionOptionShortName' property not found.";
718 return _p;
719 }
720
721 /**
722 * Gets the value of the {@code outputEncodingOptionLongName} property.
723 * @return Long name of the 'output-encoding' option.
724 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
725 */
726 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
727 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
728 private java.lang.String getOutputEncodingOptionLongName()
729 {
730 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "outputEncodingOptionLongName" );
731 assert _p != null : "'outputEncodingOptionLongName' property not found.";
732 return _p;
733 }
734
735 /**
736 * Gets the value of the {@code outputEncodingOptionShortName} property.
737 * @return Name of the 'output-encoding' option.
738 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
739 */
740 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
741 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
742 private java.lang.String getOutputEncodingOptionShortName()
743 {
744 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "outputEncodingOptionShortName" );
745 assert _p != null : "'outputEncodingOptionShortName' property not found.";
746 return _p;
747 }
748
749 /**
750 * Gets the value of the {@code profileOptionLongName} property.
751 * @return Long name of the 'profile' option.
752 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
753 */
754 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
755 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
756 private java.lang.String getProfileOptionLongName()
757 {
758 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "profileOptionLongName" );
759 assert _p != null : "'profileOptionLongName' property not found.";
760 return _p;
761 }
762
763 /**
764 * Gets the value of the {@code profileOptionShortName} property.
765 * @return Name of the 'profile' option.
766 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
767 */
768 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
769 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
770 private java.lang.String getProfileOptionShortName()
771 {
772 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "profileOptionShortName" );
773 assert _p != null : "'profileOptionShortName' property not found.";
774 return _p;
775 }
776
777 /**
778 * Gets the value of the {@code sourceDirectoryOptionLongName} property.
779 * @return Long name of the 'source-dir' option.
780 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
781 */
782 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
783 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
784 private java.lang.String getSourceDirectoryOptionLongName()
785 {
786 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "sourceDirectoryOptionLongName" );
787 assert _p != null : "'sourceDirectoryOptionLongName' property not found.";
788 return _p;
789 }
790
791 /**
792 * Gets the value of the {@code sourceDirectoryOptionShortName} property.
793 * @return Name of the 'source-dir' option.
794 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
795 */
796 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
797 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
798 private java.lang.String getSourceDirectoryOptionShortName()
799 {
800 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "sourceDirectoryOptionShortName" );
801 assert _p != null : "'sourceDirectoryOptionShortName' property not found.";
802 return _p;
803 }
804
805 /**
806 * Gets the value of the {@code templateEncodingOptionLongName} property.
807 * @return Long name of the 'template-encoding' option.
808 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
809 */
810 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
811 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
812 private java.lang.String getTemplateEncodingOptionLongName()
813 {
814 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "templateEncodingOptionLongName" );
815 assert _p != null : "'templateEncodingOptionLongName' property not found.";
816 return _p;
817 }
818
819 /**
820 * Gets the value of the {@code templateEncodingOptionShortName} property.
821 * @return Name of the 'template-encoding' option.
822 * @throws org.jomc.ObjectManagementException if getting the property instance fails.
823 */
824 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
825 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
826 private java.lang.String getTemplateEncodingOptionShortName()
827 {
828 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "templateEncodingOptionShortName" );
829 assert _p != null : "'templateEncodingOptionShortName' property not found.";
830 return _p;
831 }
832 // </editor-fold>
833 // SECTION-END
834 // SECTION-START[Messages]
835 // <editor-fold defaultstate="collapsed" desc=" Generated Messages ">
836
837 /**
838 * Gets the text of the {@code applicationTitle} message.
839 * <p><b>Templates</b><br/><table>
840 * <tr><td valign="top">English:</td><td valign="top"><pre>JOMC Version 1.0-alpha-11 Build 2009-12-07T02:58:52+0000</pre></td></tr>
841 * </table></p>
842 * @param locale The locale of the message to return.
843 * @return The text of the {@code applicationTitle} message.
844 *
845 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
846 */
847 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
848 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
849 private String getApplicationTitleMessage( final java.util.Locale locale )
850 {
851 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "applicationTitle", locale, null );
852 assert _m != null : "'applicationTitle' message not found.";
853 return _m;
854 }
855
856 /**
857 * Gets the text of the {@code cannotProcess} message.
858 * <p><b>Templates</b><br/><table>
859 * <tr><td valign="top">English:</td><td valign="top"><pre>Cannot process ''{0}'': {1}</pre></td></tr>
860 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kann ''{0}'' nicht verarbeiten: {1}</pre></td></tr>
861 * </table></p>
862 * @param locale The locale of the message to return.
863 * @param itemInfo Format argument.
864 * @param detailMessage Format argument.
865 * @return The text of the {@code cannotProcess} message.
866 *
867 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
868 */
869 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
870 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
871 private String getCannotProcessMessage( final java.util.Locale locale, final java.lang.String itemInfo, final java.lang.String detailMessage )
872 {
873 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "cannotProcess", locale, new Object[] { itemInfo, detailMessage, null } );
874 assert _m != null : "'cannotProcess' message not found.";
875 return _m;
876 }
877
878 /**
879 * Gets the text of the {@code classpathElement} message.
880 * <p><b>Templates</b><br/><table>
881 * <tr><td valign="top">English:</td><td valign="top"><pre>Classpath element: ''{0}''</pre></td></tr>
882 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Klassenpfad-Element: ''{0}''</pre></td></tr>
883 * </table></p>
884 * @param locale The locale of the message to return.
885 * @param classpathElement Format argument.
886 * @return The text of the {@code classpathElement} message.
887 *
888 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
889 */
890 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
891 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
892 private String getClasspathElementMessage( final java.util.Locale locale, final java.lang.String classpathElement )
893 {
894 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathElement", locale, new Object[] { classpathElement, null } );
895 assert _m != null : "'classpathElement' message not found.";
896 return _m;
897 }
898
899 /**
900 * Gets the text of the {@code classpathOption} message.
901 * <p><b>Templates</b><br/><table>
902 * <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>
903 * <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>
904 * </table></p>
905 * @param locale The locale of the message to return.
906 * @param pathSeparator Format argument.
907 * @return The text of the {@code classpathOption} message.
908 *
909 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
910 */
911 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
912 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
913 private String getClasspathOptionMessage( final java.util.Locale locale, final java.lang.String pathSeparator )
914 {
915 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathOption", locale, new Object[] { pathSeparator, null } );
916 assert _m != null : "'classpathOption' message not found.";
917 return _m;
918 }
919
920 /**
921 * Gets the text of the {@code classpathOptionArgName} message.
922 * <p><b>Templates</b><br/><table>
923 * <tr><td valign="top">English:</td><td valign="top"><pre>elements</pre></td></tr>
924 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Elemente</pre></td></tr>
925 * </table></p>
926 * @param locale The locale of the message to return.
927 * @return The text of the {@code classpathOptionArgName} message.
928 *
929 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
930 */
931 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
932 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
933 private String getClasspathOptionArgNameMessage( final java.util.Locale locale )
934 {
935 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathOptionArgName", locale, null );
936 assert _m != null : "'classpathOptionArgName' message not found.";
937 return _m;
938 }
939
940 /**
941 * Gets the text of the {@code defaultLogLevelInfo} message.
942 * <p><b>Templates</b><br/><table>
943 * <tr><td valign="top">English:</td><td valign="top"><pre>Default log level: ''{0}''</pre></td></tr>
944 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Standard-Protokollierungsstufe: ''{0}''</pre></td></tr>
945 * </table></p>
946 * @param locale The locale of the message to return.
947 * @param defaultLogLevel Format argument.
948 * @return The text of the {@code defaultLogLevelInfo} message.
949 *
950 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
951 */
952 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
953 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
954 private String getDefaultLogLevelInfoMessage( final java.util.Locale locale, final java.lang.String defaultLogLevel )
955 {
956 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "defaultLogLevelInfo", locale, new Object[] { defaultLogLevel, null } );
957 assert _m != null : "'defaultLogLevelInfo' message not found.";
958 return _m;
959 }
960
961 /**
962 * Gets the text of the {@code documentFile} message.
963 * <p><b>Templates</b><br/><table>
964 * <tr><td valign="top">English:</td><td valign="top"><pre>Document file: ''{0}''</pre></td></tr>
965 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dokument-Datei: ''{0}''</pre></td></tr>
966 * </table></p>
967 * @param locale The locale of the message to return.
968 * @param documentFile Format argument.
969 * @return The text of the {@code documentFile} message.
970 *
971 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
972 */
973 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
974 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
975 private String getDocumentFileMessage( final java.util.Locale locale, final java.lang.String documentFile )
976 {
977 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentFile", locale, new Object[] { documentFile, null } );
978 assert _m != null : "'documentFile' message not found.";
979 return _m;
980 }
981
982 /**
983 * Gets the text of the {@code documentsOption} message.
984 * <p><b>Templates</b><br/><table>
985 * <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>
986 * <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>
987 * </table></p>
988 * @param locale The locale of the message to return.
989 * @param pathSeparator Format argument.
990 * @return The text of the {@code documentsOption} message.
991 *
992 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
993 */
994 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
995 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
996 private String getDocumentsOptionMessage( final java.util.Locale locale, final java.lang.String pathSeparator )
997 {
998 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentsOption", locale, new Object[] { pathSeparator, null } );
999 assert _m != null : "'documentsOption' message not found.";
1000 return _m;
1001 }
1002
1003 /**
1004 * Gets the text of the {@code documentsOptionArgName} message.
1005 * <p><b>Templates</b><br/><table>
1006 * <tr><td valign="top">English:</td><td valign="top"><pre>files</pre></td></tr>
1007 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dateien</pre></td></tr>
1008 * </table></p>
1009 * @param locale The locale of the message to return.
1010 * @return The text of the {@code documentsOptionArgName} message.
1011 *
1012 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1013 */
1014 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1015 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1016 private String getDocumentsOptionArgNameMessage( final java.util.Locale locale )
1017 {
1018 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentsOptionArgName", locale, null );
1019 assert _m != null : "'documentsOptionArgName' message not found.";
1020 return _m;
1021 }
1022
1023 /**
1024 * Gets the text of the {@code inputEncodingOption} message.
1025 * <p><b>Templates</b><br/><table>
1026 * <tr><td valign="top">English:</td><td valign="top"><pre>Input encoding.</pre></td></tr>
1027 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Eingabekodierung.</pre></td></tr>
1028 * </table></p>
1029 * @param locale The locale of the message to return.
1030 * @return The text of the {@code inputEncodingOption} message.
1031 *
1032 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1033 */
1034 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1035 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1036 private String getInputEncodingOptionMessage( final java.util.Locale locale )
1037 {
1038 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "inputEncodingOption", locale, null );
1039 assert _m != null : "'inputEncodingOption' message not found.";
1040 return _m;
1041 }
1042
1043 /**
1044 * Gets the text of the {@code inputEncodingOptionArgName} message.
1045 * <p><b>Templates</b><br/><table>
1046 * <tr><td valign="top">English:</td><td valign="top"><pre>encoding</pre></td></tr>
1047 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kodierung</pre></td></tr>
1048 * </table></p>
1049 * @param locale The locale of the message to return.
1050 * @return The text of the {@code inputEncodingOptionArgName} message.
1051 *
1052 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1053 */
1054 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1055 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1056 private String getInputEncodingOptionArgNameMessage( final java.util.Locale locale )
1057 {
1058 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "inputEncodingOptionArgName", locale, null );
1059 assert _m != null : "'inputEncodingOptionArgName' message not found.";
1060 return _m;
1061 }
1062
1063 /**
1064 * Gets the text of the {@code invalidModel} message.
1065 * <p><b>Templates</b><br/><table>
1066 * <tr><td valign="top">English:</td><td valign="top"><pre>Invalid model.</pre></td></tr>
1067 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ungültiges Modell.</pre></td></tr>
1068 * </table></p>
1069 * @param locale The locale of the message to return.
1070 * @return The text of the {@code invalidModel} message.
1071 *
1072 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1073 */
1074 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1075 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1076 private String getInvalidModelMessage( final java.util.Locale locale )
1077 {
1078 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "invalidModel", locale, null );
1079 assert _m != null : "'invalidModel' message not found.";
1080 return _m;
1081 }
1082
1083 /**
1084 * Gets the text of the {@code longDescription} message.
1085 * <p><b>Templates</b><br/><table>
1086 * <tr><td valign="top">English:</td><td valign="top"><pre>Example:
1087 * jomc manage-java-sources -sd /tmp/src -df examples/xml/jomc-cli.xml } \
1088 * -mn "JOMC CLI" -v</pre></td></tr>
1089 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Beispiel:
1090 * jomc manage-java-sources -sd /tmp/src -df examples/xml/jomc-cli.xml \
1091 * -mn "JOMC CLI" -v</pre></td></tr>
1092 * </table></p>
1093 * @param locale The locale of the message to return.
1094 * @return The text of the {@code longDescription} message.
1095 *
1096 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1097 */
1098 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1099 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1100 private String getLongDescriptionMessage( final java.util.Locale locale )
1101 {
1102 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "longDescription", locale, null );
1103 assert _m != null : "'longDescription' message not found.";
1104 return _m;
1105 }
1106
1107 /**
1108 * Gets the text of the {@code missingModule} message.
1109 * <p><b>Templates</b><br/><table>
1110 * <tr><td valign="top">English:</td><td valign="top"><pre>Module ''{0}'' not found.</pre></td></tr>
1111 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Modul ''{0}'' nicht gefunden.</pre></td></tr>
1112 * </table></p>
1113 * @param locale The locale of the message to return.
1114 * @param moduleName Format argument.
1115 * @return The text of the {@code missingModule} message.
1116 *
1117 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1118 */
1119 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1120 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1121 private String getMissingModuleMessage( final java.util.Locale locale, final java.lang.String moduleName )
1122 {
1123 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "missingModule", locale, new Object[] { moduleName, null } );
1124 assert _m != null : "'missingModule' message not found.";
1125 return _m;
1126 }
1127
1128 /**
1129 * Gets the text of the {@code moduleLocationOption} message.
1130 * <p><b>Templates</b><br/><table>
1131 * <tr><td valign="top">English:</td><td valign="top"><pre>Location of classpath modules.</pre></td></tr>
1132 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ort der Klassenpfad-Module.</pre></td></tr>
1133 * </table></p>
1134 * @param locale The locale of the message to return.
1135 * @return The text of the {@code moduleLocationOption} message.
1136 *
1137 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1138 */
1139 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1140 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1141 private String getModuleLocationOptionMessage( final java.util.Locale locale )
1142 {
1143 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "moduleLocationOption", locale, null );
1144 assert _m != null : "'moduleLocationOption' message not found.";
1145 return _m;
1146 }
1147
1148 /**
1149 * Gets the text of the {@code moduleLocationOptionArgName} message.
1150 * <p><b>Templates</b><br/><table>
1151 * <tr><td valign="top">English:</td><td valign="top"><pre>location</pre></td></tr>
1152 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ort</pre></td></tr>
1153 * </table></p>
1154 * @param locale The locale of the message to return.
1155 * @return The text of the {@code moduleLocationOptionArgName} message.
1156 *
1157 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1158 */
1159 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1160 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1161 private String getModuleLocationOptionArgNameMessage( final java.util.Locale locale )
1162 {
1163 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "moduleLocationOptionArgName", locale, null );
1164 assert _m != null : "'moduleLocationOptionArgName' message not found.";
1165 return _m;
1166 }
1167
1168 /**
1169 * Gets the text of the {@code moduleNameOption} message.
1170 * <p><b>Templates</b><br/><table>
1171 * <tr><td valign="top">English:</td><td valign="top"><pre>Name of the module to process.</pre></td></tr>
1172 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Name des zu verarbeitenden Moduls.</pre></td></tr>
1173 * </table></p>
1174 * @param locale The locale of the message to return.
1175 * @return The text of the {@code moduleNameOption} message.
1176 *
1177 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1178 */
1179 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1180 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1181 private String getModuleNameOptionMessage( final java.util.Locale locale )
1182 {
1183 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "moduleNameOption", locale, null );
1184 assert _m != null : "'moduleNameOption' message not found.";
1185 return _m;
1186 }
1187
1188 /**
1189 * Gets the text of the {@code moduleNameOptionArgName} message.
1190 * <p><b>Templates</b><br/><table>
1191 * <tr><td valign="top">English:</td><td valign="top"><pre>name</pre></td></tr>
1192 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Name</pre></td></tr>
1193 * </table></p>
1194 * @param locale The locale of the message to return.
1195 * @return The text of the {@code moduleNameOptionArgName} message.
1196 *
1197 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1198 */
1199 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1200 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1201 private String getModuleNameOptionArgNameMessage( final java.util.Locale locale )
1202 {
1203 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "moduleNameOptionArgName", locale, null );
1204 assert _m != null : "'moduleNameOptionArgName' message not found.";
1205 return _m;
1206 }
1207
1208 /**
1209 * Gets the text of the {@code modulesReport} message.
1210 * <p><b>Templates</b><br/><table>
1211 * <tr><td valign="top">English:</td><td valign="top"><pre>Modules</pre></td></tr>
1212 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Module</pre></td></tr>
1213 * </table></p>
1214 * @param locale The locale of the message to return.
1215 * @return The text of the {@code modulesReport} message.
1216 *
1217 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1218 */
1219 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1220 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1221 private String getModulesReportMessage( final java.util.Locale locale )
1222 {
1223 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "modulesReport", locale, null );
1224 assert _m != null : "'modulesReport' message not found.";
1225 return _m;
1226 }
1227
1228 /**
1229 * Gets the text of the {@code noClasspathResolutionOption} message.
1230 * <p><b>Templates</b><br/><table>
1231 * <tr><td valign="top">English:</td><td valign="top"><pre>Do not perform classpath resolution.</pre></td></tr>
1232 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Keine Klassenpfad-Auflösung durchführen.</pre></td></tr>
1233 * </table></p>
1234 * @param locale The locale of the message to return.
1235 * @return The text of the {@code noClasspathResolutionOption} message.
1236 *
1237 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1238 */
1239 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1240 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1241 private String getNoClasspathResolutionOptionMessage( final java.util.Locale locale )
1242 {
1243 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "noClasspathResolutionOption", locale, null );
1244 assert _m != null : "'noClasspathResolutionOption' message not found.";
1245 return _m;
1246 }
1247
1248 /**
1249 * Gets the text of the {@code outputEncodingOption} message.
1250 * <p><b>Templates</b><br/><table>
1251 * <tr><td valign="top">English:</td><td valign="top"><pre>Output encoding.</pre></td></tr>
1252 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ausgabekodierung.</pre></td></tr>
1253 * </table></p>
1254 * @param locale The locale of the message to return.
1255 * @return The text of the {@code outputEncodingOption} message.
1256 *
1257 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1258 */
1259 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1260 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1261 private String getOutputEncodingOptionMessage( final java.util.Locale locale )
1262 {
1263 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "outputEncodingOption", locale, null );
1264 assert _m != null : "'outputEncodingOption' message not found.";
1265 return _m;
1266 }
1267
1268 /**
1269 * Gets the text of the {@code outputEncodingOptionArgName} message.
1270 * <p><b>Templates</b><br/><table>
1271 * <tr><td valign="top">English:</td><td valign="top"><pre>encoding</pre></td></tr>
1272 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kodierung</pre></td></tr>
1273 * </table></p>
1274 * @param locale The locale of the message to return.
1275 * @return The text of the {@code outputEncodingOptionArgName} message.
1276 *
1277 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1278 */
1279 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1280 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1281 private String getOutputEncodingOptionArgNameMessage( final java.util.Locale locale )
1282 {
1283 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "outputEncodingOptionArgName", locale, null );
1284 assert _m != null : "'outputEncodingOptionArgName' message not found.";
1285 return _m;
1286 }
1287
1288 /**
1289 * Gets the text of the {@code profileOption} message.
1290 * <p><b>Templates</b><br/><table>
1291 * <tr><td valign="top">English:</td><td valign="top"><pre>Templates profile to use.</pre></td></tr>
1292 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Zu verwendendes Vorlagen-Profil.</pre></td></tr>
1293 * </table></p>
1294 * @param locale The locale of the message to return.
1295 * @return The text of the {@code profileOption} message.
1296 *
1297 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1298 */
1299 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1300 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1301 private String getProfileOptionMessage( final java.util.Locale locale )
1302 {
1303 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "profileOption", locale, null );
1304 assert _m != null : "'profileOption' message not found.";
1305 return _m;
1306 }
1307
1308 /**
1309 * Gets the text of the {@code profileOptionArgName} message.
1310 * <p><b>Templates</b><br/><table>
1311 * <tr><td valign="top">English:</td><td valign="top"><pre>profile</pre></td></tr>
1312 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Profil</pre></td></tr>
1313 * </table></p>
1314 * @param locale The locale of the message to return.
1315 * @return The text of the {@code profileOptionArgName} message.
1316 *
1317 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1318 */
1319 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1320 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1321 private String getProfileOptionArgNameMessage( final java.util.Locale locale )
1322 {
1323 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "profileOptionArgName", locale, null );
1324 assert _m != null : "'profileOptionArgName' message not found.";
1325 return _m;
1326 }
1327
1328 /**
1329 * Gets the text of the {@code separator} message.
1330 * <p><b>Templates</b><br/><table>
1331 * <tr><td valign="top">English:</td><td valign="top"><pre>--------------------------------------------------------------------------------</pre></td></tr>
1332 * </table></p>
1333 * @param locale The locale of the message to return.
1334 * @return The text of the {@code separator} message.
1335 *
1336 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1337 */
1338 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1339 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1340 private String getSeparatorMessage( final java.util.Locale locale )
1341 {
1342 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "separator", locale, null );
1343 assert _m != null : "'separator' message not found.";
1344 return _m;
1345 }
1346
1347 /**
1348 * Gets the text of the {@code shortDescription} message.
1349 * <p><b>Templates</b><br/><table>
1350 * <tr><td valign="top">English:</td><td valign="top"><pre>Manages Java source files.</pre></td></tr>
1351 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Verwaltet Java Quelltext-Dateien.</pre></td></tr>
1352 * </table></p>
1353 * @param locale The locale of the message to return.
1354 * @return The text of the {@code shortDescription} message.
1355 *
1356 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1357 */
1358 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1359 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1360 private String getShortDescriptionMessage( final java.util.Locale locale )
1361 {
1362 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "shortDescription", locale, null );
1363 assert _m != null : "'shortDescription' message not found.";
1364 return _m;
1365 }
1366
1367 /**
1368 * Gets the text of the {@code sourceDirectoryOption} message.
1369 * <p><b>Templates</b><br/><table>
1370 * <tr><td valign="top">English:</td><td valign="top"><pre>Directory to write source files to.</pre></td></tr>
1371 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Verzeichnis in das Quelltext-Dateien geschrieben werden sollen.</pre></td></tr>
1372 * </table></p>
1373 * @param locale The locale of the message to return.
1374 * @return The text of the {@code sourceDirectoryOption} message.
1375 *
1376 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1377 */
1378 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1379 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1380 private String getSourceDirectoryOptionMessage( final java.util.Locale locale )
1381 {
1382 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "sourceDirectoryOption", locale, null );
1383 assert _m != null : "'sourceDirectoryOption' message not found.";
1384 return _m;
1385 }
1386
1387 /**
1388 * Gets the text of the {@code sourceDirectoryOptionArgName} message.
1389 * <p><b>Templates</b><br/><table>
1390 * <tr><td valign="top">English:</td><td valign="top"><pre>directory</pre></td></tr>
1391 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Verzeichnis</pre></td></tr>
1392 * </table></p>
1393 * @param locale The locale of the message to return.
1394 * @return The text of the {@code sourceDirectoryOptionArgName} message.
1395 *
1396 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1397 */
1398 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1399 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1400 private String getSourceDirectoryOptionArgNameMessage( final java.util.Locale locale )
1401 {
1402 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "sourceDirectoryOptionArgName", locale, null );
1403 assert _m != null : "'sourceDirectoryOptionArgName' message not found.";
1404 return _m;
1405 }
1406
1407 /**
1408 * Gets the text of the {@code startingModuleProcessing} message.
1409 * <p><b>Templates</b><br/><table>
1410 * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} with module ''{1}'' ...</pre></td></tr>
1411 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Führt Befehl {0} mit Modul ''{1}'' aus ... </pre></td></tr>
1412 * </table></p>
1413 * @param locale The locale of the message to return.
1414 * @param toolName Format argument.
1415 * @param moduleName Format argument.
1416 * @return The text of the {@code startingModuleProcessing} message.
1417 *
1418 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1419 */
1420 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1421 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1422 private String getStartingModuleProcessingMessage( final java.util.Locale locale, final java.lang.String toolName, final java.lang.String moduleName )
1423 {
1424 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "startingModuleProcessing", locale, new Object[] { toolName, moduleName, null } );
1425 assert _m != null : "'startingModuleProcessing' message not found.";
1426 return _m;
1427 }
1428
1429 /**
1430 * Gets the text of the {@code startingProcessing} message.
1431 * <p><b>Templates</b><br/><table>
1432 * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} ...</pre></td></tr>
1433 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Führt Befehl {0} aus ... </pre></td></tr>
1434 * </table></p>
1435 * @param locale The locale of the message to return.
1436 * @param toolName Format argument.
1437 * @return The text of the {@code startingProcessing} message.
1438 *
1439 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1440 */
1441 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1442 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1443 private String getStartingProcessingMessage( final java.util.Locale locale, final java.lang.String toolName )
1444 {
1445 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "startingProcessing", locale, new Object[] { toolName, null } );
1446 assert _m != null : "'startingProcessing' message not found.";
1447 return _m;
1448 }
1449
1450 /**
1451 * Gets the text of the {@code templateEncodingOption} message.
1452 * <p><b>Templates</b><br/><table>
1453 * <tr><td valign="top">English:</td><td valign="top"><pre>Template encoding.</pre></td></tr>
1454 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Vorlagenkodierung.</pre></td></tr>
1455 * </table></p>
1456 * @param locale The locale of the message to return.
1457 * @return The text of the {@code templateEncodingOption} message.
1458 *
1459 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1460 */
1461 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1462 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1463 private String getTemplateEncodingOptionMessage( final java.util.Locale locale )
1464 {
1465 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "templateEncodingOption", locale, null );
1466 assert _m != null : "'templateEncodingOption' message not found.";
1467 return _m;
1468 }
1469
1470 /**
1471 * Gets the text of the {@code templateEncodingOptionArgName} message.
1472 * <p><b>Templates</b><br/><table>
1473 * <tr><td valign="top">English:</td><td valign="top"><pre>encoding</pre></td></tr>
1474 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kodierung</pre></td></tr>
1475 * </table></p>
1476 * @param locale The locale of the message to return.
1477 * @return The text of the {@code templateEncodingOptionArgName} message.
1478 *
1479 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1480 */
1481 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1482 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1483 private String getTemplateEncodingOptionArgNameMessage( final java.util.Locale locale )
1484 {
1485 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "templateEncodingOptionArgName", locale, null );
1486 assert _m != null : "'templateEncodingOptionArgName' message not found.";
1487 return _m;
1488 }
1489
1490 /**
1491 * Gets the text of the {@code toolFailure} message.
1492 * <p><b>Templates</b><br/><table>
1493 * <tr><td valign="top">English:</td><td valign="top"><pre>{0} failure.</pre></td></tr>
1494 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} fehlgeschlagen.</pre></td></tr>
1495 * </table></p>
1496 * @param locale The locale of the message to return.
1497 * @param toolName Format argument.
1498 * @return The text of the {@code toolFailure} message.
1499 *
1500 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1501 */
1502 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1503 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1504 private String getToolFailureMessage( final java.util.Locale locale, final java.lang.String toolName )
1505 {
1506 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "toolFailure", locale, new Object[] { toolName, null } );
1507 assert _m != null : "'toolFailure' message not found.";
1508 return _m;
1509 }
1510
1511 /**
1512 * Gets the text of the {@code toolSuccess} message.
1513 * <p><b>Templates</b><br/><table>
1514 * <tr><td valign="top">English:</td><td valign="top"><pre>{0} successful.</pre></td></tr>
1515 * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} erfolgreich.</pre></td></tr>
1516 * </table></p>
1517 * @param locale The locale of the message to return.
1518 * @param toolName Format argument.
1519 * @return The text of the {@code toolSuccess} message.
1520 *
1521 * @throws org.jomc.ObjectManagementException if getting the message instance fails.
1522 */
1523 @javax.annotation.Generated( value = "org.jomc.tools.JavaSources",
1524 comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools" )
1525 private String getToolSuccessMessage( final java.util.Locale locale, final java.lang.String toolName )
1526 {
1527 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "toolSuccess", locale, new Object[] { toolName, null } );
1528 assert _m != null : "'toolSuccess' message not found.";
1529 return _m;
1530 }
1531 // </editor-fold>
1532 // SECTION-END
1533 }