Francesco Furfari | ec7e175 | 2006-10-02 13:37:04 +0000 | [diff] [blame] | 1 | /*
|
| 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 Furfari | d1072b5 | 2006-05-03 07:44:48 +0000 | [diff] [blame] | 9 | *
|
Francesco Furfari | ec7e175 | 2006-10-02 13:37:04 +0000 | [diff] [blame] | 10 | * http://www.apache.org/licenses/LICENSE-2.0
|
Francesco Furfari | d1072b5 | 2006-05-03 07:44:48 +0000 | [diff] [blame] | 11 | *
|
Francesco Furfari | ec7e175 | 2006-10-02 13:37:04 +0000 | [diff] [blame] | 12 | * 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 Furfari | d1072b5 | 2006-05-03 07:44:48 +0000 | [diff] [blame] | 18 | */
|
| 19 |
|
| 20 | package org.apache.felix.upnp.sample.binaryLight;
|
| 21 | import org.osgi.service.upnp.UPnPStateVariable;
|
| 22 | /*
|
Karl Pauls | d312acc | 2007-06-18 20:38:33 +0000 | [diff] [blame^] | 23 | * @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
|
Francesco Furfari | d1072b5 | 2006-05-03 07:44:48 +0000 | [diff] [blame] | 24 | */
|
| 25 |
|
| 26 | public class TargetStateVariable implements UPnPStateVariable{
|
| 27 |
|
| 28 | final private String NAME = "Target";
|
| 29 | final private Boolean DEFAULT_VALUE = Boolean.FALSE;
|
| 30 |
|
| 31 |
|
| 32 | public TargetStateVariable(){
|
| 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 false;
|
| 96 | }
|
| 97 | }
|