public abstract class CommandRegistry extends Object
Constructor and Description |
---|
CommandRegistry(CommandRegistry parent,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotatedCommand(Class<? extends Runnable> clazz) |
void |
addCommandType(CommandType type) |
void |
autorun(Shell shell)
Override this to automatically run some commands at startup if needed.
|
void |
clear() |
String[] |
getCommandNames()
Get sorted command names including aliases
|
Set<String> |
getCommandNameSet() |
CommandType |
getCommandType(String name) |
CommandType[] |
getCommandTypes() |
Map<String,Set<CommandType>> |
getCommandTypesByNamespace() |
Set<CommandType> |
getCommandTypeSet() |
abstract String |
getDescription() |
CommandType[] |
getLocalCommandTypes() |
String |
getName() |
CommandRegistry |
getParent() |
String |
getPrompt(Shell shell)
Override this to provide a custom prompt for your command namespace
|
abstract String |
getTitle() |
public CommandRegistry(CommandRegistry parent, String name)
public abstract String getTitle()
public abstract String getDescription()
public String getName()
public CommandRegistry getParent()
public void addCommandType(CommandType type)
public CommandType getCommandType(String name)
public Set<CommandType> getCommandTypeSet()
public CommandType[] getCommandTypes()
public CommandType[] getLocalCommandTypes()
public Map<String,Set<CommandType>> getCommandTypesByNamespace()
public String[] getCommandNames()
public void clear()
public String getPrompt(Shell shell)
shell
- public void autorun(Shell shell)
Copyright © 2015 Nuxeo SA. All rights reserved.