Class AbstractCommand
java.lang.Object
org.apache.jackrabbit.vault.util.console.commands.AbstractCommand
- All Implemented Interfaces:
CliCommand
- Direct Known Subclasses:
AbstractConsoleCommand,CmdConsole,CmdHello,CmdHelp
AbstractCommand...-
Field Summary
Fields inherited from interface org.apache.jackrabbit.vault.util.console.CliCommand
OPT_QUIET, OPT_VERBOSE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.apache.commons.cli2.option.Commandprotected abstract voiddoExecute(ExecutionContext ctx, org.apache.commons.cli2.CommandLine cl) booleanexecute(ExecutionContext ctx, org.apache.commons.cli2.CommandLine cl) org.apache.commons.cli2.OptiongetName()booleantoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jackrabbit.vault.util.console.CliCommand
getShortDescription
-
Constructor Details
-
AbstractCommand
protected AbstractCommand()
-
-
Method Details
-
execute
public boolean execute(ExecutionContext ctx, org.apache.commons.cli2.CommandLine cl) throws Exception - Specified by:
executein interfaceCliCommand- Throws:
Exception
-
getCommand
public org.apache.commons.cli2.Option getCommand()- Specified by:
getCommandin interfaceCliCommand
-
hasName
- Specified by:
hasNamein interfaceCliCommand
-
getName
- Specified by:
getNamein interfaceCliCommand
-
toString
-
getLongDescription
- Specified by:
getLongDescriptionin interfaceCliCommand
-
getExample
- Specified by:
getExamplein interfaceCliCommand
-
doExecute
protected abstract void doExecute(ExecutionContext ctx, org.apache.commons.cli2.CommandLine cl) throws Exception - Throws:
Exception
-
createCommand
protected abstract org.apache.commons.cli2.option.Command createCommand()
-