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.util.logging.Level;
40 import javax.xml.bind.JAXBElement;
41 import javax.xml.bind.JAXBException;
42 import javax.xml.bind.Unmarshaller;
43 import org.apache.commons.cli.CommandLine;
44 import org.jomc.model.Module;
45 import org.jomc.model.Modules;
46 import org.jomc.model.modlet.DefaultModelProcessor;
47 import org.jomc.model.modlet.DefaultModelProvider;
48 import org.jomc.model.modlet.ModelHelper;
49 import org.jomc.modlet.Model;
50 import org.jomc.modlet.ModelContext;
51 import org.jomc.modlet.ModelException;
52 import org.jomc.tools.modlet.ToolsModelProcessor;
53 import org.jomc.tools.modlet.ToolsModelProvider;
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
78
79
80 public abstract class AbstractModelCommand extends AbstractModletCommand
81 {
82
83
84
85
86
87 @Override
88 protected ModelContext createModelContext( final CommandLine commandLine, final ClassLoader classLoader )
89 throws CommandExecutionException
90 {
91 if ( commandLine == null )
92 {
93 throw new NullPointerException( "commandLine" );
94 }
95
96 final ModelContext modelContext = super.createModelContext( commandLine, classLoader );
97
98 if ( commandLine.hasOption( this.getTransformerLocationOption().getOpt() ) )
99 {
100 modelContext.setAttribute( DefaultModelProcessor.TRANSFORMER_LOCATION_ATTRIBUTE_NAME,
101 commandLine.getOptionValue( this.getTransformerLocationOption().getOpt() ) );
102
103 }
104
105 if ( commandLine.hasOption( this.getModuleLocationOption().getOpt() ) )
106 {
107 modelContext.setAttribute( DefaultModelProvider.MODULE_LOCATION_ATTRIBUTE_NAME,
108 commandLine.getOptionValue( this.getModuleLocationOption().getOpt() ) );
109
110 }
111
112 modelContext.setAttribute( ToolsModelProvider.MODEL_OBJECT_CLASSPATH_RESOLUTION_ENABLED_ATTRIBUTE_NAME,
113 !commandLine.hasOption( this.getNoClasspathResolutionOption().getOpt() ) );
114
115 modelContext.setAttribute( ToolsModelProcessor.MODEL_OBJECT_CLASSPATH_RESOLUTION_ENABLED_ATTRIBUTE_NAME,
116 !commandLine.hasOption( this.getNoClasspathResolutionOption().getOpt() ) );
117
118 modelContext.setAttribute( DefaultModelProvider.VALIDATING_ATTRIBUTE_NAME,
119 !commandLine.hasOption( this.getNoModelResourceValidation().getOpt() ) );
120
121 return modelContext;
122 }
123
124
125
126
127
128
129
130
131
132
133
134 protected Model getModel( final ModelContext context, final CommandLine commandLine )
135 throws CommandExecutionException
136 {
137 try
138 {
139 Model model = new Model();
140 model.setIdentifier( this.getModel( commandLine ) );
141 Modules modules = new Modules();
142 ModelHelper.setModules( model, modules );
143
144 if ( commandLine.hasOption( this.getDocumentsOption().getOpt() ) )
145 {
146 final Unmarshaller u = context.createUnmarshaller( model.getIdentifier() );
147
148 if ( !commandLine.hasOption( this.getNoModelResourceValidation().getOpt() ) )
149 {
150 u.setSchema( context.createSchema( model.getIdentifier() ) );
151 }
152
153 for ( File f : this.getDocumentFiles( commandLine ) )
154 {
155 if ( this.isLoggable( Level.FINEST ) )
156 {
157 this.log( Level.FINEST, this.getReadingMessage( this.getLocale(), f.getAbsolutePath() ), null );
158 }
159
160 Object o = u.unmarshal( f );
161 if ( o instanceof JAXBElement<?> )
162 {
163 o = ( (JAXBElement<?>) o ).getValue();
164 }
165
166 if ( o instanceof Module )
167 {
168 modules.getModule().add( (Module) o );
169 }
170 else if ( o instanceof Modules )
171 {
172 modules.getModule().addAll( ( (Modules) o ).getModule() );
173 }
174 else if ( this.isLoggable( Level.WARNING ) )
175 {
176 this.log( Level.WARNING, this.getCannotProcessMessage(
177 this.getLocale(), f.getAbsolutePath(), o.toString() ), null );
178
179 }
180 }
181 }
182
183 if ( commandLine.hasOption( this.getClasspathOption().getOpt() ) )
184 {
185 model = context.findModel( model );
186 modules = ModelHelper.getModules( model );
187 }
188
189 if ( modules != null && !commandLine.hasOption( this.getNoClasspathResolutionOption().getOpt() ) )
190 {
191 final Module classpathModule = modules.getClasspathModule(
192 Modules.getDefaultClasspathModuleName(), context.getClassLoader() );
193
194 if ( classpathModule != null && modules.getModule( classpathModule.getName() ) == null )
195 {
196 modules.getModule().add( classpathModule );
197 }
198 }
199
200 if ( !commandLine.hasOption( this.getNoModelProcessingOption().getOpt() ) )
201 {
202 model = context.processModel( model );
203 modules = ModelHelper.getModules( model );
204 }
205
206 assert modules != null : "Modules '" + this.getModel( commandLine ) + "' not found.";
207 return model;
208 }
209 catch ( final ModelException e )
210 {
211 throw new CommandExecutionException( getExceptionMessage( e ), e );
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 }
224
225
226
227
228
229 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
230 public AbstractModelCommand()
231 {
232
233 super();
234
235 }
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252 @SuppressWarnings("unused")
253 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
254 private org.apache.commons.cli.Option getClasspathOption()
255 {
256 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ClasspathOption" );
257 assert _d != null : "'ClasspathOption' dependency not found.";
258 return _d;
259 }
260
261
262
263
264
265
266
267
268
269
270
271
272 @SuppressWarnings("unused")
273 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
274 private org.apache.commons.cli.Option getDocumentsOption()
275 {
276 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "DocumentsOption" );
277 assert _d != null : "'DocumentsOption' dependency not found.";
278 return _d;
279 }
280
281
282
283
284
285
286
287
288
289
290
291
292 @SuppressWarnings("unused")
293 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
294 private java.util.Locale getLocale()
295 {
296 final java.util.Locale _d = (java.util.Locale) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Locale" );
297 assert _d != null : "'Locale' dependency not found.";
298 return _d;
299 }
300
301
302
303
304
305
306
307
308
309
310
311
312 @SuppressWarnings("unused")
313 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
314 private org.apache.commons.cli.Option getModelContextFactoryOption()
315 {
316 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModelContextFactoryOption" );
317 assert _d != null : "'ModelContextFactoryOption' dependency not found.";
318 return _d;
319 }
320
321
322
323
324
325
326
327
328
329
330
331
332 @SuppressWarnings("unused")
333 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
334 private org.apache.commons.cli.Option getModelOption()
335 {
336 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModelOption" );
337 assert _d != null : "'ModelOption' dependency not found.";
338 return _d;
339 }
340
341
342
343
344
345
346
347
348
349
350
351
352 @SuppressWarnings("unused")
353 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
354 private org.apache.commons.cli.Option getModletLocationOption()
355 {
356 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModletLocationOption" );
357 assert _d != null : "'ModletLocationOption' dependency not found.";
358 return _d;
359 }
360
361
362
363
364
365
366
367
368
369
370
371
372 @SuppressWarnings("unused")
373 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
374 private org.apache.commons.cli.Option getModletSchemaSystemIdOption()
375 {
376 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModletSchemaSystemIdOption" );
377 assert _d != null : "'ModletSchemaSystemIdOption' dependency not found.";
378 return _d;
379 }
380
381
382
383
384
385
386
387
388
389
390
391
392 @SuppressWarnings("unused")
393 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
394 private org.apache.commons.cli.Option getModuleLocationOption()
395 {
396 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModuleLocationOption" );
397 assert _d != null : "'ModuleLocationOption' dependency not found.";
398 return _d;
399 }
400
401
402
403
404
405
406
407
408
409
410
411
412 @SuppressWarnings("unused")
413 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
414 private org.apache.commons.cli.Option getNoClasspathResolutionOption()
415 {
416 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "NoClasspathResolutionOption" );
417 assert _d != null : "'NoClasspathResolutionOption' dependency not found.";
418 return _d;
419 }
420
421
422
423
424
425
426
427
428
429
430
431
432 @SuppressWarnings("unused")
433 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
434 private org.apache.commons.cli.Option getNoModelProcessingOption()
435 {
436 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "NoModelProcessingOption" );
437 assert _d != null : "'NoModelProcessingOption' dependency not found.";
438 return _d;
439 }
440
441
442
443
444
445
446
447
448
449
450
451
452 @SuppressWarnings("unused")
453 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
454 private org.apache.commons.cli.Option getNoModelResourceValidation()
455 {
456 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "NoModelResourceValidation" );
457 assert _d != null : "'NoModelResourceValidation' dependency not found.";
458 return _d;
459 }
460
461
462
463
464
465
466
467
468
469
470
471
472 @SuppressWarnings("unused")
473 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
474 private org.apache.commons.cli.Option getNoModletResourceValidation()
475 {
476 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "NoModletResourceValidation" );
477 assert _d != null : "'NoModletResourceValidation' dependency not found.";
478 return _d;
479 }
480
481
482
483
484
485
486
487
488
489
490
491
492 @SuppressWarnings("unused")
493 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
494 private org.apache.commons.cli.Option getPlatformProviderLocationOption()
495 {
496 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "PlatformProviderLocationOption" );
497 assert _d != null : "'PlatformProviderLocationOption' dependency not found.";
498 return _d;
499 }
500
501
502
503
504
505
506
507
508
509
510
511
512 @SuppressWarnings("unused")
513 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
514 private org.apache.commons.cli.Option getProviderLocationOption()
515 {
516 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ProviderLocationOption" );
517 assert _d != null : "'ProviderLocationOption' dependency not found.";
518 return _d;
519 }
520
521
522
523
524
525
526
527
528
529
530
531
532 @SuppressWarnings("unused")
533 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
534 private org.apache.commons.cli.Option getTransformerLocationOption()
535 {
536 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "TransformerLocationOption" );
537 assert _d != null : "'TransformerLocationOption' dependency not found.";
538 return _d;
539 }
540
541
542
543
544
545
546
547
548
549
550
551
552 @SuppressWarnings("unused")
553 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
554 private java.lang.String getAbbreviatedCommandName()
555 {
556 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "abbreviatedCommandName" );
557 assert _p != null : "'abbreviatedCommandName' property not found.";
558 return _p;
559 }
560
561
562
563
564
565
566
567
568 @SuppressWarnings("unused")
569 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
570 private java.lang.String getApplicationModlet()
571 {
572 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "applicationModlet" );
573 assert _p != null : "'applicationModlet' property not found.";
574 return _p;
575 }
576
577
578
579
580
581
582
583
584 @SuppressWarnings("unused")
585 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
586 private java.lang.String getCommandName()
587 {
588 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "commandName" );
589 assert _p != null : "'commandName' property not found.";
590 return _p;
591 }
592
593
594
595
596
597
598
599
600 @SuppressWarnings("unused")
601 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
602 private java.lang.String getModletExcludes()
603 {
604 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "modletExcludes" );
605 assert _p != null : "'modletExcludes' property not found.";
606 return _p;
607 }
608
609
610
611
612
613
614
615
616 @SuppressWarnings("unused")
617 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
618 private java.lang.String getProviderExcludes()
619 {
620 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "providerExcludes" );
621 assert _p != null : "'providerExcludes' property not found.";
622 return _p;
623 }
624
625
626
627
628
629
630
631
632 @SuppressWarnings("unused")
633 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
634 private java.lang.String getSchemaExcludes()
635 {
636 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "schemaExcludes" );
637 assert _p != null : "'schemaExcludes' property not found.";
638 return _p;
639 }
640
641
642
643
644
645
646
647
648 @SuppressWarnings("unused")
649 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
650 private java.lang.String getServiceExcludes()
651 {
652 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "serviceExcludes" );
653 assert _p != null : "'serviceExcludes' property not found.";
654 return _p;
655 }
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671 @SuppressWarnings("unused")
672 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
673 private String getApplicationTitle( final java.util.Locale locale )
674 {
675 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "applicationTitle", locale );
676 assert _m != null : "'applicationTitle' message not found.";
677 return _m;
678 }
679
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.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
695 private String getCannotProcessMessage( final java.util.Locale locale, final java.lang.String itemInfo, final java.lang.String detailMessage )
696 {
697 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "cannotProcessMessage", locale, itemInfo, detailMessage );
698 assert _m != null : "'cannotProcessMessage' message not found.";
699 return _m;
700 }
701
702
703
704
705
706
707
708
709
710
711
712
713
714 @SuppressWarnings("unused")
715 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
716 private String getClasspathElementInfo( final java.util.Locale locale, final java.lang.String classpathElement )
717 {
718 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathElementInfo", locale, classpathElement );
719 assert _m != null : "'classpathElementInfo' message not found.";
720 return _m;
721 }
722
723
724
725
726
727
728
729
730
731
732
733
734
735 @SuppressWarnings("unused")
736 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
737 private String getClasspathElementNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName )
738 {
739 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathElementNotFoundWarning", locale, fileName );
740 assert _m != null : "'classpathElementNotFoundWarning' message not found.";
741 return _m;
742 }
743
744
745
746
747
748
749
750
751
752
753
754
755
756 @SuppressWarnings("unused")
757 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
758 private String getCommandFailureMessage( final java.util.Locale locale, final java.lang.String toolName )
759 {
760 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "commandFailureMessage", locale, toolName );
761 assert _m != null : "'commandFailureMessage' message not found.";
762 return _m;
763 }
764
765
766
767
768
769
770
771
772
773
774
775
776
777 @SuppressWarnings("unused")
778 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
779 private String getCommandInfoMessage( final java.util.Locale locale, final java.lang.String toolName )
780 {
781 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "commandInfoMessage", locale, toolName );
782 assert _m != null : "'commandInfoMessage' message not found.";
783 return _m;
784 }
785
786
787
788
789
790
791
792
793
794
795
796
797
798 @SuppressWarnings("unused")
799 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
800 private String getCommandSuccessMessage( final java.util.Locale locale, final java.lang.String toolName )
801 {
802 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "commandSuccessMessage", locale, toolName );
803 assert _m != null : "'commandSuccessMessage' message not found.";
804 return _m;
805 }
806
807
808
809
810
811
812
813
814
815
816
817
818
819 @SuppressWarnings("unused")
820 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
821 private String getDefaultLogLevelInfo( final java.util.Locale locale, final java.lang.String defaultLogLevel )
822 {
823 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "defaultLogLevelInfo", locale, defaultLogLevel );
824 assert _m != null : "'defaultLogLevelInfo' message not found.";
825 return _m;
826 }
827
828
829
830
831
832
833
834
835
836
837
838
839
840 @SuppressWarnings("unused")
841 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
842 private String getDocumentFileInfo( final java.util.Locale locale, final java.lang.String documentFile )
843 {
844 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentFileInfo", locale, documentFile );
845 assert _m != null : "'documentFileInfo' message not found.";
846 return _m;
847 }
848
849
850
851
852
853
854
855
856
857
858
859
860
861 @SuppressWarnings("unused")
862 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
863 private String getDocumentFileNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName )
864 {
865 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentFileNotFoundWarning", locale, fileName );
866 assert _m != null : "'documentFileNotFoundWarning' message not found.";
867 return _m;
868 }
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883 @SuppressWarnings("unused")
884 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
885 private String getExcludedModletInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String modletIdentifier )
886 {
887 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedModletInfo", locale, resourceName, modletIdentifier );
888 assert _m != null : "'excludedModletInfo' message not found.";
889 return _m;
890 }
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905 @SuppressWarnings("unused")
906 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
907 private String getExcludedProviderInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String providerName )
908 {
909 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedProviderInfo", locale, resourceName, providerName );
910 assert _m != null : "'excludedProviderInfo' message not found.";
911 return _m;
912 }
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927 @SuppressWarnings("unused")
928 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
929 private String getExcludedSchemaInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String contextId )
930 {
931 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedSchemaInfo", locale, resourceName, contextId );
932 assert _m != null : "'excludedSchemaInfo' message not found.";
933 return _m;
934 }
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949 @SuppressWarnings("unused")
950 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
951 private String getExcludedServiceInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String serviceName )
952 {
953 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedServiceInfo", locale, resourceName, serviceName );
954 assert _m != null : "'excludedServiceInfo' message not found.";
955 return _m;
956 }
957
958
959
960
961
962
963
964
965
966
967
968
969
970 @SuppressWarnings("unused")
971 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
972 private String getInvalidModelMessage( final java.util.Locale locale, final java.lang.String modelIdentifier )
973 {
974 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "invalidModelMessage", locale, modelIdentifier );
975 assert _m != null : "'invalidModelMessage' message not found.";
976 return _m;
977 }
978
979
980
981
982
983
984
985
986
987
988
989 @SuppressWarnings("unused")
990 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
991 private String getLongDescriptionMessage( final java.util.Locale locale )
992 {
993 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "longDescriptionMessage", locale );
994 assert _m != null : "'longDescriptionMessage' message not found.";
995 return _m;
996 }
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010 @SuppressWarnings("unused")
1011 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
1012 private String getReadingMessage( final java.util.Locale locale, final java.lang.String locationInfo )
1013 {
1014 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "readingMessage", locale, locationInfo );
1015 assert _m != null : "'readingMessage' message not found.";
1016 return _m;
1017 }
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029 @SuppressWarnings("unused")
1030 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
1031 private String getSeparator( final java.util.Locale locale )
1032 {
1033 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "separator", locale );
1034 assert _m != null : "'separator' message not found.";
1035 return _m;
1036 }
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048 @SuppressWarnings("unused")
1049 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
1050 private String getShortDescriptionMessage( final java.util.Locale locale )
1051 {
1052 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "shortDescriptionMessage", locale );
1053 assert _m != null : "'shortDescriptionMessage' message not found.";
1054 return _m;
1055 }
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" )
1129 @Override
1130 public org.apache.commons.cli.Options getOptions()
1131 {
1132 final org.apache.commons.cli.Options options = new org.apache.commons.cli.Options();
1133 options.addOption( this.getClasspathOption() );
1134 options.addOption( this.getDocumentsOption() );
1135 options.addOption( this.getModelContextFactoryOption() );
1136 options.addOption( this.getModelOption() );
1137 options.addOption( this.getModletLocationOption() );
1138 options.addOption( this.getModletSchemaSystemIdOption() );
1139 options.addOption( this.getModuleLocationOption() );
1140 options.addOption( this.getNoClasspathResolutionOption() );
1141 options.addOption( this.getNoModelProcessingOption() );
1142 options.addOption( this.getNoModelResourceValidation() );
1143 options.addOption( this.getNoModletResourceValidation() );
1144 options.addOption( this.getPlatformProviderLocationOption() );
1145 options.addOption( this.getProviderLocationOption() );
1146 options.addOption( this.getTransformerLocationOption() );
1147 return options;
1148 }
1149
1150
1151 }