Class XSAbstractCommand
java.lang.Object
com.io7m.xstructural.cmdline.internal.XSAbstractCommand
- All Implemented Interfaces:
com.io7m.quarrel.core.QCommandOrGroupType, com.io7m.quarrel.core.QCommandType
- Direct Known Subclasses:
XSCommandFormatXML, XSCommandSchema, XSCommandTransformEPUB, XSCommandTransformMarkdown, XSCommandTransformXHTML, XSCommandValidate, XSCommandValidateXHTML
public abstract class XSAbstractCommand
extends Object
implements com.io7m.quarrel.core.QCommandType
A base class for command implementations, adding the standard verbose
parameter and configuring the log level prior to execution.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedXSAbstractCommand(com.io7m.quarrel.core.QCommandMetadata inMetadata) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract com.io7m.quarrel.core.QCommandStatusexecute(com.io7m.quarrel.core.QCommandContextType context) Execute the command.final com.io7m.quarrel.core.QCommandMetadatametadata()final com.io7m.quarrel.core.QCommandStatusonExecute(com.io7m.quarrel.core.QCommandContextType context) final List<com.io7m.quarrel.core.QParameterNamedType<?>> protected abstract List<com.io7m.quarrel.core.QParameterNamedType<?>> Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.io7m.quarrel.core.QCommandOrGroupType
isHiddenMethods inherited from interface com.io7m.quarrel.core.QCommandType
onListPositionalParameters
-
Constructor Details
-
XSAbstractCommand
protected XSAbstractCommand(com.io7m.quarrel.core.QCommandMetadata inMetadata)
-
-
Method Details
-
onListNamedParametersActual
- Returns:
- The named parameters specific to this command, not including the standard verbose parameter
-
onListNamedParameters
- Specified by:
onListNamedParametersin interfacecom.io7m.quarrel.core.QCommandType
-
metadata
public final com.io7m.quarrel.core.QCommandMetadata metadata()- Specified by:
metadatain interfacecom.io7m.quarrel.core.QCommandOrGroupType
-
onExecute
-
execute
-