public abstract class BaseCommand extends Object implements Command
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.cli.Options |
options |
| Constructor and Description |
|---|
BaseCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected Api |
api(com.tinkerpop.frames.FramedGraph<?> graph,
Accessor accessor) |
int |
exec(com.tinkerpop.frames.FramedGraph<?> graph,
String[] args)
Execute this command with the given database and un-parsed
command line arguments
|
abstract int |
execWithOptions(com.tinkerpop.frames.FramedGraph<?> graph,
org.apache.commons.cli.CommandLine cmdLine)
Execute this command with the given database and parsed command
line arguments.
|
String |
getDetailedHelp()
Get the formatted help blurb, including options.
|
abstract String |
getHelp()
Get information about the functionality of the command.
|
abstract String |
getUsage()
Get a short hint about the usage of the command.
|
protected void |
setCustomOptions(org.apache.commons.cli.Options options) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHelpFooterprotected void setCustomOptions(org.apache.commons.cli.Options options)
public abstract String getHelp()
Commandpublic abstract String getUsage()
Commandpublic final int exec(com.tinkerpop.frames.FramedGraph<?> graph,
String[] args)
throws Exception
public String getDetailedHelp()
CommandgetDetailedHelp in interface Commandpublic abstract int execWithOptions(com.tinkerpop.frames.FramedGraph<?> graph,
org.apache.commons.cli.CommandLine cmdLine)
throws Exception
execWithOptions in interface Commandgraph - the graph databasecmdLine - the parsed command line objectExceptionCopyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.