Package com.metratec.lib.upnp
Class Action
- java.lang.Object
-
- com.metratec.lib.upnp.Action
-
public class Action extends java.lang.Object
Class to represent an UPnP action.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Argument>
getInputArguments()
The list of input arguments.java.lang.String
getName()
Get the name of the action.java.util.List<Argument>
getOutputArguments()
The list of output arguments.Service
getService()
Get the service this action belongs to.java.lang.String
toString()
-
-
-
Constructor Detail
-
Action
public Action(java.lang.String name, Service service)
Creates an instance of an action.- Parameters:
name
- the name of the actionservice
- the service this action belongs to
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name of the action.- Returns:
- the name of the action
-
getService
public Service getService()
Get the service this action belongs to.- Returns:
- the service this action belongs to
-
getInputArguments
public java.util.List<Argument> getInputArguments()
The list of input arguments. The returned list is unmodifiable but one can set the values of the input arguments by iterating over the list and callingArgument.setValue(java.lang.String)
on each argument.- Returns:
- the list of input arguments
-
getOutputArguments
public java.util.List<Argument> getOutputArguments()
The list of output arguments.- Returns:
- the list of output arguments
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-