|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bff.javampd.MPDCommand
public class MPDCommand
MPDCommand represents a command along with optional command paramaters to be sent to a MPD server.
| Constructor Summary | |
|---|---|
MPDCommand(java.lang.String command)
Constructor for MPD command for a command requiring no parameters. |
|
MPDCommand(java.lang.String command,
java.lang.String param)
Constructor for MPD command for a command requiring a single parameter. |
|
MPDCommand(java.lang.String command,
java.lang.String[] params)
Constructor for MPD command for a command requiring more than 1 paramaeter. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCommand()
Returns the command od this object. |
java.util.List<java.lang.String> |
getParams()
Returns the parameter(s) of this command as a List of Strings. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MPDCommand(java.lang.String command)
command - the parameterless command to send.
public MPDCommand(java.lang.String command,
java.lang.String param)
command - the command to sendparam - the parameter for the command
public MPDCommand(java.lang.String command,
java.lang.String[] params)
command - the command to sendparams - the parameters to send| Method Detail |
|---|
public java.lang.String getCommand()
public java.util.List<java.lang.String> getParams()
List of Strings.
Returns null of there is no parameter for the command.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||