|
Secure iNet Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jscape.inet.terminal.CommandSet
Represents command set (ANSI, VT52) in terminal. "State" pattern [Gamma 94].
| Constructor Summary | |
CommandSet(java.lang.String name)
Creates CommandSet object giving its name. |
|
| Method Summary | |
boolean |
addCommand(java.lang.String sequence,
ControlCommand command)
Add command as ControlCommand object to the internal command hash map. |
ControlCommand |
getCommand(java.lang.String sequence)
Get command as a ControlCommand object by its
character sequence. |
java.lang.String |
getName()
Returns command set's name. |
boolean |
isControlChar(char ch)
Check if character passed is a control character. |
boolean |
removeCommand(java.lang.String sequence)
Remove command's ControlCommand object from internal command hash map. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CommandSet(java.lang.String name)
CommandSet object giving its name.
name - command set name.| Method Detail |
public boolean isControlChar(char ch)
ch - character to check
public ControlCommand getCommand(java.lang.String sequence)
ControlCommand object by its
character sequence.
sequence - command sequence name.
ControlCommand object.
public boolean addCommand(java.lang.String sequence,
ControlCommand command)
sequence - command char sequence to add.command - ControlCommand object for command.
public boolean removeCommand(java.lang.String sequence)
sequence - command sequence to remove.
public java.lang.String getName()
|
Secure iNet Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||