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 |
getLevel()
Get the visibility level for this dictionary.
|
boolean |
getVisibilityForType(Command.CommandType type)
Get the type related visibility of a command that belongs to this dictionary.
|
Iterator<DictionaryCommand> |
iterator() |
void |
remove(Dictionary commandDictionary) |
void |
setLevel(int level)
Set the visibility level for this dictionary.
|
void |
setVisibilityForTypes(Command.CommandType... types)
Specified command types will be visible, other ones will not be visible
|
int |
size()
The size of the dictionary.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilterByLevelIteratorforEach, 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 int getLevel()
DictionarygetLevel in interface Dictionarypublic void setLevel(int level)
Dictionarylevel.setLevel in interface Dictionarylevel - the level to set.public Set<Dictionary> getDictionaries()
public void setVisibilityForTypes(Command.CommandType... types)
DictionarysetVisibilityForTypes in interface Dictionarytypes - a list of types.public boolean getVisibilityForType(Command.CommandType type)
DictionarygetVisibilityForType in interface Dictionarytype - the command type to get the visibility for.Copyright © 2018 LSST. All rights reserved.