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.2.3", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.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.2.3", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.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 @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" )
253 private org.apache.commons.cli.Option getClasspathOption()
254 {
255 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ClasspathOption" );
256 assert _d != null : "'ClasspathOption' dependency not found.";
257 return _d;
258 }
259
260
261
262
263
264
265
266
267
268
269
270
271 @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" )
272 private org.apache.commons.cli.Option getDocumentsOption()
273 {
274 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "DocumentsOption" );
275 assert _d != null : "'DocumentsOption' dependency not found.";
276 return _d;
277 }
278
279
280
281
282
283
284
285
286
287
288
289
290 @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" )
291 private java.util.Locale getLocale()
292 {
293 final java.util.Locale _d = (java.util.Locale) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Locale" );
294 assert _d != null : "'Locale' dependency not found.";
295 return _d;
296 }
297
298
299
300
301
302
303
304
305
306
307
308
309 @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" )
310 private org.apache.commons.cli.Option getModelContextFactoryOption()
311 {
312 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModelContextFactoryOption" );
313 assert _d != null : "'ModelContextFactoryOption' dependency not found.";
314 return _d;
315 }
316
317
318
319
320
321
322
323
324
325
326
327
328 @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" )
329 private org.apache.commons.cli.Option getModelOption()
330 {
331 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModelOption" );
332 assert _d != null : "'ModelOption' dependency not found.";
333 return _d;
334 }
335
336
337
338
339
340
341
342
343
344
345
346
347 @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" )
348 private org.apache.commons.cli.Option getModletLocationOption()
349 {
350 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModletLocationOption" );
351 assert _d != null : "'ModletLocationOption' dependency not found.";
352 return _d;
353 }
354
355
356
357
358
359
360
361
362
363
364
365
366 @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" )
367 private org.apache.commons.cli.Option getModletSchemaSystemIdOption()
368 {
369 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModletSchemaSystemIdOption" );
370 assert _d != null : "'ModletSchemaSystemIdOption' dependency not found.";
371 return _d;
372 }
373
374
375
376
377
378
379
380
381
382
383
384
385 @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" )
386 private org.apache.commons.cli.Option getModuleLocationOption()
387 {
388 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModuleLocationOption" );
389 assert _d != null : "'ModuleLocationOption' dependency not found.";
390 return _d;
391 }
392
393
394
395
396
397
398
399
400
401
402
403
404 @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" )
405 private org.apache.commons.cli.Option getNoClasspathResolutionOption()
406 {
407 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "NoClasspathResolutionOption" );
408 assert _d != null : "'NoClasspathResolutionOption' dependency not found.";
409 return _d;
410 }
411
412
413
414
415
416
417
418
419
420
421
422
423 @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" )
424 private org.apache.commons.cli.Option getNoModelProcessingOption()
425 {
426 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "NoModelProcessingOption" );
427 assert _d != null : "'NoModelProcessingOption' dependency not found.";
428 return _d;
429 }
430
431
432
433
434
435
436
437
438
439
440
441
442 @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" )
443 private org.apache.commons.cli.Option getNoModelResourceValidation()
444 {
445 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "NoModelResourceValidation" );
446 assert _d != null : "'NoModelResourceValidation' dependency not found.";
447 return _d;
448 }
449
450
451
452
453
454
455
456
457
458
459
460
461 @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" )
462 private org.apache.commons.cli.Option getNoModletResourceValidation()
463 {
464 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "NoModletResourceValidation" );
465 assert _d != null : "'NoModletResourceValidation' dependency not found.";
466 return _d;
467 }
468
469
470
471
472
473
474
475
476
477
478
479
480 @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" )
481 private org.apache.commons.cli.Option getPlatformProviderLocationOption()
482 {
483 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "PlatformProviderLocationOption" );
484 assert _d != null : "'PlatformProviderLocationOption' dependency not found.";
485 return _d;
486 }
487
488
489
490
491
492
493
494
495
496
497
498
499 @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" )
500 private org.apache.commons.cli.Option getProviderLocationOption()
501 {
502 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ProviderLocationOption" );
503 assert _d != null : "'ProviderLocationOption' dependency not found.";
504 return _d;
505 }
506
507
508
509
510
511
512
513
514
515
516
517
518 @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" )
519 private org.apache.commons.cli.Option getTransformerLocationOption()
520 {
521 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "TransformerLocationOption" );
522 assert _d != null : "'TransformerLocationOption' dependency not found.";
523 return _d;
524 }
525
526
527
528
529
530
531
532
533
534
535
536
537 @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" )
538 private java.lang.String getAbbreviatedCommandName()
539 {
540 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "abbreviatedCommandName" );
541 assert _p != null : "'abbreviatedCommandName' property not found.";
542 return _p;
543 }
544
545
546
547
548
549
550
551
552 @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" )
553 private java.lang.String getApplicationModlet()
554 {
555 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "applicationModlet" );
556 assert _p != null : "'applicationModlet' property not found.";
557 return _p;
558 }
559
560
561
562
563
564
565
566
567 @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" )
568 private java.lang.String getCommandName()
569 {
570 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "commandName" );
571 assert _p != null : "'commandName' property not found.";
572 return _p;
573 }
574
575
576
577
578
579
580
581
582 @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" )
583 private java.lang.String getModletExcludes()
584 {
585 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "modletExcludes" );
586 assert _p != null : "'modletExcludes' property not found.";
587 return _p;
588 }
589
590
591
592
593
594
595
596
597 @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" )
598 private java.lang.String getProviderExcludes()
599 {
600 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "providerExcludes" );
601 assert _p != null : "'providerExcludes' property not found.";
602 return _p;
603 }
604
605
606
607
608
609
610
611
612 @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" )
613 private java.lang.String getSchemaExcludes()
614 {
615 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "schemaExcludes" );
616 assert _p != null : "'schemaExcludes' property not found.";
617 return _p;
618 }
619
620
621
622
623
624
625
626
627 @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" )
628 private java.lang.String getServiceExcludes()
629 {
630 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "serviceExcludes" );
631 assert _p != null : "'serviceExcludes' property not found.";
632 return _p;
633 }
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649 @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" )
650 private String getApplicationTitle( final java.util.Locale locale )
651 {
652 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "applicationTitle", locale );
653 assert _m != null : "'applicationTitle' message not found.";
654 return _m;
655 }
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670 @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" )
671 private String getCannotProcessMessage( final java.util.Locale locale, final java.lang.String itemInfo, final java.lang.String detailMessage )
672 {
673 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "cannotProcessMessage", locale, itemInfo, detailMessage );
674 assert _m != null : "'cannotProcessMessage' message not found.";
675 return _m;
676 }
677
678
679
680
681
682
683
684
685
686
687
688
689
690 @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" )
691 private String getClasspathElementInfo( final java.util.Locale locale, final java.lang.String classpathElement )
692 {
693 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathElementInfo", locale, classpathElement );
694 assert _m != null : "'classpathElementInfo' message not found.";
695 return _m;
696 }
697
698
699
700
701
702
703
704
705
706
707
708
709
710 @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" )
711 private String getClasspathElementNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName )
712 {
713 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathElementNotFoundWarning", locale, fileName );
714 assert _m != null : "'classpathElementNotFoundWarning' message not found.";
715 return _m;
716 }
717
718
719
720
721
722
723
724
725
726
727
728
729
730 @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" )
731 private String getCommandFailureMessage( final java.util.Locale locale, final java.lang.String toolName )
732 {
733 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "commandFailureMessage", locale, toolName );
734 assert _m != null : "'commandFailureMessage' message not found.";
735 return _m;
736 }
737
738
739
740
741
742
743
744
745
746
747
748
749
750 @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" )
751 private String getCommandInfoMessage( final java.util.Locale locale, final java.lang.String toolName )
752 {
753 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "commandInfoMessage", locale, toolName );
754 assert _m != null : "'commandInfoMessage' message not found.";
755 return _m;
756 }
757
758
759
760
761
762
763
764
765
766
767
768
769
770 @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" )
771 private String getCommandSuccessMessage( final java.util.Locale locale, final java.lang.String toolName )
772 {
773 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "commandSuccessMessage", locale, toolName );
774 assert _m != null : "'commandSuccessMessage' message not found.";
775 return _m;
776 }
777
778
779
780
781
782
783
784
785
786
787
788
789
790 @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" )
791 private String getDefaultLogLevelInfo( final java.util.Locale locale, final java.lang.String defaultLogLevel )
792 {
793 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "defaultLogLevelInfo", locale, defaultLogLevel );
794 assert _m != null : "'defaultLogLevelInfo' message not found.";
795 return _m;
796 }
797
798
799
800
801
802
803
804
805
806
807
808
809
810 @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" )
811 private String getDocumentFileInfo( final java.util.Locale locale, final java.lang.String documentFile )
812 {
813 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentFileInfo", locale, documentFile );
814 assert _m != null : "'documentFileInfo' message not found.";
815 return _m;
816 }
817
818
819
820
821
822
823
824
825
826
827
828
829
830 @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" )
831 private String getDocumentFileNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName )
832 {
833 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentFileNotFoundWarning", locale, fileName );
834 assert _m != null : "'documentFileNotFoundWarning' message not found.";
835 return _m;
836 }
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851 @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" )
852 private String getExcludedModletInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String modletIdentifier )
853 {
854 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedModletInfo", locale, resourceName, modletIdentifier );
855 assert _m != null : "'excludedModletInfo' message not found.";
856 return _m;
857 }
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872 @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" )
873 private String getExcludedProviderInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String providerName )
874 {
875 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedProviderInfo", locale, resourceName, providerName );
876 assert _m != null : "'excludedProviderInfo' message not found.";
877 return _m;
878 }
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893 @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" )
894 private String getExcludedSchemaInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String contextId )
895 {
896 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedSchemaInfo", locale, resourceName, contextId );
897 assert _m != null : "'excludedSchemaInfo' message not found.";
898 return _m;
899 }
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914 @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" )
915 private String getExcludedServiceInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String serviceName )
916 {
917 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedServiceInfo", locale, resourceName, serviceName );
918 assert _m != null : "'excludedServiceInfo' message not found.";
919 return _m;
920 }
921
922
923
924
925
926
927
928
929
930
931
932
933
934 @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" )
935 private String getInvalidModelMessage( final java.util.Locale locale, final java.lang.String modelIdentifier )
936 {
937 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "invalidModelMessage", locale, modelIdentifier );
938 assert _m != null : "'invalidModelMessage' message not found.";
939 return _m;
940 }
941
942
943
944
945
946
947
948
949
950
951
952 @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" )
953 private String getLongDescriptionMessage( final java.util.Locale locale )
954 {
955 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "longDescriptionMessage", locale );
956 assert _m != null : "'longDescriptionMessage' message not found.";
957 return _m;
958 }
959
960
961
962
963
964
965
966
967
968
969
970
971
972 @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" )
973 private String getReadingMessage( final java.util.Locale locale, final java.lang.String locationInfo )
974 {
975 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "readingMessage", locale, locationInfo );
976 assert _m != null : "'readingMessage' message not found.";
977 return _m;
978 }
979
980
981
982
983
984
985
986
987
988
989
990 @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" )
991 private String getSeparator( final java.util.Locale locale )
992 {
993 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "separator", locale );
994 assert _m != null : "'separator' message not found.";
995 return _m;
996 }
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008 @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" )
1009 private String getShortDescriptionMessage( final java.util.Locale locale )
1010 {
1011 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "shortDescriptionMessage", locale );
1012 assert _m != null : "'shortDescriptionMessage' message not found.";
1013 return _m;
1014 }
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
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 @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" )
1088 @Override
1089 public org.apache.commons.cli.Options getOptions()
1090 {
1091 final org.apache.commons.cli.Options options = new org.apache.commons.cli.Options();
1092 options.addOption( this.getClasspathOption() );
1093 options.addOption( this.getDocumentsOption() );
1094 options.addOption( this.getModelContextFactoryOption() );
1095 options.addOption( this.getModelOption() );
1096 options.addOption( this.getModletLocationOption() );
1097 options.addOption( this.getModletSchemaSystemIdOption() );
1098 options.addOption( this.getModuleLocationOption() );
1099 options.addOption( this.getNoClasspathResolutionOption() );
1100 options.addOption( this.getNoModelProcessingOption() );
1101 options.addOption( this.getNoModelResourceValidation() );
1102 options.addOption( this.getNoModletResourceValidation() );
1103 options.addOption( this.getPlatformProviderLocationOption() );
1104 options.addOption( this.getProviderLocationOption() );
1105 options.addOption( this.getTransformerLocationOption() );
1106 return options;
1107 }
1108
1109
1110 }