|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jomc.cli.commands.AbstractCommand
org.jomc.cli.commands.AbstractModletCommand
@Generated(value="org.jomc.tools.SourceFileProcessor 1.2.2", comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2") public abstract class AbstractModletCommand
JOMC CLI modlet based command implementation.
Nested Class Summary | |
---|---|
class |
AbstractModletCommand.CommandLineClassLoader
Class loader backed by a command line. |
Nested classes/interfaces inherited from interface org.jomc.cli.Command |
---|
Command.Listener |
Field Summary |
---|
Fields inherited from interface org.jomc.cli.Command |
---|
STATUS_FAILURE, STATUS_SUCCESS |
Constructor Summary | |
---|---|
AbstractModletCommand()
Creates a new AbstractModletCommand instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.jomc.cli.commands.AbstractCommand |
---|
execute, executeCommand, getAbbreviatedName, getDefaultLogLevel, getExceptionMessage, getListeners, getLogLevel, getLongDescription, getName, getShortDescription, isLoggable, log, postExecuteCommand, preExecuteCommand, setDefaultLogLevel, setLogLevel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Generated(value="org.jomc.tools.SourceFileProcessor 1.2.2", comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2") public AbstractModletCommand()
AbstractModletCommand
instance.
Method Detail |
---|
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.2.2", comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2") 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005-2012 The JOMC Project. All Rights Reserved. |