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