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