1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 package org.jomc.cli.commands;
37
38 import java.io.File;
39 import java.io.IOException;
40 import java.net.URL;
41 import java.util.Arrays;
42 import java.util.Enumeration;
43 import java.util.Iterator;
44 import java.util.List;
45 import java.util.logging.Level;
46 import javax.xml.bind.JAXBElement;
47 import javax.xml.bind.JAXBException;
48 import javax.xml.bind.Marshaller;
49 import javax.xml.bind.Unmarshaller;
50 import javax.xml.bind.util.JAXBResult;
51 import javax.xml.bind.util.JAXBSource;
52 import javax.xml.transform.Transformer;
53 import javax.xml.transform.TransformerException;
54 import javax.xml.transform.stream.StreamSource;
55 import org.apache.commons.cli.CommandLine;
56 import org.jomc.model.Module;
57 import org.jomc.model.Modules;
58 import org.jomc.model.ObjectFactory;
59 import org.jomc.model.modlet.DefaultModelProvider;
60 import org.jomc.modlet.ModelContext;
61 import org.jomc.modlet.ModelException;
62 import org.jomc.modlet.ModelValidationReport;
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
87
88
89 public final class MergeModulesCommand extends AbstractModelCommand
90 {
91
92
93
94
95 protected void executeCommand( final CommandLine commandLine ) throws CommandExecutionException
96 {
97 if ( commandLine == null )
98 {
99 throw new NullPointerException( "commandLine" );
100 }
101
102 CommandLineClassLoader classLoader = null;
103 boolean suppressExceptionOnClose = true;
104
105 try
106 {
107 classLoader = new CommandLineClassLoader( commandLine );
108 final Modules modules = new Modules();
109 final ModelContext context = this.createModelContext( commandLine, classLoader );
110 final String model = this.getModel( commandLine );
111 final Marshaller marshaller = context.createMarshaller( model );
112 final Unmarshaller unmarshaller = context.createUnmarshaller( model );
113
114 if ( !commandLine.hasOption( this.getNoModelResourceValidation().getOpt() ) )
115 {
116 unmarshaller.setSchema( context.createSchema( model ) );
117 }
118
119 File stylesheetFile = null;
120 if ( commandLine.hasOption( this.getStylesheetOption().getOpt() ) )
121 {
122 stylesheetFile = new File( commandLine.getOptionValue( this.getStylesheetOption().getOpt() ) );
123 }
124
125 String moduleVersion = null;
126 if ( commandLine.hasOption( this.getModuleVersionOption().getOpt() ) )
127 {
128 moduleVersion = commandLine.getOptionValue( this.getModuleVersionOption().getOpt() );
129 }
130
131 String moduleVendor = null;
132 if ( commandLine.hasOption( this.getModuleVendorOption().getOpt() ) )
133 {
134 moduleVendor = commandLine.getOptionValue( this.getModuleVendorOption().getOpt() );
135 }
136
137 if ( commandLine.hasOption( this.getDocumentsOption().getOpt() ) )
138 {
139 for ( File f : this.getDocumentFiles( commandLine ) )
140 {
141 if ( this.isLoggable( Level.FINEST ) )
142 {
143 this.log( Level.FINEST, this.getReadingMessage( this.getLocale(), f.getAbsolutePath() ), null );
144 }
145
146 Object o = unmarshaller.unmarshal( f );
147 if ( o instanceof JAXBElement<?> )
148 {
149 o = ( (JAXBElement<?>) o ).getValue();
150 }
151
152 if ( o instanceof Module )
153 {
154 modules.getModule().add( (Module) o );
155 }
156 else if ( o instanceof Modules )
157 {
158 modules.getModule().addAll( ( (Modules) o ).getModule() );
159 }
160 else if ( this.isLoggable( Level.WARNING ) )
161 {
162 this.log( Level.WARNING, this.getCannotProcessMessage(
163 this.getLocale(), f.getAbsolutePath(), o.toString() ), null );
164
165 }
166 }
167 }
168
169 if ( commandLine.hasOption( this.getClasspathOption().getOpt() ) )
170 {
171 String[] resourceNames = null;
172
173 if ( commandLine.hasOption( this.getResourcesOption().getOpt() ) )
174 {
175 resourceNames = commandLine.getOptionValues( this.getResourcesOption().getOpt() );
176 }
177
178 if ( resourceNames == null )
179 {
180 resourceNames = new String[]
181 {
182 DefaultModelProvider.getDefaultModuleLocation()
183 };
184 }
185
186 for ( String resource : resourceNames )
187 {
188 for ( final Enumeration<URL> e = classLoader.getResources( resource ); e.hasMoreElements(); )
189 {
190 final URL url = e.nextElement();
191
192 if ( this.isLoggable( Level.FINEST ) )
193 {
194 this.log( Level.FINEST, this.getReadingMessage( this.getLocale(), url.toExternalForm() ),
195 null );
196
197 }
198
199 Object o = unmarshaller.unmarshal( url );
200 if ( o instanceof JAXBElement<?> )
201 {
202 o = ( (JAXBElement<?>) o ).getValue();
203 }
204
205 if ( o instanceof Module )
206 {
207 modules.getModule().add( (Module) o );
208 }
209 else if ( o instanceof Modules )
210 {
211 modules.getModule().addAll( ( (Modules) o ).getModule() );
212 }
213 else if ( this.isLoggable( Level.WARNING ) )
214 {
215 this.log( Level.WARNING, this.getCannotProcessMessage(
216 this.getLocale(), url.toExternalForm(), o.toString() ), null );
217
218 }
219 }
220 }
221 }
222
223 if ( commandLine.hasOption( this.getModuleIncludesOption().getOpt() ) )
224 {
225 final String[] values = commandLine.getOptionValues( this.getModuleIncludesOption().getOpt() );
226
227 if ( values != null )
228 {
229 final List<String> includes = Arrays.asList( values );
230
231 for ( final Iterator<Module> it = modules.getModule().iterator(); it.hasNext(); )
232 {
233 final Module m = it.next();
234 if ( !includes.contains( m.getName() ) )
235 {
236 this.log( Level.INFO, this.getExcludingModuleInfo( this.getLocale(), m.getName() ), null );
237 it.remove();
238 }
239 else
240 {
241 this.log( Level.INFO, this.getIncludingModuleInfo( this.getLocale(), m.getName() ), null );
242 }
243 }
244 }
245 }
246
247 if ( commandLine.hasOption( this.getModuleExcludesOption().getOpt() ) )
248 {
249 final String[] values = commandLine.getOptionValues( this.getModuleExcludesOption().getOpt() );
250
251 if ( values != null )
252 {
253 for ( String exclude : values )
254 {
255 final Module m = modules.getModule( exclude );
256
257 if ( m != null )
258 {
259 this.log( Level.INFO, this.getExcludingModuleInfo( this.getLocale(), m.getName() ), null );
260 modules.getModule().remove( m );
261 }
262 }
263 }
264 }
265
266 Module classpathModule = null;
267 if ( !commandLine.hasOption( this.getNoClasspathResolutionOption().getOpt() ) )
268 {
269 classpathModule = modules.getClasspathModule( Modules.getDefaultClasspathModuleName(), classLoader );
270 if ( classpathModule != null && modules.getModule( Modules.getDefaultClasspathModuleName() ) == null )
271 {
272 modules.getModule().add( classpathModule );
273 }
274 else
275 {
276 classpathModule = null;
277 }
278 }
279
280 final ModelValidationReport validationReport = context.validateModel(
281 model, new JAXBSource( marshaller, new ObjectFactory().createModules( modules ) ) );
282
283 this.log( validationReport, marshaller );
284
285 if ( !validationReport.isModelValid() )
286 {
287 throw new CommandExecutionException( this.getInvalidModelMessage( this.getLocale(), model ) );
288 }
289
290 if ( classpathModule != null )
291 {
292 modules.getModule().remove( classpathModule );
293 }
294
295 Module mergedModule =
296 modules.getMergedModule( commandLine.getOptionValue( this.getModuleNameOption().getOpt() ) );
297
298 mergedModule.setVersion( moduleVersion );
299 mergedModule.setVendor( moduleVendor );
300
301 final File moduleFile = new File( commandLine.getOptionValue( this.getDocumentOption().getOpt() ) );
302
303 if ( stylesheetFile != null )
304 {
305 final Transformer transformer = this.createTransformer( new StreamSource( stylesheetFile ) );
306 final JAXBSource source =
307 new JAXBSource( marshaller, new ObjectFactory().createModule( mergedModule ) );
308
309 final JAXBResult result = new JAXBResult( unmarshaller );
310 unmarshaller.setSchema( null );
311 transformer.transform( source, result );
312
313 if ( result.getResult() instanceof JAXBElement<?>
314 && ( (JAXBElement<?>) result.getResult() ).getValue() instanceof Module )
315 {
316 mergedModule = (Module) ( (JAXBElement<?>) result.getResult() ).getValue();
317 }
318 else
319 {
320 throw new CommandExecutionException( this.getIllegalTransformationResultError(
321 this.getLocale(), stylesheetFile.getAbsolutePath() ) );
322
323 }
324 }
325
326 marshaller.setProperty( Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE );
327
328 if ( commandLine.hasOption( this.getDocumentEncodingOption().getOpt() ) )
329 {
330 marshaller.setProperty( Marshaller.JAXB_ENCODING,
331 commandLine.getOptionValue( this.getDocumentEncodingOption().getOpt() ) );
332
333 }
334
335 marshaller.setSchema( context.createSchema( model ) );
336 marshaller.marshal( new ObjectFactory().createModule( mergedModule ), moduleFile );
337
338 if ( this.isLoggable( Level.INFO ) )
339 {
340 this.log( Level.INFO, this.getWriteInfo( this.getLocale(), moduleFile.getAbsolutePath() ), null );
341 }
342
343 suppressExceptionOnClose = false;
344 }
345 catch ( final IOException e )
346 {
347 throw new CommandExecutionException( getExceptionMessage( e ), e );
348 }
349 catch ( final TransformerException e )
350 {
351 String message = getExceptionMessage( e );
352 if ( message == null )
353 {
354 message = getExceptionMessage( e.getException() );
355 }
356
357 throw new CommandExecutionException( message, e );
358 }
359 catch ( final JAXBException e )
360 {
361 String message = getExceptionMessage( e );
362 if ( message == null )
363 {
364 message = getExceptionMessage( e.getLinkedException() );
365 }
366
367 throw new CommandExecutionException( message, e );
368 }
369 catch ( final ModelException e )
370 {
371 throw new CommandExecutionException( getExceptionMessage( e ), e );
372 }
373 finally
374 {
375 try
376 {
377 if ( classLoader != null )
378 {
379 classLoader.close();
380 }
381 }
382 catch ( final IOException e )
383 {
384 if ( suppressExceptionOnClose )
385 {
386 this.log( Level.SEVERE, getExceptionMessage( e ), e );
387 }
388 else
389 {
390 throw new CommandExecutionException( getExceptionMessage( e ), e );
391 }
392 }
393 }
394 }
395
396
397
398
399
400 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
401 public MergeModulesCommand()
402 {
403
404 super();
405
406 }
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
424 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
425 private org.apache.commons.cli.Option getClasspathOption()
426 {
427 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Classpath Option" );
428 assert _d != null : "'Classpath Option' dependency not found.";
429 return _d;
430 }
431
432
433
434
435
436
437
438
439
440
441
442
443 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
444 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
445 private org.apache.commons.cli.Option getDocumentEncodingOption()
446 {
447 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Document Encoding Option" );
448 assert _d != null : "'Document Encoding Option' dependency not found.";
449 return _d;
450 }
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
478 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
479 private org.apache.commons.cli.Option getDocumentOption()
480 {
481 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Document Option" );
482 assert _d != null : "'Document Option' dependency not found.";
483 return _d;
484 }
485
486
487
488
489
490
491
492
493
494
495
496
497 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
498 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
499 private org.apache.commons.cli.Option getDocumentsOption()
500 {
501 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Documents Option" );
502 assert _d != null : "'Documents Option' dependency not found.";
503 return _d;
504 }
505
506
507
508
509
510
511
512
513
514
515
516
517 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
518 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
519 private java.util.Locale getLocale()
520 {
521 final java.util.Locale _d = (java.util.Locale) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Locale" );
522 assert _d != null : "'Locale' dependency not found.";
523 return _d;
524 }
525
526
527
528
529
530
531
532
533
534
535
536
537 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
538 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
539 private org.apache.commons.cli.Option getModelContextFactoryOption()
540 {
541 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Model Context Factory Option" );
542 assert _d != null : "'Model Context Factory Option' dependency not found.";
543 return _d;
544 }
545
546
547
548
549
550
551
552
553
554
555
556
557 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
558 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
559 private org.apache.commons.cli.Option getModelOption()
560 {
561 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Model Option" );
562 assert _d != null : "'Model Option' dependency not found.";
563 return _d;
564 }
565
566
567
568
569
570
571
572
573
574
575
576
577 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
578 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
579 private org.apache.commons.cli.Option getModletLocationOption()
580 {
581 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Modlet Location Option" );
582 assert _d != null : "'Modlet Location Option' dependency not found.";
583 return _d;
584 }
585
586
587
588
589
590
591
592
593
594
595
596
597 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
598 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
599 private org.apache.commons.cli.Option getModletSchemaSystemIdOption()
600 {
601 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Modlet Schema System Id Option" );
602 assert _d != null : "'Modlet Schema System Id Option' dependency not found.";
603 return _d;
604 }
605
606
607
608
609
610
611
612
613
614
615
616
617 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
618 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
619 private org.apache.commons.cli.Option getModuleExcludesOption()
620 {
621 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Module Excludes Option" );
622 assert _d != null : "'Module Excludes Option' dependency not found.";
623 return _d;
624 }
625
626
627
628
629
630
631
632
633
634
635
636
637 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
638 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
639 private org.apache.commons.cli.Option getModuleIncludesOption()
640 {
641 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Module Includes Option" );
642 assert _d != null : "'Module Includes Option' dependency not found.";
643 return _d;
644 }
645
646
647
648
649
650
651
652
653
654
655
656
657 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
658 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
659 private org.apache.commons.cli.Option getModuleLocationOption()
660 {
661 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Module Location Option" );
662 assert _d != null : "'Module Location Option' dependency not found.";
663 return _d;
664 }
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
692 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
693 private org.apache.commons.cli.Option getModuleNameOption()
694 {
695 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Module Name Option" );
696 assert _d != null : "'Module Name Option' dependency not found.";
697 return _d;
698 }
699
700
701
702
703
704
705
706
707
708
709
710
711 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
712 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
713 private org.apache.commons.cli.Option getModuleVendorOption()
714 {
715 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Module Vendor Option" );
716 assert _d != null : "'Module Vendor Option' dependency not found.";
717 return _d;
718 }
719
720
721
722
723
724
725
726
727
728
729
730
731 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
732 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
733 private org.apache.commons.cli.Option getModuleVersionOption()
734 {
735 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Module Version Option" );
736 assert _d != null : "'Module Version Option' dependency not found.";
737 return _d;
738 }
739
740
741
742
743
744
745
746
747
748
749
750
751 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
752 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
753 private org.apache.commons.cli.Option getNoClasspathResolutionOption()
754 {
755 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "No Classpath Resolution Option" );
756 assert _d != null : "'No Classpath Resolution Option' dependency not found.";
757 return _d;
758 }
759
760
761
762
763
764
765
766
767
768
769
770
771 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
772 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
773 private org.apache.commons.cli.Option getNoJavaValidationOption()
774 {
775 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "No Java Validation Option" );
776 assert _d != null : "'No Java Validation Option' dependency not found.";
777 return _d;
778 }
779
780
781
782
783
784
785
786
787
788
789
790
791 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
792 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
793 private org.apache.commons.cli.Option getNoModelProcessingOption()
794 {
795 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "No Model Processing Option" );
796 assert _d != null : "'No Model Processing Option' dependency not found.";
797 return _d;
798 }
799
800
801
802
803
804
805
806
807
808
809
810
811 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
812 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
813 private org.apache.commons.cli.Option getNoModelResourceValidation()
814 {
815 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "No Model Resource Validation" );
816 assert _d != null : "'No Model Resource Validation' dependency not found.";
817 return _d;
818 }
819
820
821
822
823
824
825
826
827
828
829
830
831 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
832 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
833 private org.apache.commons.cli.Option getNoModletResourceValidation()
834 {
835 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "No Modlet Resource Validation" );
836 assert _d != null : "'No Modlet Resource Validation' dependency not found.";
837 return _d;
838 }
839
840
841
842
843
844
845
846
847
848
849
850
851 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
852 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
853 private org.apache.commons.cli.Option getPlatformProviderLocationOption()
854 {
855 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Platform Provider Location Option" );
856 assert _d != null : "'Platform Provider Location Option' dependency not found.";
857 return _d;
858 }
859
860
861
862
863
864
865
866
867
868
869
870
871 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
872 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
873 private org.apache.commons.cli.Option getProviderLocationOption()
874 {
875 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Provider Location Option" );
876 assert _d != null : "'Provider Location Option' dependency not found.";
877 return _d;
878 }
879
880
881
882
883
884
885
886
887
888
889
890
891 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
892 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
893 private org.apache.commons.cli.Option getResourcesOption()
894 {
895 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Resources Option" );
896 assert _d != null : "'Resources Option' dependency not found.";
897 return _d;
898 }
899
900
901
902
903
904
905
906
907
908
909
910
911 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
912 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
913 private org.apache.commons.cli.Option getStylesheetOption()
914 {
915 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Stylesheet Option" );
916 assert _d != null : "'Stylesheet Option' dependency not found.";
917 return _d;
918 }
919
920
921
922
923
924
925
926
927
928
929
930
931 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
932 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
933 private org.apache.commons.cli.Option getTransformerLocationOption()
934 {
935 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Transformer Location Option" );
936 assert _d != null : "'Transformer Location Option' dependency not found.";
937 return _d;
938 }
939
940
941
942
943
944
945
946
947
948
949
950
951 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
952 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
953 private java.lang.String getAbbreviatedCommandName()
954 {
955 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Abbreviated Command Name" );
956 assert _p != null : "'Abbreviated Command Name' property not found.";
957 return _p;
958 }
959
960
961
962
963
964
965
966
967 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
968 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
969 private java.lang.String getApplicationModlet()
970 {
971 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Application Modlet" );
972 assert _p != null : "'Application Modlet' property not found.";
973 return _p;
974 }
975
976
977
978
979
980
981
982
983 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
984 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
985 private java.lang.String getCommandName()
986 {
987 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Command Name" );
988 assert _p != null : "'Command Name' property not found.";
989 return _p;
990 }
991
992
993
994
995
996
997
998
999 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1000 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1001 private java.lang.String getModletExcludes()
1002 {
1003 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Modlet Excludes" );
1004 assert _p != null : "'Modlet Excludes' property not found.";
1005 return _p;
1006 }
1007
1008
1009
1010
1011
1012
1013
1014
1015 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1016 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1017 private java.lang.String getProviderExcludes()
1018 {
1019 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Provider Excludes" );
1020 assert _p != null : "'Provider Excludes' property not found.";
1021 return _p;
1022 }
1023
1024
1025
1026
1027
1028
1029
1030
1031 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1032 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1033 private java.lang.String getSchemaExcludes()
1034 {
1035 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Schema Excludes" );
1036 assert _p != null : "'Schema Excludes' property not found.";
1037 return _p;
1038 }
1039
1040
1041
1042
1043
1044
1045
1046
1047 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1048 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1049 private java.lang.String getServiceExcludes()
1050 {
1051 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Service Excludes" );
1052 assert _p != null : "'Service Excludes' property not found.";
1053 return _p;
1054 }
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1071 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1072 private String getApplicationTitle( final java.util.Locale locale )
1073 {
1074 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Application Title", locale );
1075 assert _m != null : "'Application Title' message not found.";
1076 return _m;
1077 }
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1093 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1094 private String getCannotProcessMessage( final java.util.Locale locale, final java.lang.String itemInfo, final java.lang.String detailMessage )
1095 {
1096 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Cannot Process Message", locale, itemInfo, detailMessage );
1097 assert _m != null : "'Cannot Process Message' message not found.";
1098 return _m;
1099 }
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1114 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1115 private String getClasspathElementInfo( final java.util.Locale locale, final java.lang.String classpathElement )
1116 {
1117 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Classpath Element Info", locale, classpathElement );
1118 assert _m != null : "'Classpath Element Info' message not found.";
1119 return _m;
1120 }
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1135 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1136 private String getClasspathElementNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName )
1137 {
1138 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Classpath Element Not Found Warning", locale, fileName );
1139 assert _m != null : "'Classpath Element Not Found Warning' message not found.";
1140 return _m;
1141 }
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1156 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1157 private String getCommandFailureMessage( final java.util.Locale locale, final java.lang.String toolName )
1158 {
1159 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Command Failure Message", locale, toolName );
1160 assert _m != null : "'Command Failure Message' message not found.";
1161 return _m;
1162 }
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1177 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1178 private String getCommandInfoMessage( final java.util.Locale locale, final java.lang.String toolName )
1179 {
1180 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Command Info Message", locale, toolName );
1181 assert _m != null : "'Command Info Message' message not found.";
1182 return _m;
1183 }
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1198 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1199 private String getCommandSuccessMessage( final java.util.Locale locale, final java.lang.String toolName )
1200 {
1201 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Command Success Message", locale, toolName );
1202 assert _m != null : "'Command Success Message' message not found.";
1203 return _m;
1204 }
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1219 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1220 private String getDefaultLogLevelInfo( final java.util.Locale locale, final java.lang.String defaultLogLevel )
1221 {
1222 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Default Log Level Info", locale, defaultLogLevel );
1223 assert _m != null : "'Default Log Level Info' message not found.";
1224 return _m;
1225 }
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1240 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1241 private String getDocumentFileInfo( final java.util.Locale locale, final java.lang.String documentFile )
1242 {
1243 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Document File Info", locale, documentFile );
1244 assert _m != null : "'Document File Info' message not found.";
1245 return _m;
1246 }
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1261 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1262 private String getDocumentFileNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName )
1263 {
1264 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Document File Not Found Warning", locale, fileName );
1265 assert _m != null : "'Document File Not Found Warning' message not found.";
1266 return _m;
1267 }
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1283 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1284 private String getExcludedModletInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String modletIdentifier )
1285 {
1286 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Modlet Info", locale, resourceName, modletIdentifier );
1287 assert _m != null : "'Excluded Modlet Info' message not found.";
1288 return _m;
1289 }
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1305 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1306 private String getExcludedProviderInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String providerName )
1307 {
1308 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Provider Info", locale, resourceName, providerName );
1309 assert _m != null : "'Excluded Provider Info' message not found.";
1310 return _m;
1311 }
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1327 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1328 private String getExcludedSchemaInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String contextId )
1329 {
1330 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Schema Info", locale, resourceName, contextId );
1331 assert _m != null : "'Excluded Schema Info' message not found.";
1332 return _m;
1333 }
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1349 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1350 private String getExcludedServiceInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String serviceName )
1351 {
1352 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Service Info", locale, resourceName, serviceName );
1353 assert _m != null : "'Excluded Service Info' message not found.";
1354 return _m;
1355 }
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1370 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1371 private String getExcludingModuleInfo( final java.util.Locale locale, final java.lang.String moduleName )
1372 {
1373 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluding Module Info", locale, moduleName );
1374 assert _m != null : "'Excluding Module Info' message not found.";
1375 return _m;
1376 }
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1391 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1392 private String getIllegalTransformationResultError( final java.util.Locale locale, final java.lang.String stylesheetInfo )
1393 {
1394 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Illegal Transformation Result Error", locale, stylesheetInfo );
1395 assert _m != null : "'Illegal Transformation Result Error' message not found.";
1396 return _m;
1397 }
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1412 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1413 private String getIncludingModuleInfo( final java.util.Locale locale, final java.lang.String moduleName )
1414 {
1415 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Including Module Info", locale, moduleName );
1416 assert _m != null : "'Including Module Info' message not found.";
1417 return _m;
1418 }
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1433 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1434 private String getInvalidModelMessage( final java.util.Locale locale, final java.lang.String modelIdentifier )
1435 {
1436 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Invalid Model Message", locale, modelIdentifier );
1437 assert _m != null : "'Invalid Model Message' message not found.";
1438 return _m;
1439 }
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1453 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1454 private String getLongDescriptionMessage( final java.util.Locale locale )
1455 {
1456 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Long Description Message", locale );
1457 assert _m != null : "'Long Description Message' message not found.";
1458 return _m;
1459 }
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1474 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1475 private String getReadingMessage( final java.util.Locale locale, final java.lang.String locationInfo )
1476 {
1477 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Reading Message", locale, locationInfo );
1478 assert _m != null : "'Reading Message' message not found.";
1479 return _m;
1480 }
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1493 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1494 private String getSeparator( final java.util.Locale locale )
1495 {
1496 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Separator", locale );
1497 assert _m != null : "'Separator' message not found.";
1498 return _m;
1499 }
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1513 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1514 private String getShortDescriptionMessage( final java.util.Locale locale )
1515 {
1516 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Short Description Message", locale );
1517 assert _m != null : "'Short Description Message' message not found.";
1518 return _m;
1519 }
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1534 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1535 private String getWriteInfo( final java.util.Locale locale, final java.lang.String fileName )
1536 {
1537 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Write Info", locale, fileName );
1538 assert _m != null : "'Write Info' message not found.";
1539 return _m;
1540 }
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1654 @Override
1655 public org.apache.commons.cli.Options getOptions()
1656 {
1657 final org.apache.commons.cli.Options options = new org.apache.commons.cli.Options();
1658 options.addOption( this.getClasspathOption() );
1659 options.addOption( this.getDocumentEncodingOption() );
1660 options.addOption( this.getDocumentOption() );
1661 options.addOption( this.getDocumentsOption() );
1662 options.addOption( this.getModelContextFactoryOption() );
1663 options.addOption( this.getModelOption() );
1664 options.addOption( this.getModletLocationOption() );
1665 options.addOption( this.getModletSchemaSystemIdOption() );
1666 options.addOption( this.getModuleExcludesOption() );
1667 options.addOption( this.getModuleIncludesOption() );
1668 options.addOption( this.getModuleLocationOption() );
1669 options.addOption( this.getModuleNameOption() );
1670 options.addOption( this.getModuleVendorOption() );
1671 options.addOption( this.getModuleVersionOption() );
1672 options.addOption( this.getNoClasspathResolutionOption() );
1673 options.addOption( this.getNoJavaValidationOption() );
1674 options.addOption( this.getNoModelProcessingOption() );
1675 options.addOption( this.getNoModelResourceValidation() );
1676 options.addOption( this.getNoModletResourceValidation() );
1677 options.addOption( this.getPlatformProviderLocationOption() );
1678 options.addOption( this.getProviderLocationOption() );
1679 options.addOption( this.getResourcesOption() );
1680 options.addOption( this.getStylesheetOption() );
1681 options.addOption( this.getTransformerLocationOption() );
1682 return options;
1683 }
1684
1685
1686 }