com.crankuptheamps.spark
Class SparkCommand
java.lang.Object
com.crankuptheamps.spark.SparkCommand
- Direct Known Subclasses:
- HelpCommand, PingCommand, PublishCommand, SOWAndSubscribeCommand, SOWCommand, SOWDeleteCommand, SubscribeCommand
public abstract class SparkCommand
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected String name
options
protected TreeMap<String,CommandOption> options
required
protected TreeSet<String> required
optional
protected TreeSet<String> optional
examples
protected LinkedList<String> examples
extras
protected LinkedList<String> extras
usage
protected String usage
synonyms
protected TreeMap<String,String> synonyms
SparkCommand
public SparkCommand(String name)
getName
public String getName()
addOption
public void addOption(CommandOption command)
addSynonym
public void addSynonym(String synonym,
String baseName)
addExample
public void addExample(String example)
addExtra
public void addExtra(String extra)
setUsage
public void setUsage(String usage)
badUsage
protected void badUsage(String message)
dumpArgs
protected void dumpArgs()
createAuthenticator
protected Authenticator createAuthenticator(String uri)
throws AuthenticationException
- Throws:
AuthenticationException
help
public void help()