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