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.BufferedReader;
39 import java.io.Closeable;
40 import java.io.File;
41 import java.io.FileOutputStream;
42 import java.io.FileReader;
43 import java.io.IOException;
44 import java.io.InputStream;
45 import java.io.OutputStream;
46 import java.io.StringWriter;
47 import java.net.URI;
48 import java.net.URL;
49 import java.net.URLClassLoader;
50 import java.util.ArrayList;
51 import java.util.Arrays;
52 import java.util.Enumeration;
53 import java.util.HashSet;
54 import java.util.Iterator;
55 import java.util.List;
56 import java.util.Map;
57 import java.util.Set;
58 import java.util.logging.Level;
59 import javax.xml.bind.JAXBElement;
60 import javax.xml.bind.JAXBException;
61 import javax.xml.bind.Marshaller;
62 import javax.xml.bind.PropertyException;
63 import javax.xml.transform.ErrorListener;
64 import javax.xml.transform.Source;
65 import javax.xml.transform.Transformer;
66 import javax.xml.transform.TransformerConfigurationException;
67 import javax.xml.transform.TransformerException;
68 import javax.xml.transform.TransformerFactory;
69 import org.apache.commons.cli.CommandLine;
70 import org.apache.commons.io.IOUtils;
71 import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement;
72 import org.jomc.model.ModelObject;
73 import org.jomc.modlet.DefaultModelContext;
74 import org.jomc.modlet.DefaultModletProvider;
75 import org.jomc.modlet.ModelContext;
76 import org.jomc.modlet.ModelContextFactory;
77 import org.jomc.modlet.ModelException;
78 import org.jomc.modlet.ModelValidationReport;
79 import org.jomc.modlet.Modlet;
80 import org.jomc.modlet.ModletObject;
81 import org.jomc.modlet.ModletProvider;
82 import org.jomc.modlet.Modlets;
83 import org.jomc.modlet.ObjectFactory;
84 import org.jomc.modlet.Schema;
85 import org.jomc.modlet.Schemas;
86 import org.jomc.modlet.Service;
87 import org.jomc.modlet.Services;
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
112
113
114 public abstract class AbstractModletCommand extends AbstractCommand
115 {
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130 protected Transformer createTransformer( final Source source ) throws CommandExecutionException
131 {
132 if ( source == null )
133 {
134 throw new NullPointerException( "source" );
135 }
136
137 final ErrorListener errorListener = new ErrorListener()
138 {
139
140 public void warning( final TransformerException exception ) throws TransformerException
141 {
142 log( Level.WARNING, null, exception );
143 }
144
145 public void error( final TransformerException exception ) throws TransformerException
146 {
147 throw exception;
148 }
149
150 public void fatalError( final TransformerException exception ) throws TransformerException
151 {
152 throw exception;
153 }
154
155 };
156
157 try
158 {
159 final TransformerFactory transformerFactory = TransformerFactory.newInstance();
160 transformerFactory.setErrorListener( errorListener );
161 final Transformer transformer = transformerFactory.newTransformer( source );
162 transformer.setErrorListener( errorListener );
163
164 for ( Map.Entry<Object, Object> e : System.getProperties().entrySet() )
165 {
166 transformer.setParameter( e.getKey().toString(), e.getValue() );
167 }
168
169 return transformer;
170 }
171 catch ( final TransformerConfigurationException e )
172 {
173 throw new CommandExecutionException( getExceptionMessage( e ), e );
174 }
175 }
176
177
178
179
180
181
182
183
184
185
186
187
188 protected ModelContext createModelContext( final CommandLine commandLine, final ClassLoader classLoader )
189 throws CommandExecutionException
190 {
191 if ( commandLine == null )
192 {
193 throw new NullPointerException( "commandLine" );
194 }
195
196 final ModelContextFactory modelContextFactory;
197 if ( commandLine.hasOption( this.getModelContextFactoryOption().getOpt() ) )
198 {
199 modelContextFactory = ModelContextFactory.newInstance( commandLine.getOptionValue(
200 this.getModelContextFactoryOption().getOpt() ) );
201
202 }
203 else
204 {
205 modelContextFactory = ModelContextFactory.newInstance();
206 }
207
208 final ModelContext modelContext = modelContextFactory.newModelContext( classLoader );
209
210 if ( commandLine.hasOption( this.getModletSchemaSystemIdOption().getOpt() ) )
211 {
212 modelContext.setModletSchemaSystemId(
213 commandLine.getOptionValue( this.getModletSchemaSystemIdOption().getOpt() ) );
214
215 }
216
217 modelContext.setLogLevel( this.getLogLevel() );
218 modelContext.getListeners().add( new ModelContext.Listener()
219 {
220
221 @Override
222 public void onLog( final Level level, final String message, final Throwable t )
223 {
224 super.onLog( level, message, t );
225 log( level, message, t );
226 }
227
228 } );
229
230 if ( commandLine.hasOption( this.getProviderLocationOption().getOpt() ) )
231 {
232 modelContext.setAttribute( DefaultModelContext.PROVIDER_LOCATION_ATTRIBUTE_NAME,
233 commandLine.getOptionValue( this.getProviderLocationOption().getOpt() ) );
234
235 }
236
237 if ( commandLine.hasOption( this.getPlatformProviderLocationOption().getOpt() ) )
238 {
239 modelContext.setAttribute(
240 DefaultModelContext.PLATFORM_PROVIDER_LOCATION_ATTRIBUTE_NAME,
241 commandLine.getOptionValue( this.getPlatformProviderLocationOption().getOpt() ) );
242
243 }
244
245 if ( commandLine.hasOption( this.getModletLocationOption().getOpt() ) )
246 {
247 modelContext.setAttribute( DefaultModletProvider.MODLET_LOCATION_ATTRIBUTE_NAME,
248 commandLine.getOptionValue( this.getModletLocationOption().getOpt() ) );
249
250 }
251
252 modelContext.setAttribute( DefaultModletProvider.VALIDATING_ATTRIBUTE_NAME,
253 !commandLine.hasOption( this.getNoModletResourceValidation().getOpt() ) );
254
255 return modelContext;
256 }
257
258
259
260
261
262
263
264
265
266
267 protected String getModel( final CommandLine commandLine )
268 {
269 if ( commandLine == null )
270 {
271 throw new NullPointerException( "commandLine" );
272 }
273
274 return commandLine.hasOption( this.getModelOption().getOpt() )
275 ? commandLine.getOptionValue( this.getModelOption().getOpt() )
276 : ModelObject.MODEL_PUBLIC_ID;
277
278 }
279
280
281
282
283
284
285
286
287
288 protected void log( final ModelValidationReport validationReport, final Marshaller marshaller )
289 throws CommandExecutionException
290 {
291 Object jaxbFormattedOutput = null;
292 try
293 {
294 jaxbFormattedOutput = marshaller.getProperty( Marshaller.JAXB_FORMATTED_OUTPUT );
295 marshaller.setProperty( Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE );
296 }
297 catch ( final PropertyException e )
298 {
299 this.log( Level.INFO, null, e );
300 jaxbFormattedOutput = null;
301 }
302
303 try
304 {
305
306 for ( ModelValidationReport.Detail d : validationReport.getDetails() )
307 {
308 if ( this.isLoggable( d.getLevel() ) )
309 {
310 this.log( d.getLevel(), "o " + d.getMessage(), null );
311
312 if ( d.getElement() != null && this.getLogLevel().intValue() < Level.INFO.intValue() )
313 {
314 final StringWriter stringWriter = new StringWriter();
315 marshaller.marshal( d.getElement(), stringWriter );
316 this.log( d.getLevel(), stringWriter.toString(), null );
317 }
318 }
319 }
320 }
321 catch ( final JAXBException e )
322 {
323 String message = getExceptionMessage( e );
324 if ( message == null )
325 {
326 message = getExceptionMessage( e.getLinkedException() );
327 }
328
329 throw new CommandExecutionException( message, e );
330 }
331 finally
332 {
333 try
334 {
335 marshaller.setProperty( Marshaller.JAXB_FORMATTED_OUTPUT, jaxbFormattedOutput );
336 }
337 catch ( final PropertyException e )
338 {
339 this.log( Level.INFO, null, e );
340 }
341 }
342 }
343
344
345
346
347
348
349
350
351
352
353 protected Set<File> getDocumentFiles( final CommandLine commandLine ) throws CommandExecutionException
354 {
355 try
356 {
357 final Set<File> files = new HashSet<File>();
358
359 if ( commandLine.hasOption( this.getDocumentsOption().getOpt() ) )
360 {
361 final String[] elements = commandLine.getOptionValues( this.getDocumentsOption().getOpt() );
362 if ( elements != null )
363 {
364 for ( String e : elements )
365 {
366 if ( e.startsWith( "@" ) )
367 {
368 String line = null;
369 final File file = new File( e.substring( 1 ) );
370 BufferedReader reader = null;
371 boolean suppressExceptionOnClose = true;
372
373 try
374 {
375 reader = new BufferedReader( new FileReader( file ) );
376 while ( ( line = reader.readLine() ) != null )
377 {
378 line = line.trim();
379 if ( !line.startsWith( "#" ) )
380 {
381 final File f = new File( line );
382
383 if ( f.exists() )
384 {
385 if ( this.isLoggable( Level.FINER ) )
386 {
387 this.log( Level.FINER, this.getDocumentFileInfo(
388 this.getLocale(), f.getAbsolutePath() ), null );
389
390 }
391
392 files.add( f );
393 }
394 else if ( this.isLoggable( Level.WARNING ) )
395 {
396 this.log( Level.WARNING, this.getDocumentFileNotFoundWarning(
397 this.getLocale(), f.getAbsolutePath() ), null );
398
399 }
400 }
401 }
402
403 suppressExceptionOnClose = false;
404 }
405 finally
406 {
407 try
408 {
409 if ( reader != null )
410 {
411 reader.close();
412 }
413 }
414 catch ( final IOException ex )
415 {
416 if ( suppressExceptionOnClose )
417 {
418 this.log( Level.SEVERE, getExceptionMessage( ex ), ex );
419 }
420 else
421 {
422 throw new CommandExecutionException( getExceptionMessage( ex ), ex );
423 }
424 }
425 }
426 }
427 else
428 {
429 final File file = new File( e );
430
431 if ( file.exists() )
432 {
433 if ( this.isLoggable( Level.FINER ) )
434 {
435 this.log( Level.FINER, this.getDocumentFileInfo(
436 this.getLocale(), file.getAbsolutePath() ), null );
437
438 }
439
440 files.add( file );
441 }
442 else if ( this.isLoggable( Level.WARNING ) )
443 {
444 this.log( Level.WARNING, this.getDocumentFileNotFoundWarning(
445 this.getLocale(), file.getAbsolutePath() ), null );
446
447 }
448 }
449 }
450 }
451 }
452
453 return files;
454 }
455 catch ( final IOException e )
456 {
457 throw new CommandExecutionException( getExceptionMessage( e ), e );
458 }
459 }
460
461
462
463
464
465
466
467 public class CommandLineClassLoader extends URLClassLoader
468 {
469
470
471 private Modlets excludedModlets;
472
473
474 private final Set<String> providerResourceLocations = new HashSet<String>();
475
476
477 private final Set<String> modletResourceLocations = new HashSet<String>();
478
479
480 private final Set<File> temporaryResources = new HashSet<File>();
481
482
483
484
485
486
487
488
489
490 public CommandLineClassLoader( final CommandLine commandLine ) throws CommandExecutionException
491 {
492 super( new URL[ 0 ] );
493
494 try
495 {
496 if ( commandLine.hasOption( getClasspathOption().getOpt() ) )
497 {
498 final Set<URI> uris = new HashSet<URI>();
499 final String[] elements = commandLine.getOptionValues( getClasspathOption().getOpt() );
500
501 if ( elements != null )
502 {
503 for ( String e : elements )
504 {
505 if ( e.startsWith( "@" ) )
506 {
507 String line = null;
508 final File file = new File( e.substring( 1 ) );
509 BufferedReader reader = null;
510 boolean suppressExceptionOnClose = true;
511
512 try
513 {
514 reader = new BufferedReader( new FileReader( file ) );
515 while ( ( line = reader.readLine() ) != null )
516 {
517 line = line.trim();
518 if ( !line.startsWith( "#" ) )
519 {
520 final File f = new File( line );
521
522 if ( f.exists() )
523 {
524 uris.add( f.toURI() );
525 }
526 else if ( isLoggable( Level.WARNING ) )
527 {
528 log( Level.WARNING, getClasspathElementNotFoundWarning(
529 getLocale(), f.getAbsolutePath() ), null );
530
531 }
532 }
533 }
534
535 suppressExceptionOnClose = false;
536 }
537 finally
538 {
539 try
540 {
541 if ( reader != null )
542 {
543 reader.close();
544 }
545 }
546 catch ( final IOException ex )
547 {
548 if ( suppressExceptionOnClose )
549 {
550 log( Level.SEVERE, getExceptionMessage( ex ), ex );
551 }
552 else
553 {
554 throw new CommandExecutionException( getExceptionMessage( ex ), ex );
555 }
556 }
557 }
558 }
559 else
560 {
561 final File file = new File( e );
562
563 if ( file.exists() )
564 {
565 uris.add( file.toURI() );
566 }
567 else if ( isLoggable( Level.WARNING ) )
568 {
569 log( Level.WARNING, getClasspathElementNotFoundWarning(
570 getLocale(), file.getAbsolutePath() ), null );
571
572 }
573 }
574 }
575 }
576
577 for ( URI uri : uris )
578 {
579 if ( isLoggable( Level.FINEST ) )
580 {
581 log( Level.FINEST, getClasspathElementInfo( getLocale(), uri.toASCIIString() ), null );
582 }
583
584 this.addURL( uri.toURL() );
585 }
586
587 if ( commandLine.hasOption( getProviderLocationOption().getOpt() ) )
588 {
589 this.providerResourceLocations.add(
590 commandLine.getOptionValue( getProviderLocationOption().getOpt() )
591 + "/" + ModletProvider.class.getName() );
592
593 }
594 else
595 {
596 this.providerResourceLocations.add(
597 DefaultModelContext.getDefaultProviderLocation() + "/" + ModletProvider.class.getName() );
598
599 }
600
601 if ( commandLine.hasOption( getModletLocationOption().getOpt() ) )
602 {
603 this.modletResourceLocations.add(
604 commandLine.getOptionValue( getModletLocationOption().getOpt() ) );
605
606 }
607 else
608 {
609 this.modletResourceLocations.add( DefaultModletProvider.getDefaultModletLocation() );
610 }
611 }
612 }
613 catch ( final IOException e )
614 {
615 throw new CommandExecutionException( getExceptionMessage( e ), e );
616 }
617 }
618
619
620
621
622
623
624 public Modlets getExcludedModlets()
625 {
626 if ( this.excludedModlets == null )
627 {
628 this.excludedModlets = new Modlets();
629 }
630
631 return this.excludedModlets;
632 }
633
634
635
636
637
638
639
640
641 @Override
642 public URL findResource( final String name )
643 {
644 try
645 {
646 URL resource = super.findResource( name );
647
648 if ( resource != null )
649 {
650 if ( this.providerResourceLocations.contains( name ) )
651 {
652 resource = this.filterProviders( resource );
653 }
654 else if ( this.modletResourceLocations.contains( name ) )
655 {
656 resource = this.filterModlets( resource );
657 }
658 }
659
660 return resource;
661 }
662 catch ( final IOException e )
663 {
664 log( Level.SEVERE, null, e );
665 return null;
666 }
667 catch ( final JAXBException e )
668 {
669 log( Level.SEVERE, null, e );
670 return null;
671 }
672 catch ( final ModelException e )
673 {
674 log( Level.SEVERE, null, e );
675 return null;
676 }
677 }
678
679
680
681
682
683
684
685
686
687
688
689 @Override
690 public Enumeration<URL> findResources( final String name ) throws IOException
691 {
692 final Enumeration<URL> allResources = super.findResources( name );
693
694 Enumeration<URL> enumeration = allResources;
695
696 if ( this.providerResourceLocations.contains( name ) )
697 {
698 enumeration = new Enumeration<URL>()
699 {
700
701 public boolean hasMoreElements()
702 {
703 return allResources.hasMoreElements();
704 }
705
706 public URL nextElement()
707 {
708 try
709 {
710 return filterProviders( allResources.nextElement() );
711 }
712 catch ( final IOException e )
713 {
714 log( Level.SEVERE, null, e );
715 return null;
716 }
717 }
718
719 };
720 }
721 else if ( this.modletResourceLocations.contains( name ) )
722 {
723 enumeration = new Enumeration<URL>()
724 {
725
726 public boolean hasMoreElements()
727 {
728 return allResources.hasMoreElements();
729 }
730
731 public URL nextElement()
732 {
733 try
734 {
735 return filterModlets( allResources.nextElement() );
736 }
737 catch ( final IOException e )
738 {
739 log( Level.SEVERE, null, e );
740 return null;
741 }
742 catch ( final JAXBException e )
743 {
744 log( Level.SEVERE, null, e );
745 return null;
746 }
747 catch ( final ModelException e )
748 {
749 log( Level.SEVERE, null, e );
750 return null;
751 }
752 }
753
754 };
755 }
756
757 return enumeration;
758 }
759
760
761
762
763
764 @Override
765 @IgnoreJRERequirement
766 public void close() throws IOException
767 {
768 for ( final Iterator<File> it = this.temporaryResources.iterator(); it.hasNext(); )
769 {
770 final File temporaryResource = it.next();
771
772 if ( temporaryResource.exists() && temporaryResource.delete() )
773 {
774 it.remove();
775 }
776 }
777
778 if ( Closeable.class.isAssignableFrom( CommandLineClassLoader.class ) )
779 {
780 super.close();
781 }
782 }
783
784
785
786
787
788 @Override
789 protected void finalize() throws Throwable
790 {
791 for ( final Iterator<File> it = this.temporaryResources.iterator(); it.hasNext(); )
792 {
793 final File temporaryResource = it.next();
794
795 if ( temporaryResource.exists() && !temporaryResource.delete() )
796 {
797 temporaryResource.deleteOnExit();
798 }
799
800 it.remove();
801 }
802
803 super.finalize();
804 }
805
806 private URL filterProviders( final URL resource ) throws IOException
807 {
808 InputStream in = null;
809 boolean suppressExceptionOnClose = true;
810
811 try
812 {
813 in = resource.openStream();
814 URL filteredResource = resource;
815 final List<String> lines = IOUtils.readLines( in, "UTF-8" );
816 final List<String> providerExcludes = Arrays.asList( getProviderExcludes().split( ":" ) );
817 final List<String> filteredLines = new ArrayList<String>( lines.size() );
818
819 for ( String line : lines )
820 {
821 if ( !providerExcludes.contains( line.trim() ) )
822 {
823 filteredLines.add( line.trim() );
824 }
825 else
826 {
827 log( Level.FINE,
828 getExcludedProviderInfo( getLocale(), resource.toExternalForm(), line.toString() ), null );
829
830 }
831 }
832
833 if ( lines.size() != filteredLines.size() )
834 {
835 OutputStream out = null;
836 final File tmpResource = File.createTempFile( this.getClass().getName(), ".rsrc" );
837 this.temporaryResources.add( tmpResource );
838
839 try
840 {
841 out = new FileOutputStream( tmpResource );
842 IOUtils.writeLines( filteredLines, System.getProperty( "line.separator", "\n" ), out, "UTF-8" );
843 suppressExceptionOnClose = false;
844 }
845 finally
846 {
847 try
848 {
849 if ( out != null )
850 {
851 out.close();
852 }
853
854 suppressExceptionOnClose = true;
855 }
856 catch ( final IOException e )
857 {
858 if ( suppressExceptionOnClose )
859 {
860 log( Level.SEVERE, getExceptionMessage( e ), e );
861 }
862 else
863 {
864 throw e;
865 }
866 }
867 }
868
869 filteredResource = tmpResource.toURI().toURL();
870 }
871
872 suppressExceptionOnClose = false;
873 return filteredResource;
874 }
875 finally
876 {
877 try
878 {
879 if ( in != null )
880 {
881 in.close();
882 }
883 }
884 catch ( final IOException e )
885 {
886 if ( suppressExceptionOnClose )
887 {
888 log( Level.SEVERE, getExceptionMessage( e ), e );
889 }
890 else
891 {
892 throw e;
893 }
894 }
895 }
896 }
897
898 private URL filterModlets( final URL resource ) throws ModelException, IOException, JAXBException
899 {
900 URL filteredResource = resource;
901 final List<String> excludedModletNames = Arrays.asList( getModletExcludes().split( ":" ) );
902 final ModelContext modelContext = ModelContextFactory.newInstance().newModelContext();
903 Object o = modelContext.createUnmarshaller( ModletObject.MODEL_PUBLIC_ID ).unmarshal( resource );
904 if ( o instanceof JAXBElement<?> )
905 {
906 o = ( (JAXBElement<?>) o ).getValue();
907 }
908
909 Modlets modlets = null;
910 boolean filtered = false;
911
912 if ( o instanceof Modlets )
913 {
914 modlets = (Modlets) o;
915 }
916 else if ( o instanceof Modlet )
917 {
918 modlets = new Modlets();
919 modlets.getModlet().add( (Modlet) o );
920 }
921
922 if ( modlets != null )
923 {
924 for ( final Iterator<Modlet> it = modlets.getModlet().iterator(); it.hasNext(); )
925 {
926 final Modlet m = it.next();
927
928 if ( excludedModletNames.contains( m.getName() ) )
929 {
930 it.remove();
931 filtered = true;
932 this.getExcludedModlets().getModlet().add( m );
933 log( Level.FINE,
934 getExcludedModletInfo( getLocale(), resource.toExternalForm(), m.getName() ), null );
935
936 continue;
937 }
938
939 if ( this.filterModlet( m, resource.toExternalForm() ) )
940 {
941 filtered = true;
942 }
943 }
944
945 if ( filtered )
946 {
947 final File tmpResource = File.createTempFile( this.getClass().getName(), ".rsrc" );
948 this.temporaryResources.add( tmpResource );
949 modelContext.createMarshaller( ModletObject.MODEL_PUBLIC_ID ).marshal(
950 new ObjectFactory().createModlets( modlets ), tmpResource );
951
952 filteredResource = tmpResource.toURI().toURL();
953 }
954 }
955
956 return filteredResource;
957 }
958
959 private boolean filterModlet( final Modlet modlet, final String resourceInfo )
960 {
961 boolean filteredSchemas = false;
962 boolean filteredServices = false;
963 final List<String> excludedSchemas = Arrays.asList( getSchemaExcludes().split( ":" ) );
964 final List<String> excludedServices = Arrays.asList( getServiceExcludes().split( ":" ) );
965
966 if ( modlet.getSchemas() != null )
967 {
968 final Schemas schemas = new Schemas();
969
970 for ( Schema s : modlet.getSchemas().getSchema() )
971 {
972 if ( !excludedSchemas.contains( s.getContextId() ) )
973 {
974 schemas.getSchema().add( s );
975 }
976 else
977 {
978 log( Level.FINE, getExcludedSchemaInfo( getLocale(), resourceInfo, s.getContextId() ), null );
979 filteredSchemas = true;
980 }
981 }
982
983 if ( filteredSchemas )
984 {
985 modlet.setSchemas( schemas );
986 }
987 }
988
989 if ( modlet.getServices() != null )
990 {
991 final Services services = new Services();
992
993 for ( Service s : modlet.getServices().getService() )
994 {
995 if ( !excludedServices.contains( s.getClazz() ) )
996 {
997 services.getService().add( s );
998 }
999 else
1000 {
1001 log( Level.FINE, getExcludedServiceInfo( getLocale(), resourceInfo, s.getClazz() ), null );
1002 filteredServices = true;
1003 }
1004 }
1005
1006 if ( filteredServices )
1007 {
1008 modlet.setServices( services );
1009 }
1010 }
1011
1012 return filteredSchemas || filteredServices;
1013 }
1014
1015 }
1016
1017
1018
1019
1020
1021 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1022 public AbstractModletCommand()
1023 {
1024
1025 super();
1026
1027 }
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1045 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1046 private org.apache.commons.cli.Option getClasspathOption()
1047 {
1048 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Classpath Option" );
1049 assert _d != null : "'Classpath Option' dependency not found.";
1050 return _d;
1051 }
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1065 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1066 private org.apache.commons.cli.Option getDocumentsOption()
1067 {
1068 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Documents Option" );
1069 assert _d != null : "'Documents Option' dependency not found.";
1070 return _d;
1071 }
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1085 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1086 private java.util.Locale getLocale()
1087 {
1088 final java.util.Locale _d = (java.util.Locale) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Locale" );
1089 assert _d != null : "'Locale' dependency not found.";
1090 return _d;
1091 }
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1105 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1106 private org.apache.commons.cli.Option getModelContextFactoryOption()
1107 {
1108 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" );
1109 assert _d != null : "'Model Context Factory Option' dependency not found.";
1110 return _d;
1111 }
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1125 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1126 private org.apache.commons.cli.Option getModelOption()
1127 {
1128 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Model Option" );
1129 assert _d != null : "'Model Option' dependency not found.";
1130 return _d;
1131 }
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1145 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1146 private org.apache.commons.cli.Option getModletLocationOption()
1147 {
1148 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Modlet Location Option" );
1149 assert _d != null : "'Modlet Location Option' dependency not found.";
1150 return _d;
1151 }
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1165 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1166 private org.apache.commons.cli.Option getModletSchemaSystemIdOption()
1167 {
1168 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" );
1169 assert _d != null : "'Modlet Schema System Id Option' dependency not found.";
1170 return _d;
1171 }
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1185 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1186 private org.apache.commons.cli.Option getNoModletResourceValidation()
1187 {
1188 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" );
1189 assert _d != null : "'No Modlet Resource Validation' dependency not found.";
1190 return _d;
1191 }
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1205 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1206 private org.apache.commons.cli.Option getPlatformProviderLocationOption()
1207 {
1208 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" );
1209 assert _d != null : "'Platform Provider Location Option' dependency not found.";
1210 return _d;
1211 }
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1225 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1226 private org.apache.commons.cli.Option getProviderLocationOption()
1227 {
1228 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Provider Location Option" );
1229 assert _d != null : "'Provider Location Option' dependency not found.";
1230 return _d;
1231 }
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1245 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1246 private java.lang.String getAbbreviatedCommandName()
1247 {
1248 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Abbreviated Command Name" );
1249 assert _p != null : "'Abbreviated Command Name' property not found.";
1250 return _p;
1251 }
1252
1253
1254
1255
1256
1257
1258
1259
1260 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1261 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1262 private java.lang.String getApplicationModlet()
1263 {
1264 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Application Modlet" );
1265 assert _p != null : "'Application Modlet' property not found.";
1266 return _p;
1267 }
1268
1269
1270
1271
1272
1273
1274
1275
1276 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1277 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1278 private java.lang.String getCommandName()
1279 {
1280 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Command Name" );
1281 assert _p != null : "'Command Name' property not found.";
1282 return _p;
1283 }
1284
1285
1286
1287
1288
1289
1290
1291
1292 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1293 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1294 private java.lang.String getModletExcludes()
1295 {
1296 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Modlet Excludes" );
1297 assert _p != null : "'Modlet Excludes' property not found.";
1298 return _p;
1299 }
1300
1301
1302
1303
1304
1305
1306
1307
1308 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1309 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1310 private java.lang.String getProviderExcludes()
1311 {
1312 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Provider Excludes" );
1313 assert _p != null : "'Provider Excludes' property not found.";
1314 return _p;
1315 }
1316
1317
1318
1319
1320
1321
1322
1323
1324 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1325 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1326 private java.lang.String getSchemaExcludes()
1327 {
1328 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Schema Excludes" );
1329 assert _p != null : "'Schema Excludes' property not found.";
1330 return _p;
1331 }
1332
1333
1334
1335
1336
1337
1338
1339
1340 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1341 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1342 private java.lang.String getServiceExcludes()
1343 {
1344 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "Service Excludes" );
1345 assert _p != null : "'Service Excludes' property not found.";
1346 return _p;
1347 }
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1364 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1365 private String getApplicationTitle( final java.util.Locale locale )
1366 {
1367 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Application Title", locale );
1368 assert _m != null : "'Application Title' message not found.";
1369 return _m;
1370 }
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1386 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1387 private String getCannotProcessMessage( final java.util.Locale locale, final java.lang.String itemInfo, final java.lang.String detailMessage )
1388 {
1389 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Cannot Process Message", locale, itemInfo, detailMessage );
1390 assert _m != null : "'Cannot Process Message' message not found.";
1391 return _m;
1392 }
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1407 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1408 private String getClasspathElementInfo( final java.util.Locale locale, final java.lang.String classpathElement )
1409 {
1410 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Classpath Element Info", locale, classpathElement );
1411 assert _m != null : "'Classpath Element Info' message not found.";
1412 return _m;
1413 }
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1428 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1429 private String getClasspathElementNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName )
1430 {
1431 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Classpath Element Not Found Warning", locale, fileName );
1432 assert _m != null : "'Classpath Element Not Found Warning' message not found.";
1433 return _m;
1434 }
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1449 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1450 private String getCommandFailureMessage( final java.util.Locale locale, final java.lang.String toolName )
1451 {
1452 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Command Failure Message", locale, toolName );
1453 assert _m != null : "'Command Failure Message' message not found.";
1454 return _m;
1455 }
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1470 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1471 private String getCommandInfoMessage( final java.util.Locale locale, final java.lang.String toolName )
1472 {
1473 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Command Info Message", locale, toolName );
1474 assert _m != null : "'Command Info Message' message not found.";
1475 return _m;
1476 }
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1491 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1492 private String getCommandSuccessMessage( final java.util.Locale locale, final java.lang.String toolName )
1493 {
1494 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Command Success Message", locale, toolName );
1495 assert _m != null : "'Command Success Message' message not found.";
1496 return _m;
1497 }
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1512 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1513 private String getDefaultLogLevelInfo( final java.util.Locale locale, final java.lang.String defaultLogLevel )
1514 {
1515 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Default Log Level Info", locale, defaultLogLevel );
1516 assert _m != null : "'Default Log Level Info' message not found.";
1517 return _m;
1518 }
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1533 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1534 private String getDocumentFileInfo( final java.util.Locale locale, final java.lang.String documentFile )
1535 {
1536 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Document File Info", locale, documentFile );
1537 assert _m != null : "'Document File Info' message not found.";
1538 return _m;
1539 }
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1554 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1555 private String getDocumentFileNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName )
1556 {
1557 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Document File Not Found Warning", locale, fileName );
1558 assert _m != null : "'Document File Not Found Warning' message not found.";
1559 return _m;
1560 }
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1576 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1577 private String getExcludedModletInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String modletIdentifier )
1578 {
1579 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Modlet Info", locale, resourceName, modletIdentifier );
1580 assert _m != null : "'Excluded Modlet Info' message not found.";
1581 return _m;
1582 }
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1598 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1599 private String getExcludedProviderInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String providerName )
1600 {
1601 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Provider Info", locale, resourceName, providerName );
1602 assert _m != null : "'Excluded Provider Info' message not found.";
1603 return _m;
1604 }
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1620 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1621 private String getExcludedSchemaInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String contextId )
1622 {
1623 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Schema Info", locale, resourceName, contextId );
1624 assert _m != null : "'Excluded Schema Info' message not found.";
1625 return _m;
1626 }
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1642 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1643 private String getExcludedServiceInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String serviceName )
1644 {
1645 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Excluded Service Info", locale, resourceName, serviceName );
1646 assert _m != null : "'Excluded Service Info' message not found.";
1647 return _m;
1648 }
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1663 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1664 private String getInvalidModelMessage( final java.util.Locale locale, final java.lang.String modelIdentifier )
1665 {
1666 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Invalid Model Message", locale, modelIdentifier );
1667 assert _m != null : "'Invalid Model Message' message not found.";
1668 return _m;
1669 }
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1682 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1683 private String getLongDescriptionMessage( final java.util.Locale locale )
1684 {
1685 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Long Description Message", locale );
1686 assert _m != null : "'Long Description Message' message not found.";
1687 return _m;
1688 }
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1703 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1704 private String getReadingMessage( final java.util.Locale locale, final java.lang.String locationInfo )
1705 {
1706 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Reading Message", locale, locationInfo );
1707 assert _m != null : "'Reading Message' message not found.";
1708 return _m;
1709 }
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1722 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1723 private String getSeparator( final java.util.Locale locale )
1724 {
1725 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Separator", locale );
1726 assert _m != null : "'Separator' message not found.";
1727 return _m;
1728 }
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740 @SuppressWarnings({"unchecked", "unused", "PMD.UnnecessaryFullyQualifiedName"})
1741 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1742 private String getShortDescriptionMessage( final java.util.Locale locale )
1743 {
1744 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "Short Description Message", locale );
1745 assert _m != null : "'Short Description Message' message not found.";
1746 return _m;
1747 }
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.8", comments = "See http://www.jomc.org/jomc/1.8/jomc-tools-1.8" )
1801 @Override
1802 public org.apache.commons.cli.Options getOptions()
1803 {
1804 final org.apache.commons.cli.Options options = new org.apache.commons.cli.Options();
1805 options.addOption( this.getClasspathOption() );
1806 options.addOption( this.getDocumentsOption() );
1807 options.addOption( this.getModelContextFactoryOption() );
1808 options.addOption( this.getModelOption() );
1809 options.addOption( this.getModletLocationOption() );
1810 options.addOption( this.getModletSchemaSystemIdOption() );
1811 options.addOption( this.getNoModletResourceValidation() );
1812 options.addOption( this.getPlatformProviderLocationOption() );
1813 options.addOption( this.getProviderLocationOption() );
1814 return options;
1815 }
1816
1817
1818 }