public interface Dictionary extends Iterable<DictionaryCommand>, Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsCommand(BasicCommand command)
Test if a given command is present in a dictionary.
|
default Iterable<DictionaryCommand> |
filterByVisibilityIterator()
An iterator over DictionaryCommand of this dictionary that filters by level.
|
DictionaryCommand |
findCommand(BasicCommand command)
Find a given command in the dictionary
|
default DictionaryCompleter |
getDictionaryCompleter()
Get the DictionaryCompleter for this Dictionary.
|
default DictionaryHelpGenerator |
getHelpGenerator()
Get the DictionaryHelpGenerator for this Dictionary.
|
int |
getLevelForType(Command.CommandType type)
Get the visibility level for this dictionary for the given CommandType.
|
boolean |
isCategoryVisible(Command.CommandCategory category)
Get the visibility for the provided CommandCategory.
|
default boolean |
isDictionaryCommandVisible(DictionaryCommand dc) |
void |
setCategoryVisible(Command.CommandCategory category,
boolean isVisible)
Turn on/off the visibility of a given CommandCategory.
|
void |
setLevelForTypes(int level,
Command.CommandType... types)
Set the visibility level for this dictionary for the provided CommandTypes.
|
int |
size()
The size of the dictionary.
|
forEach, iterator, spliteratorboolean containsCommand(BasicCommand command) throws CommandArgumentMatchException
command - The command (or alias) to search fortrueIf the command is foundCommandArgumentMatchException - if there is an illegal argument.DictionaryCommand findCommand(BasicCommand command) throws CommandArgumentMatchException
command - The command (or alias) to search fornull if
the command is not found.CommandArgumentMatchException - if there is an illegal argument.int size()
default DictionaryHelpGenerator getHelpGenerator()
default DictionaryCompleter getDictionaryCompleter()
void setLevelForTypes(int level,
Command.CommandType... types)
level
for all the specified CommandTypeslevel - the level to set.types - a list of types.int getLevelForType(Command.CommandType type)
type - the command typevoid setCategoryVisible(Command.CommandCategory category, boolean isVisible)
category - The CommandCategory.isVisible - true/false to turn the visibility on/offboolean isCategoryVisible(Command.CommandCategory category)
category - The provided CommandCategory.default boolean isDictionaryCommandVisible(DictionaryCommand dc)
default Iterable<DictionaryCommand> filterByVisibilityIterator()
Copyright © 2019 LSST. All rights reserved.