public class CompositeCommandDictionary extends Object implements Dictionary
| Constructor and Description |
|---|
CompositeCommandDictionary() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Dictionary commandDictionary) |
boolean |
containsCommand(BasicCommand tc)
Test if a given command is present in a dictionary.
|
DictionaryCommand |
findCommand(BasicCommand tc)
Find a given command in the dictionary
|
Set<Dictionary> |
getDictionaries() |
DictionaryCompleter |
getDictionaryCompleter()
Get the DictionaryCompleter for this Dictionary.
|
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.
|
Iterator<DictionaryCommand> |
iterator() |
void |
remove(Dictionary commandDictionary) |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilterByVisibilityIterator, isDictionaryCommandVisibleforEach, spliteratorpublic void add(Dictionary commandDictionary)
public void remove(Dictionary commandDictionary)
public DictionaryCompleter getDictionaryCompleter()
DictionarygetDictionaryCompleter in interface Dictionarypublic boolean containsCommand(BasicCommand tc) throws CommandArgumentMatchException
DictionarycontainsCommand in interface Dictionarytc - The command (or alias) to search fortrueIf the command is foundCommandArgumentMatchException - if there is an illegal argument.public DictionaryCommand findCommand(BasicCommand tc) throws CommandArgumentMatchException
DictionaryfindCommand in interface Dictionarytc - The command (or alias) to search fornull if
the command is not found.CommandArgumentMatchException - if there is an illegal argument.public Iterator<DictionaryCommand> iterator()
iterator in interface Iterable<DictionaryCommand>public int size()
Dictionarysize in interface Dictionarypublic DictionaryHelpGenerator getHelpGenerator()
DictionarygetHelpGenerator in interface Dictionarypublic Set<Dictionary> getDictionaries()
public void setLevelForTypes(int level,
Command.CommandType... types)
Dictionarylevel
for all the specified CommandTypessetLevelForTypes in interface Dictionarylevel - the level to set.types - a list of types.public int getLevelForType(Command.CommandType type)
DictionarygetLevelForType in interface Dictionarytype - the command typepublic void setCategoryVisible(Command.CommandCategory category, boolean isVisible)
DictionarysetCategoryVisible in interface Dictionarycategory - The CommandCategory.isVisible - true/false to turn the visibility on/offpublic boolean isCategoryVisible(Command.CommandCategory category)
DictionaryisCategoryVisible in interface Dictionarycategory - The provided CommandCategory.Copyright © 2022 LSST. All rights reserved.