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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
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, "Classpath Option" );
163 assert _d != null : "'Classpath Option' 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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
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, "Documents Option" );
183 assert _d != null : "'Documents Option' 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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
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, "Model Context Factory Option" );
223 assert _d != null : "'Model Context Factory Option' 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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
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, "Model Option" );
243 assert _d != null : "'Model Option' 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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
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, "Modlet Location Option" );
263 assert _d != null : "'Modlet Location Option' 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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
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, "Modlet Schema System Id Option" );
283 assert _d != null : "'Modlet Schema System Id Option' 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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
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, "Module Location Option" );
303 assert _d != null : "'Module Location Option' 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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
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, "No Classpath Resolution Option" );
323 assert _d != null : "'No Classpath Resolution Option' 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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
340 private org.apache.commons.cli.Option getNoJavaValidationOption()
341 {
342 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "No Java Validation Option" );
343 assert _d != null : "'No Java Validation Option' 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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
360 private org.apache.commons.cli.Option getNoModelProcessingOption()
361 {
362 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "No Model Processing Option" );
363 assert _d != null : "'No Model Processing Option' 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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
380 private org.apache.commons.cli.Option getNoModelResourceValidation()
381 {
382 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "No Model Resource Validation" );
383 assert _d != null : "'No Model Resource Validation' 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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
400 private org.apache.commons.cli.Option getNoModletResourceValidation()
401 {
402 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "No Modlet Resource Validation" );
403 assert _d != null : "'No Modlet Resource Validation' 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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
420 private org.apache.commons.cli.Option getPlatformProviderLocationOption()
421 {
422 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Platform Provider Location Option" );
423 assert _d != null : "'Platform Provider Location Option' 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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
440 private org.apache.commons.cli.Option getProviderLocationOption()
441 {
442 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Provider Location Option" );
443 assert _d != null : "'Provider Location Option' 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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
460 private org.apache.commons.cli.Option getTransformerLocationOption()
461 {
462 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Transformer Location Option" );
463 assert _d != null : "'Transformer Location Option' dependency not found.";
464 return _d;
465 }
466
467
468
469
470
471
472
473
474
475
476
477
478 @SuppressWarnings("unused")
479 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
480 private java.lang.String getAbbreviatedCommandName()
481 {
482 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Abbreviated Command Name" );
483 assert _p != null : "'Abbreviated Command Name' property not found.";
484 return _p;
485 }
486
487
488
489
490
491
492
493
494 @SuppressWarnings("unused")
495 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
496 private java.lang.String getApplicationModlet()
497 {
498 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Application Modlet" );
499 assert _p != null : "'Application Modlet' property not found.";
500 return _p;
501 }
502
503
504
505
506
507
508
509
510 @SuppressWarnings("unused")
511 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
512 private java.lang.String getCommandName()
513 {
514 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Command Name" );
515 assert _p != null : "'Command Name' property not found.";
516 return _p;
517 }
518
519
520
521
522
523
524
525
526 @SuppressWarnings("unused")
527 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
528 private java.lang.String getModletExcludes()
529 {
530 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Modlet Excludes" );
531 assert _p != null : "'Modlet Excludes' property not found.";
532 return _p;
533 }
534
535
536
537
538
539
540
541
542 @SuppressWarnings("unused")
543 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
544 private java.lang.String getProviderExcludes()
545 {
546 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Provider Excludes" );
547 assert _p != null : "'Provider Excludes' property not found.";
548 return _p;
549 }
550
551
552
553
554
555
556
557
558 @SuppressWarnings("unused")
559 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
560 private java.lang.String getSchemaExcludes()
561 {
562 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Schema Excludes" );
563 assert _p != null : "'Schema Excludes' property not found.";
564 return _p;
565 }
566
567
568
569
570
571
572
573
574 @SuppressWarnings("unused")
575 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
576 private java.lang.String getServiceExcludes()
577 {
578 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Service Excludes" );
579 assert _p != null : "'Service Excludes' property not found.";
580 return _p;
581 }
582
583
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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
599 private String getApplicationTitle( final java.util.Locale locale )
600 {
601 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Application Title", locale );
602 assert _m != null : "'Application Title' message not found.";
603 return _m;
604 }
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619 @SuppressWarnings("unused")
620 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
621 private String getCannotProcessMessage( final java.util.Locale locale, final java.lang.String itemInfo, final java.lang.String detailMessage )
622 {
623 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Cannot Process Message", locale, itemInfo, detailMessage );
624 assert _m != null : "'Cannot Process Message' message not found.";
625 return _m;
626 }
627
628
629
630
631
632
633
634
635
636
637
638
639
640 @SuppressWarnings("unused")
641 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
642 private String getClasspathElementInfo( final java.util.Locale locale, final java.lang.String classpathElement )
643 {
644 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Classpath Element Info", locale, classpathElement );
645 assert _m != null : "'Classpath Element Info' message not found.";
646 return _m;
647 }
648
649
650
651
652
653
654
655
656
657
658
659
660
661 @SuppressWarnings("unused")
662 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
663 private String getClasspathElementNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName )
664 {
665 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Classpath Element Not Found Warning", locale, fileName );
666 assert _m != null : "'Classpath Element Not Found Warning' message not found.";
667 return _m;
668 }
669
670
671
672
673
674
675
676
677
678
679
680
681
682 @SuppressWarnings("unused")
683 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
684 private String getCommandFailureMessage( final java.util.Locale locale, final java.lang.String toolName )
685 {
686 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Command Failure Message", locale, toolName );
687 assert _m != null : "'Command Failure Message' message not found.";
688 return _m;
689 }
690
691
692
693
694
695
696
697
698
699
700
701
702
703 @SuppressWarnings("unused")
704 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
705 private String getCommandInfoMessage( final java.util.Locale locale, final java.lang.String toolName )
706 {
707 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Command Info Message", locale, toolName );
708 assert _m != null : "'Command Info Message' message not found.";
709 return _m;
710 }
711
712
713
714
715
716
717
718
719
720
721
722
723
724 @SuppressWarnings("unused")
725 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
726 private String getCommandSuccessMessage( final java.util.Locale locale, final java.lang.String toolName )
727 {
728 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Command Success Message", locale, toolName );
729 assert _m != null : "'Command Success Message' message not found.";
730 return _m;
731 }
732
733
734
735
736
737
738
739
740
741
742
743
744
745 @SuppressWarnings("unused")
746 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
747 private String getDefaultLogLevelInfo( final java.util.Locale locale, final java.lang.String defaultLogLevel )
748 {
749 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Default Log Level Info", locale, defaultLogLevel );
750 assert _m != null : "'Default Log Level Info' message not found.";
751 return _m;
752 }
753
754
755
756
757
758
759
760
761
762
763
764
765
766 @SuppressWarnings("unused")
767 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
768 private String getDocumentFileInfo( final java.util.Locale locale, final java.lang.String documentFile )
769 {
770 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Document File Info", locale, documentFile );
771 assert _m != null : "'Document File Info' message not found.";
772 return _m;
773 }
774
775
776
777
778
779
780
781
782
783
784
785
786
787 @SuppressWarnings("unused")
788 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
789 private String getDocumentFileNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName )
790 {
791 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Document File Not Found Warning", locale, fileName );
792 assert _m != null : "'Document File Not Found Warning' message not found.";
793 return _m;
794 }
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809 @SuppressWarnings("unused")
810 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
811 private String getExcludedModletInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String modletIdentifier )
812 {
813 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Modlet Info", locale, resourceName, modletIdentifier );
814 assert _m != null : "'Excluded Modlet Info' message not found.";
815 return _m;
816 }
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831 @SuppressWarnings("unused")
832 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
833 private String getExcludedProviderInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String providerName )
834 {
835 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Provider Info", locale, resourceName, providerName );
836 assert _m != null : "'Excluded Provider Info' message not found.";
837 return _m;
838 }
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853 @SuppressWarnings("unused")
854 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
855 private String getExcludedSchemaInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String contextId )
856 {
857 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Schema Info", locale, resourceName, contextId );
858 assert _m != null : "'Excluded Schema Info' message not found.";
859 return _m;
860 }
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875 @SuppressWarnings("unused")
876 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
877 private String getExcludedServiceInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String serviceName )
878 {
879 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Service Info", locale, resourceName, serviceName );
880 assert _m != null : "'Excluded Service Info' message not found.";
881 return _m;
882 }
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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
898 private String getInvalidModelMessage( final java.util.Locale locale, final java.lang.String modelIdentifier )
899 {
900 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Invalid Model Message", locale, modelIdentifier );
901 assert _m != null : "'Invalid Model Message' message not found.";
902 return _m;
903 }
904
905
906
907
908
909
910
911
912
913
914
915
916 @SuppressWarnings("unused")
917 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
918 private String getLongDescriptionMessage( final java.util.Locale locale )
919 {
920 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Long Description Message", locale );
921 assert _m != null : "'Long Description Message' message not found.";
922 return _m;
923 }
924
925
926
927
928
929
930
931
932
933
934
935
936
937 @SuppressWarnings("unused")
938 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
939 private String getReadingMessage( final java.util.Locale locale, final java.lang.String locationInfo )
940 {
941 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Reading Message", locale, locationInfo );
942 assert _m != null : "'Reading Message' message not found.";
943 return _m;
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.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
958 private String getSeparator( final java.util.Locale locale )
959 {
960 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Separator", locale );
961 assert _m != null : "'Separator' message not found.";
962 return _m;
963 }
964
965
966
967
968
969
970
971
972
973
974
975
976 @SuppressWarnings("unused")
977 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
978 private String getShortDescriptionMessage( final java.util.Locale locale )
979 {
980 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Short Description Message", locale );
981 assert _m != null : "'Short Description Message' message not found.";
982 return _m;
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
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.5", comments = "See http://www.jomc.org/jomc/1.5/jomc-tools-1.5" )
1061 @Override
1062 public org.apache.commons.cli.Options getOptions()
1063 {
1064 final org.apache.commons.cli.Options options = new org.apache.commons.cli.Options();
1065 options.addOption( this.getClasspathOption() );
1066 options.addOption( this.getDocumentsOption() );
1067 options.addOption( this.getModelContextFactoryOption() );
1068 options.addOption( this.getModelOption() );
1069 options.addOption( this.getModletLocationOption() );
1070 options.addOption( this.getModletSchemaSystemIdOption() );
1071 options.addOption( this.getModuleLocationOption() );
1072 options.addOption( this.getNoClasspathResolutionOption() );
1073 options.addOption( this.getNoJavaValidationOption() );
1074 options.addOption( this.getNoModelProcessingOption() );
1075 options.addOption( this.getNoModelResourceValidation() );
1076 options.addOption( this.getNoModletResourceValidation() );
1077 options.addOption( this.getPlatformProviderLocationOption() );
1078 options.addOption( this.getProviderLocationOption() );
1079 options.addOption( this.getTransformerLocationOption() );
1080 return options;
1081 }
1082
1083
1084 }