org.teleal.cling.model.meta
Class Action<S extends Service>
java.lang.Object
org.teleal.cling.model.meta.Action<S>
- All Implemented Interfaces:
- Validatable
- Direct Known Subclasses:
- QueryStateVariableAction
public class Action<S extends Service>
- extends Object
- implements Validatable
Describes an action and its input/output arguments.
- Author:
- Christian Bauer
Action
public Action(String name,
ActionArgument[] arguments)
getName
public String getName()
hasArguments
public boolean hasArguments()
getArguments
public ActionArgument[] getArguments()
getService
public S getService()
getFirstInputArgument
public ActionArgument<S> getFirstInputArgument()
getFirstOutputArgument
public ActionArgument<S> getFirstOutputArgument()
getInputArguments
public ActionArgument<S>[] getInputArguments()
getInputArgument
public ActionArgument<S> getInputArgument(String name)
getOutputArguments
public ActionArgument<S>[] getOutputArguments()
getOutputArgument
public ActionArgument<S> getOutputArgument(String name)
hasInputArguments
public boolean hasInputArguments()
hasOutputArguments
public boolean hasOutputArguments()
toString
public String toString()
- Overrides:
toString
in class Object
validate
public List<ValidationError> validate()
- Specified by:
validate
in interface Validatable
- Returns:
- An empty
List
if all rules validated properly, otherwise, the detected errors.
deepCopy
public Action<S> deepCopy()
Copyright © 2011 Teleal GmbH, Switzerland. All Rights Reserved.