org.teleal.cling.model.meta
Class ActionArgument<S extends Service>
java.lang.Object
org.teleal.cling.model.meta.ActionArgument<S>
- All Implemented Interfaces:
- Validatable
public class ActionArgument<S extends Service>
- extends Object
- implements Validatable
Describes a single action argument, either input or output.
No, I haven't figured out so far what the "return value" thingy is good for.
- Author:
- Christian Bauer
ActionArgument
public ActionArgument(String name,
String relatedStateVariableName,
ActionArgument.Direction direction)
ActionArgument
public ActionArgument(String name,
String relatedStateVariableName,
ActionArgument.Direction direction,
boolean returnValue)
getName
public String getName()
getRelatedStateVariableName
public String getRelatedStateVariableName()
getDirection
public ActionArgument.Direction getDirection()
isReturnValue
public boolean isReturnValue()
getAction
public Action<S> getAction()
getDatatype
public Datatype getDatatype()
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 ActionArgument<S> deepCopy()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.