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
public abstract class AbstractConsoleCommand extends AbstractCommand implements ConsoleCommand
AbstractCommand...
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.vault.util.console.CliCommand
OPT_QUIET, OPT_VERBOSE
-
-
Constructor Summary
Constructors Constructor Description AbstractConsoleCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected 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, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.vault.util.console.CliCommand
execute, getCommand, getExample, getLongDescription, getName, getShortDescription, hasName
-
-
-
-
Method Detail
-
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
-
-