Class AbstractConsoleCommand
java.lang.Object
org.apache.jackrabbit.vault.util.console.commands.AbstractCommand
org.apache.jackrabbit.vault.util.console.commands.AbstractConsoleCommand
- All Implemented Interfaces:
CliCommand,ConsoleCommand
- Direct Known Subclasses:
AbstractJcrFsCommand,CmdCd,CmdCtx,CmdEnv,CmdExec,CmdExit,CmdHistory,CmdLoad,CmdLs,CmdPwd,CmdSet,CmdStore
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 voiddoExecute(ConsoleExecutionContext ctx, org.apache.commons.cli2.CommandLine cl) protected voiddoExecute(ExecutionContext ctx, org.apache.commons.cli2.CommandLine cl) booleanexecute(ConsoleExecutionContext ctx, org.apache.commons.cli2.CommandLine cl) Methods inherited from class org.apache.jackrabbit.vault.util.console.commands.AbstractCommand
createCommand, execute, getCommand, getExample, getLongDescription, getName, hasName, toStringMethods 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
execute, getCommand, getExample, getLongDescription, getName, getShortDescription, hasName
-
Constructor Details
-
AbstractConsoleCommand
public AbstractConsoleCommand()
-
-
Method Details
-
execute
public boolean execute(ConsoleExecutionContext ctx, org.apache.commons.cli2.CommandLine cl) throws Exception - Specified by:
executein interfaceConsoleCommand- Throws:
Exception
-
doExecute
protected void doExecute(ExecutionContext ctx, org.apache.commons.cli2.CommandLine cl) throws Exception - Specified by:
doExecutein classAbstractCommand- Throws:
Exception
-
doExecute
protected abstract void doExecute(ConsoleExecutionContext ctx, org.apache.commons.cli2.CommandLine cl) throws Exception - Throws:
Exception
-