@Generated(value="org.jomc.tools.SourceFileProcessor 1.8", comments="See http://www.jomc.org/jomc/1.8/jomc-tools-1.8") public abstract class AbstractModletCommand extends AbstractCommand
Modifier and Type | Class and Description |
---|---|
class |
AbstractModletCommand.CommandLineClassLoader
Class loader backed by a command line.
|
Command.Listener
STATUS_FAILURE, STATUS_SUCCESS
Constructor and Description |
---|
AbstractModletCommand()
Creates a new
AbstractModletCommand instance. |
Modifier and Type | Method and Description |
---|---|
protected ModelContext |
createModelContext(CommandLine commandLine,
ClassLoader classLoader)
Creates a new
ModelContext for a given CommandLine and ClassLoader . |
protected Transformer |
createTransformer(Source source)
Creates a new
Transformer from a given Source . |
protected Set<File> |
getDocumentFiles(CommandLine commandLine)
Gets the document files specified by a given command line.
|
protected String |
getModel(CommandLine commandLine)
Gets the identifier of the model to process.
|
Options |
getOptions()
Gets the options of the command.
|
protected void |
log(ModelValidationReport validationReport,
javax.xml.bind.Marshaller marshaller)
Logs a validation report.
|
execute, executeCommand, getAbbreviatedName, getDefaultLogLevel, getExceptionMessage, getListeners, getLogLevel, getLongDescription, getName, getShortDescription, isLoggable, log, postExecuteCommand, preExecuteCommand, setDefaultLogLevel, setLogLevel
@Generated(value="org.jomc.tools.SourceFileProcessor 1.8", comments="See http://www.jomc.org/jomc/1.8/jomc-tools-1.8") public AbstractModletCommand()
AbstractModletCommand
instance.protected Transformer createTransformer(Source source) throws CommandExecutionException
Transformer
from a given Source
.source
- The source to initialize the transformer with.Transformer
backed by source
.NullPointerException
- if source
is null
.CommandExecutionException
- if creating a transformer fails.protected ModelContext createModelContext(CommandLine commandLine, ClassLoader classLoader) throws CommandExecutionException
ModelContext
for a given CommandLine
and ClassLoader
.commandLine
- The CommandLine
to create a new ModelContext
with.classLoader
- The ClassLoader
to create a new ModelContext
with.ModelContext
for classLoader
setup using commandLine
.NullPointerException
- if commandLine
is null
.CommandExecutionException
- if creating an new ModelContext
fails.protected String getModel(CommandLine commandLine)
commandLine
- The command line to get the identifier of the model to process from.NullPointerException
- if commandLine
is null
.protected void log(ModelValidationReport validationReport, javax.xml.bind.Marshaller marshaller) throws CommandExecutionException
validationReport
- The report to log.marshaller
- The marshaller to use for logging the report.CommandExecutionException
- if logging a report detail element fails.protected Set<File> getDocumentFiles(CommandLine commandLine) throws CommandExecutionException
commandLine
- The command line specifying the document files to get.commandLine
.CommandExecutionException
- if getting the document files fails.@Generated(value="org.jomc.tools.SourceFileProcessor 1.8", comments="See http://www.jomc.org/jomc/1.8/jomc-tools-1.8") public Options getOptions()
Options:
Specification | Implementation |
---|---|
JOMC ⁑ CLI ⁑ Command Option (org.apache.commons.cli.Option) @ 1.2 |
JOMC ⁑ CLI ⁑ Classpath Option |
JOMC ⁑ CLI ⁑ Command Option (org.apache.commons.cli.Option) @ 1.2 |
JOMC ⁑ CLI ⁑ Documents Option |
JOMC ⁑ CLI ⁑ Command Option (org.apache.commons.cli.Option) @ 1.2 |
JOMC ⁑ CLI ⁑ ModelContextFactory Class Name Option |
JOMC ⁑ CLI ⁑ Command Option (org.apache.commons.cli.Option) @ 1.2 |
JOMC ⁑ CLI ⁑ Model Option |
JOMC ⁑ CLI ⁑ Command Option (org.apache.commons.cli.Option) @ 1.2 |
JOMC ⁑ CLI ⁑ Modlet Location Option |
JOMC ⁑ CLI ⁑ Command Option (org.apache.commons.cli.Option) @ 1.2 |
JOMC ⁑ CLI ⁑ Modlet Schema System Id Option |
JOMC ⁑ CLI ⁑ Command Option (org.apache.commons.cli.Option) @ 1.2 |
JOMC ⁑ CLI ⁑ No Modlet Resource Validation Option |
JOMC ⁑ CLI ⁑ Command Option (org.apache.commons.cli.Option) @ 1.2 |
JOMC ⁑ CLI ⁑ Platform Provider Location Option |
JOMC ⁑ CLI ⁑ Command Option (org.apache.commons.cli.Option) @ 1.2 |
JOMC ⁑ CLI ⁑ Provider Location Option |
getOptions
in interface Command
getOptions
in class AbstractCommand
Copyright © 2005–2014 The JOMC Project. All rights reserved.