|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jmythapi.protocol.request.AMythCommand
public class AMythCommand
The implementation of a MythTV-protocol command.
Field Summary |
---|
Constructor Summary | |
---|---|
AMythCommand(ProtocolVersion protoVersion,
String commandName)
|
|
AMythCommand(ProtocolVersion protoVersion,
String commandName,
List<String> commandArgs)
|
|
AMythCommand(ProtocolVersion protoVersion,
String commandName,
String... commandArgs)
|
Method Summary | |
---|---|
String |
getCommandArgument(int idx)
Returns the command argument at the given position. |
List<String> |
getCommandArguments()
Gets the arguments of this command. |
int |
getCommandArgumentsLength()
Gets the amount of available command arguments |
String |
getName()
Gets the name of this command. |
ProtocolVersion |
getVersionNr()
Gets the protocol-version of an object. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AMythCommand(ProtocolVersion protoVersion, String commandName)
public AMythCommand(ProtocolVersion protoVersion, String commandName, String... commandArgs)
public AMythCommand(ProtocolVersion protoVersion, String commandName, List<String> commandArgs)
Method Detail |
---|
public String getName()
IMythCommand
getName
in interface IMythCommand
MYTH_PROTO_VERSION
public List<String> getCommandArguments()
IMythCommand
getCommandArguments
in interface IMythCommand
Playback sycamore 0
public String getCommandArgument(int idx)
IMythCommand
ANN Playback sycamore 0
,
getCommandArgument(0)
returns Playback
.
getCommandArgument
in interface IMythCommand
idx
- the position of the requested argument.
public int getCommandArgumentsLength()
IMythCommand
getCommandArgumentsLength
in interface IMythCommand
public String toString()
toString
in class Object
public ProtocolVersion getVersionNr()
IVersionable
getVersionNr
in interface IVersionable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |