001// SECTION-START[License Header] 002// <editor-fold defaultstate="collapsed" desc=" Generated License "> 003/* 004 * Java Object Management and Configuration 005 * Copyright (C) Christian Schulte, 2005-206 006 * All rights reserved. 007 * 008 * Redistribution and use in source and binary forms, with or without 009 * modification, are permitted provided that the following conditions 010 * are met: 011 * 012 * o Redistributions of source code must retain the above copyright 013 * notice, this list of conditions and the following disclaimer. 014 * 015 * o Redistributions in binary form must reproduce the above copyright 016 * notice, this list of conditions and the following disclaimer in 017 * the documentation and/or other materials provided with the 018 * distribution. 019 * 020 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 021 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 022 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 023 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, 024 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 025 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 026 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 027 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 028 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 029 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 030 * 031 * $JOMC: MergeModulesCommand.java 4588 2012-06-03 06:01:30Z schulte2005 $ 032 * 033 */ 034// </editor-fold> 035// SECTION-END 036package org.jomc.cli.commands; 037 038import java.io.File; 039import java.io.IOException; 040import java.net.URL; 041import java.util.Arrays; 042import java.util.Enumeration; 043import java.util.Iterator; 044import java.util.List; 045import java.util.logging.Level; 046import javax.xml.bind.JAXBElement; 047import javax.xml.bind.JAXBException; 048import javax.xml.bind.Marshaller; 049import javax.xml.bind.Unmarshaller; 050import javax.xml.bind.util.JAXBResult; 051import javax.xml.bind.util.JAXBSource; 052import javax.xml.transform.Transformer; 053import javax.xml.transform.TransformerException; 054import javax.xml.transform.stream.StreamSource; 055import org.apache.commons.cli.CommandLine; 056import org.jomc.model.Module; 057import org.jomc.model.Modules; 058import org.jomc.model.ObjectFactory; 059import org.jomc.model.modlet.DefaultModelProvider; 060import org.jomc.modlet.ModelContext; 061import org.jomc.modlet.ModelException; 062import org.jomc.modlet.ModelValidationReport; 063 064// SECTION-START[Documentation] 065// <editor-fold defaultstate="collapsed" desc=" Generated Documentation "> 066/** 067 * JOMC CLI {@code merge-modules} command implementation. 068 * 069 * <dl> 070 * <dt><b>Identifier:</b></dt><dd>JOMC CLI merge-modules Command</dd> 071 * <dt><b>Name:</b></dt><dd>default-merge-modules</dd> 072 * <dt><b>Specifications:</b></dt> 073 * <dd>JOMC CLI Command @ 1.0</dd> 074 * <dt><b>Abstract:</b></dt><dd>No</dd> 075 * <dt><b>Final:</b></dt><dd>No</dd> 076 * <dt><b>Stateless:</b></dt><dd>No</dd> 077 * </dl> 078 * 079 * @author <a href="mailto:schulte2005@users.sourceforge.net">Christian Schulte</a> 1.0 080 * @version 1.3 081 */ 082// </editor-fold> 083// SECTION-END 084// SECTION-START[Annotations] 085// <editor-fold defaultstate="collapsed" desc=" Generated Annotations "> 086@javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 087// </editor-fold> 088// SECTION-END 089public final class MergeModulesCommand extends AbstractModelCommand 090{ 091 // SECTION-START[Command] 092 // SECTION-END 093 // SECTION-START[MergeModulesCommand] 094 095 protected void executeCommand( final CommandLine commandLine ) throws CommandExecutionException 096 { 097 if ( commandLine == null ) 098 { 099 throw new NullPointerException( "commandLine" ); 100 } 101 102 CommandLineClassLoader classLoader = null; 103 boolean suppressExceptionOnClose = true; 104 105 try 106 { 107 classLoader = new CommandLineClassLoader( commandLine ); 108 final Modules modules = new Modules(); 109 final ModelContext context = this.createModelContext( commandLine, classLoader ); 110 final String model = this.getModel( commandLine ); 111 final Marshaller marshaller = context.createMarshaller( model ); 112 final Unmarshaller unmarshaller = context.createUnmarshaller( model ); 113 114 if ( !commandLine.hasOption( this.getNoModelResourceValidation().getOpt() ) ) 115 { 116 unmarshaller.setSchema( context.createSchema( model ) ); 117 } 118 119 File stylesheetFile = null; 120 if ( commandLine.hasOption( this.getStylesheetOption().getOpt() ) ) 121 { 122 stylesheetFile = new File( commandLine.getOptionValue( this.getStylesheetOption().getOpt() ) ); 123 } 124 125 String moduleVersion = null; 126 if ( commandLine.hasOption( this.getModuleVersionOption().getOpt() ) ) 127 { 128 moduleVersion = commandLine.getOptionValue( this.getModuleVersionOption().getOpt() ); 129 } 130 131 String moduleVendor = null; 132 if ( commandLine.hasOption( this.getModuleVendorOption().getOpt() ) ) 133 { 134 moduleVendor = commandLine.getOptionValue( this.getModuleVendorOption().getOpt() ); 135 } 136 137 if ( commandLine.hasOption( this.getDocumentsOption().getOpt() ) ) 138 { 139 for ( File f : this.getDocumentFiles( commandLine ) ) 140 { 141 if ( this.isLoggable( Level.FINEST ) ) 142 { 143 this.log( Level.FINEST, this.getReadingMessage( this.getLocale(), f.getAbsolutePath() ), null ); 144 } 145 146 Object o = unmarshaller.unmarshal( f ); 147 if ( o instanceof JAXBElement<?> ) 148 { 149 o = ( (JAXBElement<?>) o ).getValue(); 150 } 151 152 if ( o instanceof Module ) 153 { 154 modules.getModule().add( (Module) o ); 155 } 156 else if ( o instanceof Modules ) 157 { 158 modules.getModule().addAll( ( (Modules) o ).getModule() ); 159 } 160 else if ( this.isLoggable( Level.WARNING ) ) 161 { 162 this.log( Level.WARNING, this.getCannotProcessMessage( 163 this.getLocale(), f.getAbsolutePath(), o.toString() ), null ); 164 165 } 166 } 167 } 168 169 if ( commandLine.hasOption( this.getClasspathOption().getOpt() ) ) 170 { 171 String[] resourceNames = null; 172 173 if ( commandLine.hasOption( this.getResourcesOption().getOpt() ) ) 174 { 175 resourceNames = commandLine.getOptionValues( this.getResourcesOption().getOpt() ); 176 } 177 178 if ( resourceNames == null ) 179 { 180 resourceNames = new String[] 181 { 182 DefaultModelProvider.getDefaultModuleLocation() 183 }; 184 } 185 186 for ( String resource : resourceNames ) 187 { 188 for ( final Enumeration<URL> e = classLoader.getResources( resource ); e.hasMoreElements(); ) 189 { 190 final URL url = e.nextElement(); 191 192 if ( this.isLoggable( Level.FINEST ) ) 193 { 194 this.log( Level.FINEST, this.getReadingMessage( this.getLocale(), url.toExternalForm() ), 195 null ); 196 197 } 198 199 Object o = unmarshaller.unmarshal( url ); 200 if ( o instanceof JAXBElement<?> ) 201 { 202 o = ( (JAXBElement<?>) o ).getValue(); 203 } 204 205 if ( o instanceof Module ) 206 { 207 modules.getModule().add( (Module) o ); 208 } 209 else if ( o instanceof Modules ) 210 { 211 modules.getModule().addAll( ( (Modules) o ).getModule() ); 212 } 213 else if ( this.isLoggable( Level.WARNING ) ) 214 { 215 this.log( Level.WARNING, this.getCannotProcessMessage( 216 this.getLocale(), url.toExternalForm(), o.toString() ), null ); 217 218 } 219 } 220 } 221 } 222 223 if ( commandLine.hasOption( this.getModuleIncludesOption().getOpt() ) ) 224 { 225 final String[] values = commandLine.getOptionValues( this.getModuleIncludesOption().getOpt() ); 226 227 if ( values != null ) 228 { 229 final List<String> includes = Arrays.asList( values ); 230 231 for ( final Iterator<Module> it = modules.getModule().iterator(); it.hasNext(); ) 232 { 233 final Module m = it.next(); 234 if ( !includes.contains( m.getName() ) ) 235 { 236 this.log( Level.INFO, this.getExcludingModuleInfo( this.getLocale(), m.getName() ), null ); 237 it.remove(); 238 } 239 else 240 { 241 this.log( Level.INFO, this.getIncludingModuleInfo( this.getLocale(), m.getName() ), null ); 242 } 243 } 244 } 245 } 246 247 if ( commandLine.hasOption( this.getModuleExcludesOption().getOpt() ) ) 248 { 249 final String[] values = commandLine.getOptionValues( this.getModuleExcludesOption().getOpt() ); 250 251 if ( values != null ) 252 { 253 for ( String exclude : values ) 254 { 255 final Module m = modules.getModule( exclude ); 256 257 if ( m != null ) 258 { 259 this.log( Level.INFO, this.getExcludingModuleInfo( this.getLocale(), m.getName() ), null ); 260 modules.getModule().remove( m ); 261 } 262 } 263 } 264 } 265 266 Module classpathModule = null; 267 if ( !commandLine.hasOption( this.getNoClasspathResolutionOption().getOpt() ) ) 268 { 269 classpathModule = modules.getClasspathModule( Modules.getDefaultClasspathModuleName(), classLoader ); 270 if ( classpathModule != null && modules.getModule( Modules.getDefaultClasspathModuleName() ) == null ) 271 { 272 modules.getModule().add( classpathModule ); 273 } 274 else 275 { 276 classpathModule = null; 277 } 278 } 279 280 final ModelValidationReport validationReport = context.validateModel( 281 model, new JAXBSource( marshaller, new ObjectFactory().createModules( modules ) ) ); 282 283 this.log( validationReport, marshaller ); 284 285 if ( !validationReport.isModelValid() ) 286 { 287 throw new CommandExecutionException( this.getInvalidModelMessage( this.getLocale(), model ) ); 288 } 289 290 if ( classpathModule != null ) 291 { 292 modules.getModule().remove( classpathModule ); 293 } 294 295 Module mergedModule = 296 modules.getMergedModule( commandLine.getOptionValue( this.getModuleNameOption().getOpt() ) ); 297 298 mergedModule.setVersion( moduleVersion ); 299 mergedModule.setVendor( moduleVendor ); 300 301 final File moduleFile = new File( commandLine.getOptionValue( this.getDocumentOption().getOpt() ) ); 302 303 if ( stylesheetFile != null ) 304 { 305 final Transformer transformer = this.createTransformer( new StreamSource( stylesheetFile ) ); 306 final JAXBSource source = 307 new JAXBSource( marshaller, new ObjectFactory().createModule( mergedModule ) ); 308 309 final JAXBResult result = new JAXBResult( unmarshaller ); 310 unmarshaller.setSchema( null ); 311 transformer.transform( source, result ); 312 313 if ( result.getResult() instanceof JAXBElement<?> 314 && ( (JAXBElement<?>) result.getResult() ).getValue() instanceof Module ) 315 { 316 mergedModule = (Module) ( (JAXBElement<?>) result.getResult() ).getValue(); 317 } 318 else 319 { 320 throw new CommandExecutionException( this.getIllegalTransformationResultError( 321 this.getLocale(), stylesheetFile.getAbsolutePath() ) ); 322 323 } 324 } 325 326 marshaller.setProperty( Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE ); 327 328 if ( commandLine.hasOption( this.getDocumentEncodingOption().getOpt() ) ) 329 { 330 marshaller.setProperty( Marshaller.JAXB_ENCODING, 331 commandLine.getOptionValue( this.getDocumentEncodingOption().getOpt() ) ); 332 333 } 334 335 marshaller.setSchema( context.createSchema( model ) ); 336 marshaller.marshal( new ObjectFactory().createModule( mergedModule ), moduleFile ); 337 338 if ( this.isLoggable( Level.INFO ) ) 339 { 340 this.log( Level.INFO, this.getWriteInfo( this.getLocale(), moduleFile.getAbsolutePath() ), null ); 341 } 342 343 suppressExceptionOnClose = false; 344 } 345 catch ( final IOException e ) 346 { 347 throw new CommandExecutionException( getExceptionMessage( e ), e ); 348 } 349 catch ( final TransformerException e ) 350 { 351 String message = getExceptionMessage( e ); 352 if ( message == null ) 353 { 354 message = getExceptionMessage( e.getException() ); 355 } 356 357 throw new CommandExecutionException( message, e ); 358 } 359 catch ( final JAXBException e ) 360 { 361 String message = getExceptionMessage( e ); 362 if ( message == null ) 363 { 364 message = getExceptionMessage( e.getLinkedException() ); 365 } 366 367 throw new CommandExecutionException( message, e ); 368 } 369 catch ( final ModelException e ) 370 { 371 throw new CommandExecutionException( getExceptionMessage( e ), e ); 372 } 373 finally 374 { 375 try 376 { 377 if ( classLoader != null ) 378 { 379 classLoader.close(); 380 } 381 } 382 catch ( final IOException e ) 383 { 384 if ( suppressExceptionOnClose ) 385 { 386 this.log( Level.SEVERE, getExceptionMessage( e ), e ); 387 } 388 else 389 { 390 throw new CommandExecutionException( getExceptionMessage( e ), e ); 391 } 392 } 393 } 394 } 395 396 // SECTION-END 397 // SECTION-START[Constructors] 398 // <editor-fold defaultstate="collapsed" desc=" Generated Constructors "> 399 /** Creates a new {@code MergeModulesCommand} instance. */ 400 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 401 public MergeModulesCommand() 402 { 403 // SECTION-START[Default Constructor] 404 super(); 405 // SECTION-END 406 } 407 // </editor-fold> 408 // SECTION-END 409 // SECTION-START[Dependencies] 410 // <editor-fold defaultstate="collapsed" desc=" Generated Dependencies "> 411 /** 412 * Gets the {@code <ClasspathOption>} dependency. 413 * <p> 414 * This method returns the {@code <JOMC CLI Classpath Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 415 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 416 * </p> 417 * <dl> 418 * <dt><b>Final:</b></dt><dd>No</dd> 419 * </dl> 420 * @return The {@code <ClasspathOption>} dependency. 421 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 422 */ 423 @SuppressWarnings("unused") 424 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 425 private org.apache.commons.cli.Option getClasspathOption() 426 { 427 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ClasspathOption" ); 428 assert _d != null : "'ClasspathOption' dependency not found."; 429 return _d; 430 } 431 /** 432 * Gets the {@code <DocumentEncodingOption>} dependency. 433 * <p> 434 * This method returns the {@code <JOMC CLI Document Encoding Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 435 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 436 * </p> 437 * <dl> 438 * <dt><b>Final:</b></dt><dd>No</dd> 439 * </dl> 440 * @return The {@code <DocumentEncodingOption>} dependency. 441 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 442 */ 443 @SuppressWarnings("unused") 444 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 445 private org.apache.commons.cli.Option getDocumentEncodingOption() 446 { 447 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "DocumentEncodingOption" ); 448 assert _d != null : "'DocumentEncodingOption' dependency not found."; 449 return _d; 450 } 451 /** 452 * Gets the {@code <DocumentOption>} dependency. 453 * <p> 454 * This method returns the {@code <JOMC CLI Document Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 455 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 456 * </p> 457 * <p><strong>Properties:</strong> 458 * <table border="1" width="100%" cellpadding="3" cellspacing="0"> 459 * <tr class="TableSubHeadingColor"> 460 * <th align="left" scope="col" nowrap><b>Name</b></th> 461 * <th align="left" scope="col" nowrap><b>Type</b></th> 462 * <th align="left" scope="col" nowrap><b>Documentation</b></th> 463 * </tr> 464 * <tr class="TableRow"> 465 * <td align="left" valign="top" nowrap>{@code <required>}</td> 466 * <td align="left" valign="top" nowrap>{@code boolean}</td> 467 * <td align="left" valign="top"></td> 468 * </tr> 469 * </table> 470 * </p> 471 * <dl> 472 * <dt><b>Final:</b></dt><dd>No</dd> 473 * </dl> 474 * @return The {@code <DocumentOption>} dependency. 475 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 476 */ 477 @SuppressWarnings("unused") 478 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 479 private org.apache.commons.cli.Option getDocumentOption() 480 { 481 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "DocumentOption" ); 482 assert _d != null : "'DocumentOption' dependency not found."; 483 return _d; 484 } 485 /** 486 * Gets the {@code <DocumentsOption>} dependency. 487 * <p> 488 * This method returns the {@code <JOMC CLI Documents Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 489 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 490 * </p> 491 * <dl> 492 * <dt><b>Final:</b></dt><dd>No</dd> 493 * </dl> 494 * @return The {@code <DocumentsOption>} dependency. 495 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 496 */ 497 @SuppressWarnings("unused") 498 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 499 private org.apache.commons.cli.Option getDocumentsOption() 500 { 501 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "DocumentsOption" ); 502 assert _d != null : "'DocumentsOption' dependency not found."; 503 return _d; 504 } 505 /** 506 * Gets the {@code <Locale>} dependency. 507 * <p> 508 * This method returns the {@code <default>} object of the {@code <java.util.Locale>} specification at specification level 1.1. 509 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 510 * </p> 511 * <dl> 512 * <dt><b>Final:</b></dt><dd>No</dd> 513 * </dl> 514 * @return The {@code <Locale>} dependency. 515 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 516 */ 517 @SuppressWarnings("unused") 518 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 519 private java.util.Locale getLocale() 520 { 521 final java.util.Locale _d = (java.util.Locale) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Locale" ); 522 assert _d != null : "'Locale' dependency not found."; 523 return _d; 524 } 525 /** 526 * Gets the {@code <ModelContextFactoryOption>} dependency. 527 * <p> 528 * This method returns the {@code <JOMC CLI ModelContextFactory Class Name Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 529 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 530 * </p> 531 * <dl> 532 * <dt><b>Final:</b></dt><dd>No</dd> 533 * </dl> 534 * @return The {@code <ModelContextFactoryOption>} dependency. 535 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 536 */ 537 @SuppressWarnings("unused") 538 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 539 private org.apache.commons.cli.Option getModelContextFactoryOption() 540 { 541 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModelContextFactoryOption" ); 542 assert _d != null : "'ModelContextFactoryOption' dependency not found."; 543 return _d; 544 } 545 /** 546 * Gets the {@code <ModelOption>} dependency. 547 * <p> 548 * This method returns the {@code <JOMC CLI Model Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 549 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 550 * </p> 551 * <dl> 552 * <dt><b>Final:</b></dt><dd>No</dd> 553 * </dl> 554 * @return The {@code <ModelOption>} dependency. 555 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 556 */ 557 @SuppressWarnings("unused") 558 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 559 private org.apache.commons.cli.Option getModelOption() 560 { 561 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModelOption" ); 562 assert _d != null : "'ModelOption' dependency not found."; 563 return _d; 564 } 565 /** 566 * Gets the {@code <ModletLocationOption>} dependency. 567 * <p> 568 * This method returns the {@code <JOMC CLI Modlet Location Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 569 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 570 * </p> 571 * <dl> 572 * <dt><b>Final:</b></dt><dd>No</dd> 573 * </dl> 574 * @return The {@code <ModletLocationOption>} dependency. 575 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 576 */ 577 @SuppressWarnings("unused") 578 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 579 private org.apache.commons.cli.Option getModletLocationOption() 580 { 581 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModletLocationOption" ); 582 assert _d != null : "'ModletLocationOption' dependency not found."; 583 return _d; 584 } 585 /** 586 * Gets the {@code <ModletSchemaSystemIdOption>} dependency. 587 * <p> 588 * This method returns the {@code <JOMC CLI Modlet Schema System Id Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 589 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 590 * </p> 591 * <dl> 592 * <dt><b>Final:</b></dt><dd>No</dd> 593 * </dl> 594 * @return The {@code <ModletSchemaSystemIdOption>} dependency. 595 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 596 */ 597 @SuppressWarnings("unused") 598 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 599 private org.apache.commons.cli.Option getModletSchemaSystemIdOption() 600 { 601 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModletSchemaSystemIdOption" ); 602 assert _d != null : "'ModletSchemaSystemIdOption' dependency not found."; 603 return _d; 604 } 605 /** 606 * Gets the {@code <ModuleExcludesOption>} dependency. 607 * <p> 608 * This method returns the {@code <JOMC CLI Module Excludes Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 609 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 610 * </p> 611 * <dl> 612 * <dt><b>Final:</b></dt><dd>No</dd> 613 * </dl> 614 * @return The {@code <ModuleExcludesOption>} dependency. 615 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 616 */ 617 @SuppressWarnings("unused") 618 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 619 private org.apache.commons.cli.Option getModuleExcludesOption() 620 { 621 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModuleExcludesOption" ); 622 assert _d != null : "'ModuleExcludesOption' dependency not found."; 623 return _d; 624 } 625 /** 626 * Gets the {@code <ModuleIncludesOption>} dependency. 627 * <p> 628 * This method returns the {@code <JOMC CLI Module Includes Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 629 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 630 * </p> 631 * <dl> 632 * <dt><b>Final:</b></dt><dd>No</dd> 633 * </dl> 634 * @return The {@code <ModuleIncludesOption>} dependency. 635 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 636 */ 637 @SuppressWarnings("unused") 638 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 639 private org.apache.commons.cli.Option getModuleIncludesOption() 640 { 641 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModuleIncludesOption" ); 642 assert _d != null : "'ModuleIncludesOption' dependency not found."; 643 return _d; 644 } 645 /** 646 * Gets the {@code <ModuleLocationOption>} dependency. 647 * <p> 648 * This method returns the {@code <JOMC CLI Module Location Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 649 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 650 * </p> 651 * <dl> 652 * <dt><b>Final:</b></dt><dd>No</dd> 653 * </dl> 654 * @return The {@code <ModuleLocationOption>} dependency. 655 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 656 */ 657 @SuppressWarnings("unused") 658 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 659 private org.apache.commons.cli.Option getModuleLocationOption() 660 { 661 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModuleLocationOption" ); 662 assert _d != null : "'ModuleLocationOption' dependency not found."; 663 return _d; 664 } 665 /** 666 * Gets the {@code <ModuleNameOption>} dependency. 667 * <p> 668 * This method returns the {@code <JOMC CLI Module Name Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 669 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 670 * </p> 671 * <p><strong>Properties:</strong> 672 * <table border="1" width="100%" cellpadding="3" cellspacing="0"> 673 * <tr class="TableSubHeadingColor"> 674 * <th align="left" scope="col" nowrap><b>Name</b></th> 675 * <th align="left" scope="col" nowrap><b>Type</b></th> 676 * <th align="left" scope="col" nowrap><b>Documentation</b></th> 677 * </tr> 678 * <tr class="TableRow"> 679 * <td align="left" valign="top" nowrap>{@code <required>}</td> 680 * <td align="left" valign="top" nowrap>{@code boolean}</td> 681 * <td align="left" valign="top"></td> 682 * </tr> 683 * </table> 684 * </p> 685 * <dl> 686 * <dt><b>Final:</b></dt><dd>No</dd> 687 * </dl> 688 * @return The {@code <ModuleNameOption>} dependency. 689 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 690 */ 691 @SuppressWarnings("unused") 692 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 693 private org.apache.commons.cli.Option getModuleNameOption() 694 { 695 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModuleNameOption" ); 696 assert _d != null : "'ModuleNameOption' dependency not found."; 697 return _d; 698 } 699 /** 700 * Gets the {@code <ModuleVendorOption>} dependency. 701 * <p> 702 * This method returns the {@code <JOMC CLI Module Vendor Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 703 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 704 * </p> 705 * <dl> 706 * <dt><b>Final:</b></dt><dd>No</dd> 707 * </dl> 708 * @return The {@code <ModuleVendorOption>} dependency. 709 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 710 */ 711 @SuppressWarnings("unused") 712 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 713 private org.apache.commons.cli.Option getModuleVendorOption() 714 { 715 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModuleVendorOption" ); 716 assert _d != null : "'ModuleVendorOption' dependency not found."; 717 return _d; 718 } 719 /** 720 * Gets the {@code <ModuleVersionOption>} dependency. 721 * <p> 722 * This method returns the {@code <JOMC CLI Module Version Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 723 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 724 * </p> 725 * <dl> 726 * <dt><b>Final:</b></dt><dd>No</dd> 727 * </dl> 728 * @return The {@code <ModuleVersionOption>} dependency. 729 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 730 */ 731 @SuppressWarnings("unused") 732 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 733 private org.apache.commons.cli.Option getModuleVersionOption() 734 { 735 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModuleVersionOption" ); 736 assert _d != null : "'ModuleVersionOption' dependency not found."; 737 return _d; 738 } 739 /** 740 * Gets the {@code <NoClasspathResolutionOption>} dependency. 741 * <p> 742 * This method returns the {@code <JOMC CLI No Classpath Resolution Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 743 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 744 * </p> 745 * <dl> 746 * <dt><b>Final:</b></dt><dd>No</dd> 747 * </dl> 748 * @return The {@code <NoClasspathResolutionOption>} dependency. 749 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 750 */ 751 @SuppressWarnings("unused") 752 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 753 private org.apache.commons.cli.Option getNoClasspathResolutionOption() 754 { 755 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "NoClasspathResolutionOption" ); 756 assert _d != null : "'NoClasspathResolutionOption' dependency not found."; 757 return _d; 758 } 759 /** 760 * Gets the {@code <NoModelProcessingOption>} dependency. 761 * <p> 762 * This method returns the {@code <JOMC CLI No Model Processing Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 763 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 764 * </p> 765 * <dl> 766 * <dt><b>Final:</b></dt><dd>No</dd> 767 * </dl> 768 * @return The {@code <NoModelProcessingOption>} dependency. 769 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 770 */ 771 @SuppressWarnings("unused") 772 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 773 private org.apache.commons.cli.Option getNoModelProcessingOption() 774 { 775 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "NoModelProcessingOption" ); 776 assert _d != null : "'NoModelProcessingOption' dependency not found."; 777 return _d; 778 } 779 /** 780 * Gets the {@code <NoModelResourceValidation>} dependency. 781 * <p> 782 * This method returns the {@code <JOMC CLI No Model Resource Validation Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 783 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 784 * </p> 785 * <dl> 786 * <dt><b>Final:</b></dt><dd>No</dd> 787 * </dl> 788 * @return The {@code <NoModelResourceValidation>} dependency. 789 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 790 */ 791 @SuppressWarnings("unused") 792 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 793 private org.apache.commons.cli.Option getNoModelResourceValidation() 794 { 795 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "NoModelResourceValidation" ); 796 assert _d != null : "'NoModelResourceValidation' dependency not found."; 797 return _d; 798 } 799 /** 800 * Gets the {@code <NoModletResourceValidation>} dependency. 801 * <p> 802 * This method returns the {@code <JOMC CLI No Modlet Resource Validation Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 803 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 804 * </p> 805 * <dl> 806 * <dt><b>Final:</b></dt><dd>No</dd> 807 * </dl> 808 * @return The {@code <NoModletResourceValidation>} dependency. 809 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 810 */ 811 @SuppressWarnings("unused") 812 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 813 private org.apache.commons.cli.Option getNoModletResourceValidation() 814 { 815 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "NoModletResourceValidation" ); 816 assert _d != null : "'NoModletResourceValidation' dependency not found."; 817 return _d; 818 } 819 /** 820 * Gets the {@code <PlatformProviderLocationOption>} dependency. 821 * <p> 822 * This method returns the {@code <JOMC CLI Platform Provider Location Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 823 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 824 * </p> 825 * <dl> 826 * <dt><b>Final:</b></dt><dd>No</dd> 827 * </dl> 828 * @return The {@code <PlatformProviderLocationOption>} dependency. 829 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 830 */ 831 @SuppressWarnings("unused") 832 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 833 private org.apache.commons.cli.Option getPlatformProviderLocationOption() 834 { 835 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "PlatformProviderLocationOption" ); 836 assert _d != null : "'PlatformProviderLocationOption' dependency not found."; 837 return _d; 838 } 839 /** 840 * Gets the {@code <ProviderLocationOption>} dependency. 841 * <p> 842 * This method returns the {@code <JOMC CLI Provider Location Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 843 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 844 * </p> 845 * <dl> 846 * <dt><b>Final:</b></dt><dd>No</dd> 847 * </dl> 848 * @return The {@code <ProviderLocationOption>} dependency. 849 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 850 */ 851 @SuppressWarnings("unused") 852 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 853 private org.apache.commons.cli.Option getProviderLocationOption() 854 { 855 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ProviderLocationOption" ); 856 assert _d != null : "'ProviderLocationOption' dependency not found."; 857 return _d; 858 } 859 /** 860 * Gets the {@code <ResourcesOption>} dependency. 861 * <p> 862 * This method returns the {@code <JOMC CLI Resources Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 863 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 864 * </p> 865 * <dl> 866 * <dt><b>Final:</b></dt><dd>No</dd> 867 * </dl> 868 * @return The {@code <ResourcesOption>} dependency. 869 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 870 */ 871 @SuppressWarnings("unused") 872 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 873 private org.apache.commons.cli.Option getResourcesOption() 874 { 875 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ResourcesOption" ); 876 assert _d != null : "'ResourcesOption' dependency not found."; 877 return _d; 878 } 879 /** 880 * Gets the {@code <StylesheetOption>} dependency. 881 * <p> 882 * This method returns the {@code <JOMC CLI Stylesheet Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 883 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 884 * </p> 885 * <dl> 886 * <dt><b>Final:</b></dt><dd>No</dd> 887 * </dl> 888 * @return The {@code <StylesheetOption>} dependency. 889 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 890 */ 891 @SuppressWarnings("unused") 892 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 893 private org.apache.commons.cli.Option getStylesheetOption() 894 { 895 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "StylesheetOption" ); 896 assert _d != null : "'StylesheetOption' dependency not found."; 897 return _d; 898 } 899 /** 900 * Gets the {@code <TransformerLocationOption>} dependency. 901 * <p> 902 * This method returns the {@code <JOMC CLI Transformer Location Option>} object of the {@code <JOMC CLI Command Option>} specification at specification level 1.2. 903 * That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance. 904 * </p> 905 * <dl> 906 * <dt><b>Final:</b></dt><dd>No</dd> 907 * </dl> 908 * @return The {@code <TransformerLocationOption>} dependency. 909 * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. 910 */ 911 @SuppressWarnings("unused") 912 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 913 private org.apache.commons.cli.Option getTransformerLocationOption() 914 { 915 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "TransformerLocationOption" ); 916 assert _d != null : "'TransformerLocationOption' dependency not found."; 917 return _d; 918 } 919 // </editor-fold> 920 // SECTION-END 921 // SECTION-START[Properties] 922 // <editor-fold defaultstate="collapsed" desc=" Generated Properties "> 923 /** 924 * Gets the value of the {@code <abbreviatedCommandName>} property. 925 * <p><dl> 926 * <dt><b>Final:</b></dt><dd>No</dd> 927 * </dl></p> 928 * @return Abbreviated name of the command. 929 * @throws org.jomc.ObjectManagementException if getting the property instance fails. 930 */ 931 @SuppressWarnings("unused") 932 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 933 private java.lang.String getAbbreviatedCommandName() 934 { 935 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "abbreviatedCommandName" ); 936 assert _p != null : "'abbreviatedCommandName' property not found."; 937 return _p; 938 } 939 /** 940 * Gets the value of the {@code <applicationModlet>} property. 941 * <p><dl> 942 * <dt><b>Final:</b></dt><dd>Yes</dd> 943 * </dl></p> 944 * @return Name of the 'shaded' application modlet. 945 * @throws org.jomc.ObjectManagementException if getting the property instance fails. 946 */ 947 @SuppressWarnings("unused") 948 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 949 private java.lang.String getApplicationModlet() 950 { 951 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "applicationModlet" ); 952 assert _p != null : "'applicationModlet' property not found."; 953 return _p; 954 } 955 /** 956 * Gets the value of the {@code <commandName>} property. 957 * <p><dl> 958 * <dt><b>Final:</b></dt><dd>No</dd> 959 * </dl></p> 960 * @return Name of the command. 961 * @throws org.jomc.ObjectManagementException if getting the property instance fails. 962 */ 963 @SuppressWarnings("unused") 964 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 965 private java.lang.String getCommandName() 966 { 967 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "commandName" ); 968 assert _p != null : "'commandName' property not found."; 969 return _p; 970 } 971 /** 972 * Gets the value of the {@code <modletExcludes>} property. 973 * <p><dl> 974 * <dt><b>Final:</b></dt><dd>Yes</dd> 975 * </dl></p> 976 * @return List of modlet names to exclude from any {@code META-INF/jomc-modlet.xml} files separated by {@code :}. 977 * @throws org.jomc.ObjectManagementException if getting the property instance fails. 978 */ 979 @SuppressWarnings("unused") 980 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 981 private java.lang.String getModletExcludes() 982 { 983 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "modletExcludes" ); 984 assert _p != null : "'modletExcludes' property not found."; 985 return _p; 986 } 987 /** 988 * Gets the value of the {@code <providerExcludes>} property. 989 * <p><dl> 990 * <dt><b>Final:</b></dt><dd>Yes</dd> 991 * </dl></p> 992 * @return List of providers to exclude from any {@code META-INF/services} files separated by {@code :}. 993 * @throws org.jomc.ObjectManagementException if getting the property instance fails. 994 */ 995 @SuppressWarnings("unused") 996 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 997 private java.lang.String getProviderExcludes() 998 { 999 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "providerExcludes" ); 1000 assert _p != null : "'providerExcludes' property not found."; 1001 return _p; 1002 } 1003 /** 1004 * Gets the value of the {@code <schemaExcludes>} property. 1005 * <p><dl> 1006 * <dt><b>Final:</b></dt><dd>Yes</dd> 1007 * </dl></p> 1008 * @return List of schema context-ids to exclude from any {@code META-INF/jomc-modlet.xml} files separated by {@code :}. 1009 * @throws org.jomc.ObjectManagementException if getting the property instance fails. 1010 */ 1011 @SuppressWarnings("unused") 1012 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1013 private java.lang.String getSchemaExcludes() 1014 { 1015 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "schemaExcludes" ); 1016 assert _p != null : "'schemaExcludes' property not found."; 1017 return _p; 1018 } 1019 /** 1020 * Gets the value of the {@code <serviceExcludes>} property. 1021 * <p><dl> 1022 * <dt><b>Final:</b></dt><dd>Yes</dd> 1023 * </dl></p> 1024 * @return List of service classes to exclude from any {@code META-INF/jomc-modlet.xml} files separated by {@code :}. 1025 * @throws org.jomc.ObjectManagementException if getting the property instance fails. 1026 */ 1027 @SuppressWarnings("unused") 1028 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1029 private java.lang.String getServiceExcludes() 1030 { 1031 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "serviceExcludes" ); 1032 assert _p != null : "'serviceExcludes' property not found."; 1033 return _p; 1034 } 1035 // </editor-fold> 1036 // SECTION-END 1037 // SECTION-START[Messages] 1038 // <editor-fold defaultstate="collapsed" desc=" Generated Messages "> 1039 /** 1040 * Gets the text of the {@code <applicationTitle>} message. 1041 * <p><dl> 1042 * <dt><b>Languages:</b></dt> 1043 * <dd>English (default)</dd> 1044 * <dt><b>Final:</b></dt><dd>No</dd> 1045 * </dl></p> 1046 * @param locale The locale of the message to return. 1047 * @return The text of the {@code <applicationTitle>} message for {@code locale}. 1048 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1049 */ 1050 @SuppressWarnings("unused") 1051 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1052 private String getApplicationTitle( final java.util.Locale locale ) 1053 { 1054 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "applicationTitle", locale ); 1055 assert _m != null : "'applicationTitle' message not found."; 1056 return _m; 1057 } 1058 /** 1059 * Gets the text of the {@code <cannotProcessMessage>} message. 1060 * <p><dl> 1061 * <dt><b>Languages:</b></dt> 1062 * <dd>English (default)</dd> 1063 * <dd>Deutsch</dd> 1064 * <dt><b>Final:</b></dt><dd>No</dd> 1065 * </dl></p> 1066 * @param locale The locale of the message to return. 1067 * @param itemInfo Format argument. 1068 * @param detailMessage Format argument. 1069 * @return The text of the {@code <cannotProcessMessage>} message for {@code locale}. 1070 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1071 */ 1072 @SuppressWarnings("unused") 1073 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1074 private String getCannotProcessMessage( final java.util.Locale locale, final java.lang.String itemInfo, final java.lang.String detailMessage ) 1075 { 1076 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "cannotProcessMessage", locale, itemInfo, detailMessage ); 1077 assert _m != null : "'cannotProcessMessage' message not found."; 1078 return _m; 1079 } 1080 /** 1081 * Gets the text of the {@code <classpathElementInfo>} message. 1082 * <p><dl> 1083 * <dt><b>Languages:</b></dt> 1084 * <dd>English (default)</dd> 1085 * <dd>Deutsch</dd> 1086 * <dt><b>Final:</b></dt><dd>No</dd> 1087 * </dl></p> 1088 * @param locale The locale of the message to return. 1089 * @param classpathElement Format argument. 1090 * @return The text of the {@code <classpathElementInfo>} message for {@code locale}. 1091 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1092 */ 1093 @SuppressWarnings("unused") 1094 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1095 private String getClasspathElementInfo( final java.util.Locale locale, final java.lang.String classpathElement ) 1096 { 1097 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathElementInfo", locale, classpathElement ); 1098 assert _m != null : "'classpathElementInfo' message not found."; 1099 return _m; 1100 } 1101 /** 1102 * Gets the text of the {@code <classpathElementNotFoundWarning>} message. 1103 * <p><dl> 1104 * <dt><b>Languages:</b></dt> 1105 * <dd>English (default)</dd> 1106 * <dd>Deutsch</dd> 1107 * <dt><b>Final:</b></dt><dd>No</dd> 1108 * </dl></p> 1109 * @param locale The locale of the message to return. 1110 * @param fileName Format argument. 1111 * @return The text of the {@code <classpathElementNotFoundWarning>} message for {@code locale}. 1112 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1113 */ 1114 @SuppressWarnings("unused") 1115 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1116 private String getClasspathElementNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName ) 1117 { 1118 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathElementNotFoundWarning", locale, fileName ); 1119 assert _m != null : "'classpathElementNotFoundWarning' message not found."; 1120 return _m; 1121 } 1122 /** 1123 * Gets the text of the {@code <commandFailureMessage>} message. 1124 * <p><dl> 1125 * <dt><b>Languages:</b></dt> 1126 * <dd>English (default)</dd> 1127 * <dd>Deutsch</dd> 1128 * <dt><b>Final:</b></dt><dd>No</dd> 1129 * </dl></p> 1130 * @param locale The locale of the message to return. 1131 * @param toolName Format argument. 1132 * @return The text of the {@code <commandFailureMessage>} message for {@code locale}. 1133 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1134 */ 1135 @SuppressWarnings("unused") 1136 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1137 private String getCommandFailureMessage( final java.util.Locale locale, final java.lang.String toolName ) 1138 { 1139 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "commandFailureMessage", locale, toolName ); 1140 assert _m != null : "'commandFailureMessage' message not found."; 1141 return _m; 1142 } 1143 /** 1144 * Gets the text of the {@code <commandInfoMessage>} message. 1145 * <p><dl> 1146 * <dt><b>Languages:</b></dt> 1147 * <dd>English (default)</dd> 1148 * <dd>Deutsch</dd> 1149 * <dt><b>Final:</b></dt><dd>No</dd> 1150 * </dl></p> 1151 * @param locale The locale of the message to return. 1152 * @param toolName Format argument. 1153 * @return The text of the {@code <commandInfoMessage>} message for {@code locale}. 1154 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1155 */ 1156 @SuppressWarnings("unused") 1157 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1158 private String getCommandInfoMessage( final java.util.Locale locale, final java.lang.String toolName ) 1159 { 1160 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "commandInfoMessage", locale, toolName ); 1161 assert _m != null : "'commandInfoMessage' message not found."; 1162 return _m; 1163 } 1164 /** 1165 * Gets the text of the {@code <commandSuccessMessage>} message. 1166 * <p><dl> 1167 * <dt><b>Languages:</b></dt> 1168 * <dd>English (default)</dd> 1169 * <dd>Deutsch</dd> 1170 * <dt><b>Final:</b></dt><dd>No</dd> 1171 * </dl></p> 1172 * @param locale The locale of the message to return. 1173 * @param toolName Format argument. 1174 * @return The text of the {@code <commandSuccessMessage>} message for {@code locale}. 1175 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1176 */ 1177 @SuppressWarnings("unused") 1178 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1179 private String getCommandSuccessMessage( final java.util.Locale locale, final java.lang.String toolName ) 1180 { 1181 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "commandSuccessMessage", locale, toolName ); 1182 assert _m != null : "'commandSuccessMessage' message not found."; 1183 return _m; 1184 } 1185 /** 1186 * Gets the text of the {@code <defaultLogLevelInfo>} message. 1187 * <p><dl> 1188 * <dt><b>Languages:</b></dt> 1189 * <dd>English (default)</dd> 1190 * <dd>Deutsch</dd> 1191 * <dt><b>Final:</b></dt><dd>No</dd> 1192 * </dl></p> 1193 * @param locale The locale of the message to return. 1194 * @param defaultLogLevel Format argument. 1195 * @return The text of the {@code <defaultLogLevelInfo>} message for {@code locale}. 1196 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1197 */ 1198 @SuppressWarnings("unused") 1199 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1200 private String getDefaultLogLevelInfo( final java.util.Locale locale, final java.lang.String defaultLogLevel ) 1201 { 1202 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "defaultLogLevelInfo", locale, defaultLogLevel ); 1203 assert _m != null : "'defaultLogLevelInfo' message not found."; 1204 return _m; 1205 } 1206 /** 1207 * Gets the text of the {@code <documentFileInfo>} message. 1208 * <p><dl> 1209 * <dt><b>Languages:</b></dt> 1210 * <dd>English (default)</dd> 1211 * <dd>Deutsch</dd> 1212 * <dt><b>Final:</b></dt><dd>No</dd> 1213 * </dl></p> 1214 * @param locale The locale of the message to return. 1215 * @param documentFile Format argument. 1216 * @return The text of the {@code <documentFileInfo>} message for {@code locale}. 1217 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1218 */ 1219 @SuppressWarnings("unused") 1220 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1221 private String getDocumentFileInfo( final java.util.Locale locale, final java.lang.String documentFile ) 1222 { 1223 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentFileInfo", locale, documentFile ); 1224 assert _m != null : "'documentFileInfo' message not found."; 1225 return _m; 1226 } 1227 /** 1228 * Gets the text of the {@code <documentFileNotFoundWarning>} message. 1229 * <p><dl> 1230 * <dt><b>Languages:</b></dt> 1231 * <dd>English (default)</dd> 1232 * <dd>Deutsch</dd> 1233 * <dt><b>Final:</b></dt><dd>No</dd> 1234 * </dl></p> 1235 * @param locale The locale of the message to return. 1236 * @param fileName Format argument. 1237 * @return The text of the {@code <documentFileNotFoundWarning>} message for {@code locale}. 1238 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1239 */ 1240 @SuppressWarnings("unused") 1241 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1242 private String getDocumentFileNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName ) 1243 { 1244 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentFileNotFoundWarning", locale, fileName ); 1245 assert _m != null : "'documentFileNotFoundWarning' message not found."; 1246 return _m; 1247 } 1248 /** 1249 * Gets the text of the {@code <excludedModletInfo>} message. 1250 * <p><dl> 1251 * <dt><b>Languages:</b></dt> 1252 * <dd>English (default)</dd> 1253 * <dd>Deutsch</dd> 1254 * <dt><b>Final:</b></dt><dd>No</dd> 1255 * </dl></p> 1256 * @param locale The locale of the message to return. 1257 * @param resourceName Format argument. 1258 * @param modletIdentifier Format argument. 1259 * @return The text of the {@code <excludedModletInfo>} message for {@code locale}. 1260 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1261 */ 1262 @SuppressWarnings("unused") 1263 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1264 private String getExcludedModletInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String modletIdentifier ) 1265 { 1266 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedModletInfo", locale, resourceName, modletIdentifier ); 1267 assert _m != null : "'excludedModletInfo' message not found."; 1268 return _m; 1269 } 1270 /** 1271 * Gets the text of the {@code <excludedProviderInfo>} message. 1272 * <p><dl> 1273 * <dt><b>Languages:</b></dt> 1274 * <dd>English (default)</dd> 1275 * <dd>Deutsch</dd> 1276 * <dt><b>Final:</b></dt><dd>No</dd> 1277 * </dl></p> 1278 * @param locale The locale of the message to return. 1279 * @param resourceName Format argument. 1280 * @param providerName Format argument. 1281 * @return The text of the {@code <excludedProviderInfo>} message for {@code locale}. 1282 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1283 */ 1284 @SuppressWarnings("unused") 1285 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1286 private String getExcludedProviderInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String providerName ) 1287 { 1288 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedProviderInfo", locale, resourceName, providerName ); 1289 assert _m != null : "'excludedProviderInfo' message not found."; 1290 return _m; 1291 } 1292 /** 1293 * Gets the text of the {@code <excludedSchemaInfo>} message. 1294 * <p><dl> 1295 * <dt><b>Languages:</b></dt> 1296 * <dd>English (default)</dd> 1297 * <dd>Deutsch</dd> 1298 * <dt><b>Final:</b></dt><dd>No</dd> 1299 * </dl></p> 1300 * @param locale The locale of the message to return. 1301 * @param resourceName Format argument. 1302 * @param contextId Format argument. 1303 * @return The text of the {@code <excludedSchemaInfo>} message for {@code locale}. 1304 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1305 */ 1306 @SuppressWarnings("unused") 1307 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1308 private String getExcludedSchemaInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String contextId ) 1309 { 1310 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedSchemaInfo", locale, resourceName, contextId ); 1311 assert _m != null : "'excludedSchemaInfo' message not found."; 1312 return _m; 1313 } 1314 /** 1315 * Gets the text of the {@code <excludedServiceInfo>} message. 1316 * <p><dl> 1317 * <dt><b>Languages:</b></dt> 1318 * <dd>English (default)</dd> 1319 * <dd>Deutsch</dd> 1320 * <dt><b>Final:</b></dt><dd>No</dd> 1321 * </dl></p> 1322 * @param locale The locale of the message to return. 1323 * @param resourceName Format argument. 1324 * @param serviceName Format argument. 1325 * @return The text of the {@code <excludedServiceInfo>} message for {@code locale}. 1326 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1327 */ 1328 @SuppressWarnings("unused") 1329 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1330 private String getExcludedServiceInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String serviceName ) 1331 { 1332 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedServiceInfo", locale, resourceName, serviceName ); 1333 assert _m != null : "'excludedServiceInfo' message not found."; 1334 return _m; 1335 } 1336 /** 1337 * Gets the text of the {@code <excludingModuleInfo>} message. 1338 * <p><dl> 1339 * <dt><b>Languages:</b></dt> 1340 * <dd>English (default)</dd> 1341 * <dd>Deutsch</dd> 1342 * <dt><b>Final:</b></dt><dd>No</dd> 1343 * </dl></p> 1344 * @param locale The locale of the message to return. 1345 * @param moduleName Format argument. 1346 * @return The text of the {@code <excludingModuleInfo>} message for {@code locale}. 1347 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1348 */ 1349 @SuppressWarnings("unused") 1350 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1351 private String getExcludingModuleInfo( final java.util.Locale locale, final java.lang.String moduleName ) 1352 { 1353 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludingModuleInfo", locale, moduleName ); 1354 assert _m != null : "'excludingModuleInfo' message not found."; 1355 return _m; 1356 } 1357 /** 1358 * Gets the text of the {@code <illegalTransformationResultError>} message. 1359 * <p><dl> 1360 * <dt><b>Languages:</b></dt> 1361 * <dd>English (default)</dd> 1362 * <dd>Deutsch</dd> 1363 * <dt><b>Final:</b></dt><dd>No</dd> 1364 * </dl></p> 1365 * @param locale The locale of the message to return. 1366 * @param stylesheetInfo Format argument. 1367 * @return The text of the {@code <illegalTransformationResultError>} message for {@code locale}. 1368 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1369 */ 1370 @SuppressWarnings("unused") 1371 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1372 private String getIllegalTransformationResultError( final java.util.Locale locale, final java.lang.String stylesheetInfo ) 1373 { 1374 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "illegalTransformationResultError", locale, stylesheetInfo ); 1375 assert _m != null : "'illegalTransformationResultError' message not found."; 1376 return _m; 1377 } 1378 /** 1379 * Gets the text of the {@code <includingModuleInfo>} message. 1380 * <p><dl> 1381 * <dt><b>Languages:</b></dt> 1382 * <dd>English (default)</dd> 1383 * <dd>Deutsch</dd> 1384 * <dt><b>Final:</b></dt><dd>No</dd> 1385 * </dl></p> 1386 * @param locale The locale of the message to return. 1387 * @param moduleName Format argument. 1388 * @return The text of the {@code <includingModuleInfo>} message for {@code locale}. 1389 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1390 */ 1391 @SuppressWarnings("unused") 1392 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1393 private String getIncludingModuleInfo( final java.util.Locale locale, final java.lang.String moduleName ) 1394 { 1395 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "includingModuleInfo", locale, moduleName ); 1396 assert _m != null : "'includingModuleInfo' message not found."; 1397 return _m; 1398 } 1399 /** 1400 * Gets the text of the {@code <invalidModelMessage>} message. 1401 * <p><dl> 1402 * <dt><b>Languages:</b></dt> 1403 * <dd>English (default)</dd> 1404 * <dd>Deutsch</dd> 1405 * <dt><b>Final:</b></dt><dd>No</dd> 1406 * </dl></p> 1407 * @param locale The locale of the message to return. 1408 * @param modelIdentifier Format argument. 1409 * @return The text of the {@code <invalidModelMessage>} message for {@code locale}. 1410 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1411 */ 1412 @SuppressWarnings("unused") 1413 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1414 private String getInvalidModelMessage( final java.util.Locale locale, final java.lang.String modelIdentifier ) 1415 { 1416 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "invalidModelMessage", locale, modelIdentifier ); 1417 assert _m != null : "'invalidModelMessage' message not found."; 1418 return _m; 1419 } 1420 /** 1421 * Gets the text of the {@code <longDescriptionMessage>} message. 1422 * <p><dl> 1423 * <dt><b>Languages:</b></dt> 1424 * <dd>English (default)</dd> 1425 * <dd>Deutsch</dd> 1426 * <dt><b>Final:</b></dt><dd>No</dd> 1427 * </dl></p> 1428 * @param locale The locale of the message to return. 1429 * @return The text of the {@code <longDescriptionMessage>} message for {@code locale}. 1430 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1431 */ 1432 @SuppressWarnings("unused") 1433 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1434 private String getLongDescriptionMessage( final java.util.Locale locale ) 1435 { 1436 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "longDescriptionMessage", locale ); 1437 assert _m != null : "'longDescriptionMessage' message not found."; 1438 return _m; 1439 } 1440 /** 1441 * Gets the text of the {@code <readingMessage>} message. 1442 * <p><dl> 1443 * <dt><b>Languages:</b></dt> 1444 * <dd>English (default)</dd> 1445 * <dd>Deutsch</dd> 1446 * <dt><b>Final:</b></dt><dd>No</dd> 1447 * </dl></p> 1448 * @param locale The locale of the message to return. 1449 * @param locationInfo Format argument. 1450 * @return The text of the {@code <readingMessage>} message for {@code locale}. 1451 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1452 */ 1453 @SuppressWarnings("unused") 1454 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1455 private String getReadingMessage( final java.util.Locale locale, final java.lang.String locationInfo ) 1456 { 1457 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "readingMessage", locale, locationInfo ); 1458 assert _m != null : "'readingMessage' message not found."; 1459 return _m; 1460 } 1461 /** 1462 * Gets the text of the {@code <separator>} message. 1463 * <p><dl> 1464 * <dt><b>Languages:</b></dt> 1465 * <dd>English (default)</dd> 1466 * <dt><b>Final:</b></dt><dd>No</dd> 1467 * </dl></p> 1468 * @param locale The locale of the message to return. 1469 * @return The text of the {@code <separator>} message for {@code locale}. 1470 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1471 */ 1472 @SuppressWarnings("unused") 1473 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1474 private String getSeparator( final java.util.Locale locale ) 1475 { 1476 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "separator", locale ); 1477 assert _m != null : "'separator' message not found."; 1478 return _m; 1479 } 1480 /** 1481 * Gets the text of the {@code <shortDescriptionMessage>} message. 1482 * <p><dl> 1483 * <dt><b>Languages:</b></dt> 1484 * <dd>English (default)</dd> 1485 * <dd>Deutsch</dd> 1486 * <dt><b>Final:</b></dt><dd>No</dd> 1487 * </dl></p> 1488 * @param locale The locale of the message to return. 1489 * @return The text of the {@code <shortDescriptionMessage>} message for {@code locale}. 1490 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1491 */ 1492 @SuppressWarnings("unused") 1493 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1494 private String getShortDescriptionMessage( final java.util.Locale locale ) 1495 { 1496 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "shortDescriptionMessage", locale ); 1497 assert _m != null : "'shortDescriptionMessage' message not found."; 1498 return _m; 1499 } 1500 /** 1501 * Gets the text of the {@code <writeInfo>} message. 1502 * <p><dl> 1503 * <dt><b>Languages:</b></dt> 1504 * <dd>English (default)</dd> 1505 * <dd>Deutsch</dd> 1506 * <dt><b>Final:</b></dt><dd>No</dd> 1507 * </dl></p> 1508 * @param locale The locale of the message to return. 1509 * @param fileName Format argument. 1510 * @return The text of the {@code <writeInfo>} message for {@code locale}. 1511 * @throws org.jomc.ObjectManagementException if getting the message instance fails. 1512 */ 1513 @SuppressWarnings("unused") 1514 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1515 private String getWriteInfo( final java.util.Locale locale, final java.lang.String fileName ) 1516 { 1517 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "writeInfo", locale, fileName ); 1518 assert _m != null : "'writeInfo' message not found."; 1519 return _m; 1520 } 1521 // </editor-fold> 1522 // SECTION-END 1523 // SECTION-START[Generated Command] 1524 // <editor-fold defaultstate="collapsed" desc=" Generated Options "> 1525 /** 1526 * Gets the options of the command. 1527 * <p><strong>Options:</strong> 1528 * <table border="1" width="100%" cellpadding="3" cellspacing="0"> 1529 * <tr class="TableSubHeadingColor"> 1530 * <th align="left" scope="col" nowrap><b>Specification</b></th> 1531 * <th align="left" scope="col" nowrap><b>Implementation</b></th> 1532 * </tr> 1533 * <tr class="TableRow"> 1534 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1535 * <td align="left" valign="top" nowrap>JOMC CLI Classpath Option</td> 1536 * </tr> 1537 * <tr class="TableRow"> 1538 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1539 * <td align="left" valign="top" nowrap>JOMC CLI Document Encoding Option</td> 1540 * </tr> 1541 * <tr class="TableRow"> 1542 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1543 * <td align="left" valign="top" nowrap>JOMC CLI Document Option</td> 1544 * </tr> 1545 * <tr class="TableRow"> 1546 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1547 * <td align="left" valign="top" nowrap>JOMC CLI Documents Option</td> 1548 * </tr> 1549 * <tr class="TableRow"> 1550 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1551 * <td align="left" valign="top" nowrap>JOMC CLI ModelContextFactory Class Name Option</td> 1552 * </tr> 1553 * <tr class="TableRow"> 1554 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1555 * <td align="left" valign="top" nowrap>JOMC CLI Model Option</td> 1556 * </tr> 1557 * <tr class="TableRow"> 1558 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1559 * <td align="left" valign="top" nowrap>JOMC CLI Modlet Location Option</td> 1560 * </tr> 1561 * <tr class="TableRow"> 1562 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1563 * <td align="left" valign="top" nowrap>JOMC CLI Modlet Schema System Id Option</td> 1564 * </tr> 1565 * <tr class="TableRow"> 1566 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1567 * <td align="left" valign="top" nowrap>JOMC CLI Module Excludes Option</td> 1568 * </tr> 1569 * <tr class="TableRow"> 1570 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1571 * <td align="left" valign="top" nowrap>JOMC CLI Module Includes Option</td> 1572 * </tr> 1573 * <tr class="TableRow"> 1574 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1575 * <td align="left" valign="top" nowrap>JOMC CLI Module Location Option</td> 1576 * </tr> 1577 * <tr class="TableRow"> 1578 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1579 * <td align="left" valign="top" nowrap>JOMC CLI Module Name Option</td> 1580 * </tr> 1581 * <tr class="TableRow"> 1582 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1583 * <td align="left" valign="top" nowrap>JOMC CLI Module Vendor Option</td> 1584 * </tr> 1585 * <tr class="TableRow"> 1586 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1587 * <td align="left" valign="top" nowrap>JOMC CLI Module Version Option</td> 1588 * </tr> 1589 * <tr class="TableRow"> 1590 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1591 * <td align="left" valign="top" nowrap>JOMC CLI No Classpath Resolution Option</td> 1592 * </tr> 1593 * <tr class="TableRow"> 1594 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1595 * <td align="left" valign="top" nowrap>JOMC CLI No Model Processing Option</td> 1596 * </tr> 1597 * <tr class="TableRow"> 1598 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1599 * <td align="left" valign="top" nowrap>JOMC CLI No Model Resource Validation Option</td> 1600 * </tr> 1601 * <tr class="TableRow"> 1602 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1603 * <td align="left" valign="top" nowrap>JOMC CLI No Modlet Resource Validation Option</td> 1604 * </tr> 1605 * <tr class="TableRow"> 1606 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1607 * <td align="left" valign="top" nowrap>JOMC CLI Platform Provider Location Option</td> 1608 * </tr> 1609 * <tr class="TableRow"> 1610 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1611 * <td align="left" valign="top" nowrap>JOMC CLI Provider Location Option</td> 1612 * </tr> 1613 * <tr class="TableRow"> 1614 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1615 * <td align="left" valign="top" nowrap>JOMC CLI Resources Option</td> 1616 * </tr> 1617 * <tr class="TableRow"> 1618 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1619 * <td align="left" valign="top" nowrap>JOMC CLI Stylesheet Option</td> 1620 * </tr> 1621 * <tr class="TableRow"> 1622 * <td align="left" valign="top" nowrap>JOMC CLI Command Option {@code (org.apache.commons.cli.Option)} @ 1.2</td> 1623 * <td align="left" valign="top" nowrap>JOMC CLI Transformer Location Option</td> 1624 * </tr> 1625 * </table> 1626 * </p> 1627 * @return The options of the command. 1628 */ 1629 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 1630 @Override 1631 public org.apache.commons.cli.Options getOptions() 1632 { 1633 final org.apache.commons.cli.Options options = new org.apache.commons.cli.Options(); 1634 options.addOption( this.getClasspathOption() ); 1635 options.addOption( this.getDocumentEncodingOption() ); 1636 options.addOption( this.getDocumentOption() ); 1637 options.addOption( this.getDocumentsOption() ); 1638 options.addOption( this.getModelContextFactoryOption() ); 1639 options.addOption( this.getModelOption() ); 1640 options.addOption( this.getModletLocationOption() ); 1641 options.addOption( this.getModletSchemaSystemIdOption() ); 1642 options.addOption( this.getModuleExcludesOption() ); 1643 options.addOption( this.getModuleIncludesOption() ); 1644 options.addOption( this.getModuleLocationOption() ); 1645 options.addOption( this.getModuleNameOption() ); 1646 options.addOption( this.getModuleVendorOption() ); 1647 options.addOption( this.getModuleVersionOption() ); 1648 options.addOption( this.getNoClasspathResolutionOption() ); 1649 options.addOption( this.getNoModelProcessingOption() ); 1650 options.addOption( this.getNoModelResourceValidation() ); 1651 options.addOption( this.getNoModletResourceValidation() ); 1652 options.addOption( this.getPlatformProviderLocationOption() ); 1653 options.addOption( this.getProviderLocationOption() ); 1654 options.addOption( this.getResourcesOption() ); 1655 options.addOption( this.getStylesheetOption() ); 1656 options.addOption( this.getTransformerLocationOption() ); 1657 return options; 1658 } 1659 // </editor-fold> 1660 // SECTION-END 1661}