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, wait
getHelpFooter
protected void setCustomOptions(org.apache.commons.cli.Options options)
public abstract String getHelp()
Command
public abstract String getUsage()
Command
public final int exec(com.tinkerpop.frames.FramedGraph<?> graph, String[] args) throws Exception
public String getDetailedHelp()
Command
getDetailedHelp
in interface Command
public abstract int execWithOptions(com.tinkerpop.frames.FramedGraph<?> graph, org.apache.commons.cli.CommandLine cmdLine) throws Exception
execWithOptions
in interface Command
graph
- the graph databasecmdLine
- the parsed command line objectException
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.