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