1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.fourthline.cling.binding.annotations;
17
18 import java.lang.annotation.ElementType;
19 import java.lang.annotation.Retention;
20 import java.lang.annotation.RetentionPolicy;
21 import java.lang.annotation.Target;
22
23
24 @Target({ElementType.FIELD})
25 @Retention(RetentionPolicy.RUNTIME)
26 public @interface UpnpStateVariable {
27
28 String name() default "";
29 String datatype() default "";
30
31 String defaultValue() default "";
32
33
34 String[] allowedValues() default {};
35 Class allowedValuesEnum() default void.class;
36
37
38 long allowedValueMinimum() default 0;
39 long allowedValueMaximum() default 0;
40 long allowedValueStep() default 1;
41
42
43 Class allowedValueProvider() default void.class;
44 Class allowedValueRangeProvider() default void.class;
45
46 boolean sendEvents() default true;
47 int eventMaximumRateMilliseconds() default 0;
48 int eventMinimumDelta() default 0;
49
50 }