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