blob: 6b2f87f605db9a8fb790462e925ec060752aa50a [file] [log] [blame]
Francesco Furfariec7e1752006-10-02 13:37:04 +00001/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
Francesco Furfarid1072b52006-05-03 07:44:48 +00009 *
Francesco Furfariec7e1752006-10-02 13:37:04 +000010 * http://www.apache.org/licenses/LICENSE-2.0
Francesco Furfarid1072b52006-05-03 07:44:48 +000011 *
Francesco Furfariec7e1752006-10-02 13:37:04 +000012 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
Francesco Furfarid1072b52006-05-03 07:44:48 +000018 */
19
20package org.apache.felix.upnp.sample.binaryLight;
21import org.osgi.service.upnp.UPnPStateVariable;
22/*
Karl Paulsd312acc2007-06-18 20:38:33 +000023* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
Francesco Furfarid1072b52006-05-03 07:44:48 +000024*/
25
26public class StatusStateVariable implements UPnPStateVariable{
27
28 final private String NAME = "Status";
29 final private Boolean DEFAULT_VALUE = Boolean.FALSE;
30
31
32 public StatusStateVariable(){
33 }
34
35 /* (non-Javadoc)
36 * @see org.osgi.service.upnp.UPnPStateVariable#getName()
37 */
38 public String getName() {
39 return NAME;
40 }
41
42 /* (non-Javadoc)
43 * @see org.osgi.service.upnp.UPnPStateVariable#getJavaDataType()
44 */
45 public Class getJavaDataType() {
46 return Boolean.class;
47 }
48
49 /* (non-Javadoc)
50 * @see org.osgi.service.upnp.UPnPStateVariable#getUPnPDataType()
51 */
52 public String getUPnPDataType() {
53 return TYPE_BOOLEAN;
54 }
55
56 /* (non-Javadoc)
57 * @see org.osgi.service.upnp.UPnPStateVariable#getDefaultValue()
58 */
59 public Object getDefaultValue() {
60 return DEFAULT_VALUE;
61 }
62
63 /* (non-Javadoc)
64 * @see org.osgi.service.upnp.UPnPStateVariable#getAllowedValues()
65 */
66 public String[] getAllowedValues() {
67 return null;
68 }
69
70 /* (non-Javadoc)
71 * @see org.osgi.service.upnp.UPnPStateVariable#getMinimum()
72 */
73 public Number getMinimum() {
74 return null;
75 }
76
77 /* (non-Javadoc)
78 * @see org.osgi.service.upnp.UPnPStateVariable#getMaximum()
79 */
80 public Number getMaximum() {
81 return null;
82 }
83
84 /* (non-Javadoc)
85 * @see org.osgi.service.upnp.UPnPStateVariable#getStep()
86 */
87 public Number getStep() {
88 return null;
89 }
90
91 /* (non-Javadoc)
92 * @see org.osgi.service.upnp.UPnPStateVariable#sendsEvents()
93 */
94 public boolean sendsEvents() {
95 return true;
96 }
97}