|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jetrix.Message
net.jetrix.messages.ChannelMessage
net.jetrix.messages.TextMessage
net.jetrix.messages.PlineMessage
net.jetrix.messages.CommandMessage
public class CommandMessage
A /command.
Constructor Summary | |
---|---|
CommandMessage()
|
Method Summary | |
---|---|
void |
addParameter(String obj)
Add a parameter to the command. |
Channel |
getChannelParameter(int i)
Returns the channel associated to the i-th parameter of the command. |
Client |
getClientParameter(int i)
Return the Client object associated to the i-th parameter of the command. |
String |
getCommand()
|
Integer |
getIntegerParameter(int i)
Return an integer parameter, or null if the specified parameter doesn't map to an integer value. |
int |
getIntParameter(int i,
int defaultValue)
Return an integer parameter, or the default value if the specified parameter doesn't map to an integer value. |
String |
getParameter(int i)
|
int |
getParameterCount()
Return the number of parameters on this command. |
void |
setCommand(String command)
|
Methods inherited from class net.jetrix.messages.TextMessage |
---|
getKey, getRawMessage, getText, getText, setKey, setText |
Methods inherited from class net.jetrix.messages.ChannelMessage |
---|
getChannel, getSlot, setChannel, setSlot |
Methods inherited from class net.jetrix.Message |
---|
getDestination, getSource, getTime, setDestination, setRawMessage, setSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandMessage()
Method Detail |
---|
public String getCommand()
public void setCommand(String command)
public String getParameter(int i)
public int getIntParameter(int i, int defaultValue)
i
- the index of the parameterdefaultValue
- the default valuepublic Integer getIntegerParameter(int i)
i
- the index of the parameterpublic Client getClientParameter(int i)
public Channel getChannelParameter(int i)
public void addParameter(String obj)
public int getParameterCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |