Class AbstractCommand
- java.lang.Object
-
- org.apache.jackrabbit.vault.util.console.commands.AbstractCommand
-
- All Implemented Interfaces:
CliCommand
- Direct Known Subclasses:
AbstractConsoleCommand,CmdConsole,CmdHello,CmdHelp
public abstract class AbstractCommand extends Object implements CliCommand
AbstractCommand...
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.vault.util.console.CliCommand
OPT_QUIET, OPT_VERBOSE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.apache.commons.cli2.option.CommandcreateCommand()protected abstract voiddoExecute(ExecutionContext ctx, org.apache.commons.cli2.CommandLine cl)booleanexecute(ExecutionContext ctx, org.apache.commons.cli2.CommandLine cl)org.apache.commons.cli2.OptiongetCommand()StringgetExample()StringgetLongDescription()StringgetName()booleanhasName(String name)StringtoString()-
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
getShortDescription
-
-
-
-
Method Detail
-
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
public boolean hasName(String name)
- Specified by:
hasNamein interfaceCliCommand
-
getName
public String getName()
- Specified by:
getNamein interfaceCliCommand
-
getLongDescription
public String getLongDescription()
- Specified by:
getLongDescriptionin interfaceCliCommand
-
getExample
public String 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()
-
-