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