1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.fourthline.cling.model.action;
17
18 import org.fourthline.cling.model.VariableValue;
19 import org.fourthline.cling.model.meta.Service;
20 import org.fourthline.cling.model.meta.ActionArgument;
21 import org.fourthline.cling.model.types.InvalidValueException;
22
23
24
25
26
27
28 public class ActionArgumentValue<S extends Service> extends VariableValue {
29
30 final private ActionArgument<S> argument;
31
32 public ActionArgumentValue(ActionArgument<S> argument, Object value) throws InvalidValueException {
33 super(argument.getDatatype(), value != null && value.getClass().isEnum() ? value.toString() : value);
34 this.argument = argument;
35 }
36
37 public ActionArgument<S> getArgument() {
38 return argument;
39 }
40
41 }