be.lassi.lanbox.commands
Class Command
java.lang.Object
be.lassi.lanbox.commands.Command
- Direct Known Subclasses:
- LanboxCommand, Script
public abstract class Command
- extends java.lang.Object
Lanbox command.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Command
public Command()
add
public void add(CommandListener listener)
- Adds a listener that will notified of command completion.
- Parameters:
listener
- the command listener to be added
appendCommand
public void appendCommand(java.lang.StringBuilder b)
- Appends a textual description of the command.
- Parameters:
b
- the string builder to which to append
appendCommandDetail
public void appendCommandDetail(java.lang.StringBuilder b)
appendResponse
public void appendResponse(java.lang.StringBuilder b)
- Appends a textual description of the command reponse.
- Parameters:
b
- the string builder to which to append
getCommandString
public java.lang.String getCommandString()
- Gets a textual representation of this command.
- Returns:
- a textual representation of this command
hashCode
public int hashCode()
-
- Overrides:
hashCode
in class java.lang.Object
notifyListeners
public void notifyListeners()
toString
public java.lang.String toString()
-
- Overrides:
toString
in class java.lang.Object