|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raelity.jvi.AbbrevLookup
public class AbbrevLookup
This is a lookup table where the key can be abbreviated. It is convenient for words that are entered by users.
| Nested Class Summary | |
|---|---|
static class |
AbbrevLookup.CommandElement
A registered command is represented by this class. |
| Constructor Summary | |
|---|---|
AbbrevLookup()
|
|
| Method Summary | |
|---|---|
void |
add(String abbrev,
String name,
Object value)
Register a command; the abbrev must be unique. |
List |
getList()
This method returns a read-only copy of the list. |
AbbrevLookup.CommandElement |
lookupCommand(String command)
Search the list for the command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbbrevLookup()
| Method Detail |
|---|
public List getList()
AbbrevLookup.CommandElement.
public void add(String abbrev,
String name,
Object value)
IllegalArgumentException - this is thrown if the abbreviation
and/or the name already exist in the list or there's a null argument.public AbbrevLookup.CommandElement lookupCommand(String command)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||