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.io.IOException;
40  import java.io.StringWriter;
41  import java.util.logging.Level;
42  import javax.xml.bind.JAXBContext;
43  import javax.xml.bind.JAXBException;
44  import javax.xml.bind.Marshaller;
45  import javax.xml.bind.util.JAXBSource;
46  import javax.xml.transform.Source;
47  import org.apache.commons.cli.CommandLine;
48  import org.jomc.cli.commands.AbstractModletCommand.CommandLineClassLoader;
49  import org.jomc.model.Instance;
50  import org.jomc.model.Module;
51  import org.jomc.model.Modules;
52  import org.jomc.model.Specification;
53  import org.jomc.model.modlet.ModelHelper;
54  import org.jomc.modlet.Model;
55  import org.jomc.modlet.ModelContext;
56  import org.jomc.modlet.ModelException;
57  import org.jomc.modlet.ModelValidationReport;
58  import org.jomc.modlet.ObjectFactory;
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
83  
84  
85  public final class ShowModelCommand extends AbstractModelCommand
86  {
87      
88      
89      
90  
91      protected void executeCommand( final CommandLine commandLine ) throws CommandExecutionException
92      {
93          if ( commandLine == null )
94          {
95              throw new NullPointerException( "commandLine" );
96          }
97  
98          CommandLineClassLoader classLoader = null;
99          boolean suppressExceptionOnClose = true;
100 
101         try
102         {
103             classLoader = new CommandLineClassLoader( commandLine );
104             final ModelContext context = this.createModelContext( commandLine, classLoader );
105             final Model model = this.getModel( context, commandLine );
106             final JAXBContext jaxbContext = context.createContext( model.getIdentifier() );
107             final Marshaller marshaller = context.createMarshaller( model.getIdentifier() );
108             final Source source = new JAXBSource( jaxbContext, new ObjectFactory().createModel( model ) );
109             final ModelValidationReport validationReport = context.validateModel( model.getIdentifier(), source );
110             final Modules modules = ModelHelper.getModules( model );
111             this.log( validationReport, marshaller );
112 
113             if ( !validationReport.isModelValid() )
114             {
115                 throw new CommandExecutionException( this.getInvalidModelMessage(
116                     this.getLocale(), this.getModel( commandLine ) ) );
117 
118             }
119 
120             final Model displayModel = new Model();
121             displayModel.setIdentifier( model.getIdentifier() );
122 
123             boolean displayModules = true;
124 
125             if ( commandLine.hasOption( this.getImplementationOption().getOpt() ) )
126             {
127                 final String identifier = commandLine.getOptionValue( this.getImplementationOption().getOpt() );
128                 final Instance instance = modules != null ? modules.getInstance( identifier ) : null;
129                 displayModules = false;
130 
131                 if ( instance != null )
132                 {
133                     displayModel.getAny().add( new org.jomc.model.ObjectFactory().createInstance( instance ) );
134                 }
135                 else if ( this.isLoggable( Level.WARNING ) )
136                 {
137                     this.log( Level.WARNING, this.getImplementationNotFoundWarning(
138                               this.getLocale(), identifier ), null );
139 
140                 }
141             }
142 
143             if ( commandLine.hasOption( this.getSpecificationOption().getOpt() ) )
144             {
145                 final String identifier = commandLine.getOptionValue( this.getSpecificationOption().getOpt() );
146                 final Specification specification = modules != null ? modules.getSpecification( identifier ) : null;
147                 displayModules = false;
148 
149                 if ( specification != null )
150                 {
151                     displayModel.getAny().add(
152                         new org.jomc.model.ObjectFactory().createSpecification( specification ) );
153 
154                 }
155                 else if ( this.isLoggable( Level.WARNING ) )
156                 {
157                     this.log( Level.WARNING, this.getSpecificationNotFoundWarning(
158                               this.getLocale(), identifier ), null );
159 
160                 }
161             }
162 
163             if ( commandLine.hasOption( this.getModuleNameOption().getOpt() ) )
164             {
165                 final String moduleName = commandLine.getOptionValue( this.getModuleNameOption().getOpt() );
166                 final Module m = modules != null ? modules.getModule( moduleName ) : null;
167                 displayModules = false;
168 
169                 if ( m != null )
170                 {
171                     displayModel.getAny().add( new org.jomc.model.ObjectFactory().createModule( m ) );
172                 }
173                 else if ( this.isLoggable( Level.WARNING ) )
174                 {
175                     this.log( Level.WARNING, this.getModuleNotFoundWarning( this.getLocale(), moduleName ), null );
176                 }
177             }
178 
179             if ( displayModules )
180             {
181                 ModelHelper.setModules( displayModel, modules );
182             }
183 
184             marshaller.setProperty( Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE );
185 
186             if ( commandLine.hasOption( this.getDocumentEncodingOption().getOpt() ) )
187             {
188                 marshaller.setProperty( Marshaller.JAXB_ENCODING,
189                                         commandLine.getOptionValue( this.getDocumentEncodingOption().getOpt() ) );
190 
191             }
192 
193             if ( commandLine.hasOption( this.getDocumentOption().getOpt() ) )
194             {
195                 final File documentFile = new File( commandLine.getOptionValue( this.getDocumentOption().getOpt() ) );
196 
197                 if ( this.isLoggable( Level.INFO ) )
198                 {
199                     this.log( Level.INFO, this.getWriteInfo( this.getLocale(), documentFile.getAbsolutePath() ), null );
200                 }
201 
202                 marshaller.marshal( new ObjectFactory().createModel( displayModel ), documentFile );
203             }
204             else if ( this.isLoggable( Level.INFO ) )
205             {
206                 final StringWriter stringWriter = new StringWriter();
207                 marshaller.marshal( new ObjectFactory().createModel( displayModel ), stringWriter );
208                 this.log( Level.INFO, stringWriter.toString(), null );
209             }
210 
211             suppressExceptionOnClose = false;
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         catch ( final ModelException e )
224         {
225             throw new CommandExecutionException( getExceptionMessage( e ), e );
226         }
227         finally
228         {
229             try
230             {
231                 if ( classLoader != null )
232                 {
233                     classLoader.close();
234                 }
235             }
236             catch ( final IOException e )
237             {
238                 if ( suppressExceptionOnClose )
239                 {
240                     this.log( Level.SEVERE, getExceptionMessage( e ), e );
241                 }
242                 else
243                 {
244                     throw new CommandExecutionException( getExceptionMessage( e ), e );
245                 }
246             }
247         }
248     }
249 
250     
251     
252     
253     
254     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
255     public ShowModelCommand()
256     {
257         
258         super();
259         
260     }
261     
262     
263     
264     
265     
266 
267 
268 
269 
270 
271 
272 
273 
274 
275 
276 
277     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
278     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
279     private org.apache.commons.cli.Option getClasspathOption()
280     {
281         final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Classpath Option" );
282         assert _d != null : "'Classpath Option' dependency not found.";
283         return _d;
284     }
285     
286 
287 
288 
289 
290 
291 
292 
293 
294 
295 
296 
297     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
298     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
299     private org.apache.commons.cli.Option getDocumentEncodingOption()
300     {
301         final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Document Encoding Option" );
302         assert _d != null : "'Document Encoding Option' dependency not found.";
303         return _d;
304     }
305     
306 
307 
308 
309 
310 
311 
312 
313 
314 
315 
316 
317     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
318     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
319     private org.apache.commons.cli.Option getDocumentOption()
320     {
321         final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Document Option" );
322         assert _d != null : "'Document Option' dependency not found.";
323         return _d;
324     }
325     
326 
327 
328 
329 
330 
331 
332 
333 
334 
335 
336 
337     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
338     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
339     private org.apache.commons.cli.Option getDocumentsOption()
340     {
341         final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Documents Option" );
342         assert _d != null : "'Documents Option' dependency not found.";
343         return _d;
344     }
345     
346 
347 
348 
349 
350 
351 
352 
353 
354 
355 
356 
357     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
358     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
359     private org.apache.commons.cli.Option getImplementationOption()
360     {
361         final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Implementation Option" );
362         assert _d != null : "'Implementation Option' dependency not found.";
363         return _d;
364     }
365     
366 
367 
368 
369 
370 
371 
372 
373 
374 
375 
376 
377     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
378     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
379     private java.util.Locale getLocale()
380     {
381         final java.util.Locale _d = (java.util.Locale) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Locale" );
382         assert _d != null : "'Locale' dependency not found.";
383         return _d;
384     }
385     
386 
387 
388 
389 
390 
391 
392 
393 
394 
395 
396 
397     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
398     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
399     private org.apache.commons.cli.Option getModelContextFactoryOption()
400     {
401         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" );
402         assert _d != null : "'Model Context Factory Option' dependency not found.";
403         return _d;
404     }
405     
406 
407 
408 
409 
410 
411 
412 
413 
414 
415 
416 
417     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
418     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
419     private org.apache.commons.cli.Option getModelOption()
420     {
421         final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Model Option" );
422         assert _d != null : "'Model Option' dependency not found.";
423         return _d;
424     }
425     
426 
427 
428 
429 
430 
431 
432 
433 
434 
435 
436 
437     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
438     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
439     private org.apache.commons.cli.Option getModletLocationOption()
440     {
441         final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Modlet Location Option" );
442         assert _d != null : "'Modlet Location Option' dependency not found.";
443         return _d;
444     }
445     
446 
447 
448 
449 
450 
451 
452 
453 
454 
455 
456 
457     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
458     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
459     private org.apache.commons.cli.Option getModletSchemaSystemIdOption()
460     {
461         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" );
462         assert _d != null : "'Modlet Schema System Id Option' dependency not found.";
463         return _d;
464     }
465     
466 
467 
468 
469 
470 
471 
472 
473 
474 
475 
476 
477     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
478     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
479     private org.apache.commons.cli.Option getModuleLocationOption()
480     {
481         final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Module Location Option" );
482         assert _d != null : "'Module Location Option' dependency not found.";
483         return _d;
484     }
485     
486 
487 
488 
489 
490 
491 
492 
493 
494 
495 
496 
497     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
498     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
499     private org.apache.commons.cli.Option getModuleNameOption()
500     {
501         final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Module Name Option" );
502         assert _d != null : "'Module Name Option' dependency not found.";
503         return _d;
504     }
505     
506 
507 
508 
509 
510 
511 
512 
513 
514 
515 
516 
517     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
518     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
519     private org.apache.commons.cli.Option getNoClasspathResolutionOption()
520     {
521         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" );
522         assert _d != null : "'No Classpath Resolution Option' dependency not found.";
523         return _d;
524     }
525     
526 
527 
528 
529 
530 
531 
532 
533 
534 
535 
536 
537     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
538     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
539     private org.apache.commons.cli.Option getNoJavaValidationOption()
540     {
541         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" );
542         assert _d != null : "'No Java Validation Option' dependency not found.";
543         return _d;
544     }
545     
546 
547 
548 
549 
550 
551 
552 
553 
554 
555 
556 
557     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
558     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
559     private org.apache.commons.cli.Option getNoModelProcessingOption()
560     {
561         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" );
562         assert _d != null : "'No Model Processing Option' dependency not found.";
563         return _d;
564     }
565     
566 
567 
568 
569 
570 
571 
572 
573 
574 
575 
576 
577     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
578     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
579     private org.apache.commons.cli.Option getNoModelResourceValidation()
580     {
581         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" );
582         assert _d != null : "'No Model Resource Validation' dependency not found.";
583         return _d;
584     }
585     
586 
587 
588 
589 
590 
591 
592 
593 
594 
595 
596 
597     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
598     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
599     private org.apache.commons.cli.Option getNoModletResourceValidation()
600     {
601         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" );
602         assert _d != null : "'No Modlet Resource Validation' dependency not found.";
603         return _d;
604     }
605     
606 
607 
608 
609 
610 
611 
612 
613 
614 
615 
616 
617     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
618     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
619     private org.apache.commons.cli.Option getPlatformProviderLocationOption()
620     {
621         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" );
622         assert _d != null : "'Platform Provider Location Option' dependency not found.";
623         return _d;
624     }
625     
626 
627 
628 
629 
630 
631 
632 
633 
634 
635 
636 
637     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
638     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
639     private org.apache.commons.cli.Option getProviderLocationOption()
640     {
641         final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Provider Location Option" );
642         assert _d != null : "'Provider Location Option' dependency not found.";
643         return _d;
644     }
645     
646 
647 
648 
649 
650 
651 
652 
653 
654 
655 
656 
657     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
658     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
659     private org.apache.commons.cli.Option getSpecificationOption()
660     {
661         final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Specification Option" );
662         assert _d != null : "'Specification Option' dependency not found.";
663         return _d;
664     }
665     
666 
667 
668 
669 
670 
671 
672 
673 
674 
675 
676 
677     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
678     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
679     private org.apache.commons.cli.Option getTransformerLocationOption()
680     {
681         final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Transformer Location Option" );
682         assert _d != null : "'Transformer Location Option' dependency not found.";
683         return _d;
684     }
685     
686     
687     
688     
689     
690 
691 
692 
693 
694 
695 
696 
697     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
698     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
699     private java.lang.String getAbbreviatedCommandName()
700     {
701         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Abbreviated Command Name" );
702         assert _p != null : "'Abbreviated Command Name' property not found.";
703         return _p;
704     }
705     
706 
707 
708 
709 
710 
711 
712 
713     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
714     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
715     private java.lang.String getApplicationModlet()
716     {
717         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Application Modlet" );
718         assert _p != null : "'Application Modlet' property not found.";
719         return _p;
720     }
721     
722 
723 
724 
725 
726 
727 
728 
729     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
730     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
731     private java.lang.String getCommandName()
732     {
733         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Command Name" );
734         assert _p != null : "'Command Name' property not found.";
735         return _p;
736     }
737     
738 
739 
740 
741 
742 
743 
744 
745     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
746     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
747     private java.lang.String getModletExcludes()
748     {
749         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Modlet Excludes" );
750         assert _p != null : "'Modlet Excludes' property not found.";
751         return _p;
752     }
753     
754 
755 
756 
757 
758 
759 
760 
761     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
762     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
763     private java.lang.String getProviderExcludes()
764     {
765         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Provider Excludes" );
766         assert _p != null : "'Provider Excludes' property not found.";
767         return _p;
768     }
769     
770 
771 
772 
773 
774 
775 
776 
777     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
778     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
779     private java.lang.String getSchemaExcludes()
780     {
781         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Schema Excludes" );
782         assert _p != null : "'Schema Excludes' property not found.";
783         return _p;
784     }
785     
786 
787 
788 
789 
790 
791 
792 
793     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
794     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
795     private java.lang.String getServiceExcludes()
796     {
797         final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Service Excludes" );
798         assert _p != null : "'Service Excludes' property not found.";
799         return _p;
800     }
801     
802     
803     
804     
805     
806 
807 
808 
809 
810 
811 
812 
813 
814 
815 
816     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
817     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
818     private String getApplicationTitle( final java.util.Locale locale )
819     {
820         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Application Title", locale );
821         assert _m != null : "'Application Title' message not found.";
822         return _m;
823     }
824     
825 
826 
827 
828 
829 
830 
831 
832 
833 
834 
835 
836 
837 
838     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
839     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
840     private String getCannotProcessMessage( final java.util.Locale locale, final java.lang.String itemInfo, final java.lang.String detailMessage )
841     {
842         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Cannot Process Message", locale, itemInfo, detailMessage );
843         assert _m != null : "'Cannot Process Message' message not found.";
844         return _m;
845     }
846     
847 
848 
849 
850 
851 
852 
853 
854 
855 
856 
857 
858 
859     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
860     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
861     private String getClasspathElementInfo( final java.util.Locale locale, final java.lang.String classpathElement )
862     {
863         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Classpath Element Info", locale, classpathElement );
864         assert _m != null : "'Classpath Element Info' message not found.";
865         return _m;
866     }
867     
868 
869 
870 
871 
872 
873 
874 
875 
876 
877 
878 
879 
880     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
881     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
882     private String getClasspathElementNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName )
883     {
884         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Classpath Element Not Found Warning", locale, fileName );
885         assert _m != null : "'Classpath Element Not Found Warning' message not found.";
886         return _m;
887     }
888     
889 
890 
891 
892 
893 
894 
895 
896 
897 
898 
899 
900 
901     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
902     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
903     private String getCommandFailureMessage( final java.util.Locale locale, final java.lang.String toolName )
904     {
905         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Command Failure Message", locale, toolName );
906         assert _m != null : "'Command Failure Message' message not found.";
907         return _m;
908     }
909     
910 
911 
912 
913 
914 
915 
916 
917 
918 
919 
920 
921 
922     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
923     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
924     private String getCommandInfoMessage( final java.util.Locale locale, final java.lang.String toolName )
925     {
926         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Command Info Message", locale, toolName );
927         assert _m != null : "'Command Info Message' message not found.";
928         return _m;
929     }
930     
931 
932 
933 
934 
935 
936 
937 
938 
939 
940 
941 
942 
943     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
944     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
945     private String getCommandSuccessMessage( final java.util.Locale locale, final java.lang.String toolName )
946     {
947         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Command Success Message", locale, toolName );
948         assert _m != null : "'Command Success Message' message not found.";
949         return _m;
950     }
951     
952 
953 
954 
955 
956 
957 
958 
959 
960 
961 
962 
963 
964     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
965     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
966     private String getDefaultLogLevelInfo( final java.util.Locale locale, final java.lang.String defaultLogLevel )
967     {
968         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Default Log Level Info", locale, defaultLogLevel );
969         assert _m != null : "'Default Log Level Info' message not found.";
970         return _m;
971     }
972     
973 
974 
975 
976 
977 
978 
979 
980 
981 
982 
983 
984 
985     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
986     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
987     private String getDocumentFileInfo( final java.util.Locale locale, final java.lang.String documentFile )
988     {
989         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Document File Info", locale, documentFile );
990         assert _m != null : "'Document File Info' message not found.";
991         return _m;
992     }
993     
994 
995 
996 
997 
998 
999 
1000 
1001 
1002 
1003 
1004 
1005 
1006     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1007     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
1008     private String getDocumentFileNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName )
1009     {
1010         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Document File Not Found Warning", locale, fileName );
1011         assert _m != null : "'Document File Not Found Warning' message not found.";
1012         return _m;
1013     }
1014     
1015 
1016 
1017 
1018 
1019 
1020 
1021 
1022 
1023 
1024 
1025 
1026 
1027 
1028     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1029     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
1030     private String getExcludedModletInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String modletIdentifier )
1031     {
1032         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Modlet Info", locale, resourceName, modletIdentifier );
1033         assert _m != null : "'Excluded Modlet Info' message not found.";
1034         return _m;
1035     }
1036     
1037 
1038 
1039 
1040 
1041 
1042 
1043 
1044 
1045 
1046 
1047 
1048 
1049 
1050     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1051     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
1052     private String getExcludedProviderInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String providerName )
1053     {
1054         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Provider Info", locale, resourceName, providerName );
1055         assert _m != null : "'Excluded Provider Info' message not found.";
1056         return _m;
1057     }
1058     
1059 
1060 
1061 
1062 
1063 
1064 
1065 
1066 
1067 
1068 
1069 
1070 
1071 
1072     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1073     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
1074     private String getExcludedSchemaInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String contextId )
1075     {
1076         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Schema Info", locale, resourceName, contextId );
1077         assert _m != null : "'Excluded Schema Info' message not found.";
1078         return _m;
1079     }
1080     
1081 
1082 
1083 
1084 
1085 
1086 
1087 
1088 
1089 
1090 
1091 
1092 
1093 
1094     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1095     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
1096     private String getExcludedServiceInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String serviceName )
1097     {
1098         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Service Info", locale, resourceName, serviceName );
1099         assert _m != null : "'Excluded Service Info' message not found.";
1100         return _m;
1101     }
1102     
1103 
1104 
1105 
1106 
1107 
1108 
1109 
1110 
1111 
1112 
1113 
1114 
1115     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1116     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
1117     private String getImplementationNotFoundWarning( final java.util.Locale locale, final java.lang.String implementationIdentifier )
1118     {
1119         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Implementation Not Found Warning", locale, implementationIdentifier );
1120         assert _m != null : "'Implementation Not Found Warning' message not found.";
1121         return _m;
1122     }
1123     
1124 
1125 
1126 
1127 
1128 
1129 
1130 
1131 
1132 
1133 
1134 
1135 
1136     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1137     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
1138     private String getInvalidModelMessage( final java.util.Locale locale, final java.lang.String modelIdentifier )
1139     {
1140         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Invalid Model Message", locale, modelIdentifier );
1141         assert _m != null : "'Invalid Model Message' message not found.";
1142         return _m;
1143     }
1144     
1145 
1146 
1147 
1148 
1149 
1150 
1151 
1152 
1153 
1154 
1155 
1156     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1157     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
1158     private String getLongDescriptionMessage( final java.util.Locale locale )
1159     {
1160         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Long Description Message", locale );
1161         assert _m != null : "'Long Description Message' message not found.";
1162         return _m;
1163     }
1164     
1165 
1166 
1167 
1168 
1169 
1170 
1171 
1172 
1173 
1174 
1175 
1176 
1177     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1178     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
1179     private String getModuleNotFoundWarning( final java.util.Locale locale, final java.lang.String moduleName )
1180     {
1181         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Module Not Found Warning", locale, moduleName );
1182         assert _m != null : "'Module Not Found Warning' message not found.";
1183         return _m;
1184     }
1185     
1186 
1187 
1188 
1189 
1190 
1191 
1192 
1193 
1194 
1195 
1196 
1197 
1198     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1199     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
1200     private String getReadingMessage( final java.util.Locale locale, final java.lang.String locationInfo )
1201     {
1202         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Reading Message", locale, locationInfo );
1203         assert _m != null : "'Reading Message' message not found.";
1204         return _m;
1205     }
1206     
1207 
1208 
1209 
1210 
1211 
1212 
1213 
1214 
1215 
1216 
1217     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1218     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
1219     private String getSeparator( final java.util.Locale locale )
1220     {
1221         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Separator", locale );
1222         assert _m != null : "'Separator' message not found.";
1223         return _m;
1224     }
1225     
1226 
1227 
1228 
1229 
1230 
1231 
1232 
1233 
1234 
1235 
1236 
1237     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1238     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
1239     private String getShortDescriptionMessage( final java.util.Locale locale )
1240     {
1241         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Short Description Message", locale );
1242         assert _m != null : "'Short Description Message' message not found.";
1243         return _m;
1244     }
1245     
1246 
1247 
1248 
1249 
1250 
1251 
1252 
1253 
1254 
1255 
1256 
1257 
1258     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1259     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
1260     private String getSpecificationNotFoundWarning( final java.util.Locale locale, final java.lang.String specificationIdentifier )
1261     {
1262         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Specification Not Found Warning", locale, specificationIdentifier );
1263         assert _m != null : "'Specification Not Found Warning' message not found.";
1264         return _m;
1265     }
1266     
1267 
1268 
1269 
1270 
1271 
1272 
1273 
1274 
1275 
1276 
1277 
1278 
1279     @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1280     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
1281     private String getWriteInfo( final java.util.Locale locale, final java.lang.String fileName )
1282     {
1283         final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Write Info", locale, fileName );
1284         assert _m != null : "'Write Info' message not found.";
1285         return _m;
1286     }
1287     
1288     
1289     
1290     
1291     
1292 
1293 
1294 
1295 
1296 
1297 
1298 
1299 
1300 
1301 
1302 
1303 
1304 
1305 
1306 
1307 
1308 
1309 
1310 
1311 
1312 
1313 
1314 
1315 
1316 
1317 
1318 
1319 
1320 
1321 
1322 
1323 
1324 
1325 
1326 
1327 
1328 
1329 
1330 
1331 
1332 
1333 
1334 
1335 
1336 
1337 
1338 
1339 
1340 
1341 
1342 
1343 
1344 
1345 
1346 
1347 
1348 
1349 
1350 
1351 
1352 
1353 
1354 
1355 
1356 
1357 
1358 
1359 
1360 
1361 
1362 
1363 
1364 
1365 
1366 
1367 
1368 
1369 
1370 
1371 
1372 
1373 
1374 
1375 
1376 
1377 
1378 
1379 
1380 
1381 
1382 
1383     @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.9", comments = "See http://www.jomc.org/jomc/1.9/jomc-tools-1.9" )
1384     @Override
1385     public org.apache.commons.cli.Options getOptions()
1386     {
1387         final org.apache.commons.cli.Options options = new org.apache.commons.cli.Options();
1388         options.addOption( this.getClasspathOption() );
1389         options.addOption( this.getDocumentEncodingOption() );
1390         options.addOption( this.getDocumentOption() );
1391         options.addOption( this.getDocumentsOption() );
1392         options.addOption( this.getImplementationOption() );
1393         options.addOption( this.getModelContextFactoryOption() );
1394         options.addOption( this.getModelOption() );
1395         options.addOption( this.getModletLocationOption() );
1396         options.addOption( this.getModletSchemaSystemIdOption() );
1397         options.addOption( this.getModuleLocationOption() );
1398         options.addOption( this.getModuleNameOption() );
1399         options.addOption( this.getNoClasspathResolutionOption() );
1400         options.addOption( this.getNoJavaValidationOption() );
1401         options.addOption( this.getNoModelProcessingOption() );
1402         options.addOption( this.getNoModelResourceValidation() );
1403         options.addOption( this.getNoModletResourceValidation() );
1404         options.addOption( this.getPlatformProviderLocationOption() );
1405         options.addOption( this.getProviderLocationOption() );
1406         options.addOption( this.getSpecificationOption() );
1407         options.addOption( this.getTransformerLocationOption() );
1408         return options;
1409     }
1410     
1411     
1412 
1413 }