2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.bluetooth.daikinmadoka.handler;
15 import java.util.ArrayList;
16 import java.util.HashMap;
17 import java.util.List;
20 import org.eclipse.jdt.annotation.NonNull;
21 import org.eclipse.jdt.annotation.NonNullByDefault;
22 import org.eclipse.jdt.annotation.Nullable;
23 import org.openhab.core.config.core.Configuration;
24 import org.openhab.core.thing.Channel;
25 import org.openhab.core.thing.ChannelUID;
26 import org.openhab.core.thing.Thing;
27 import org.openhab.core.thing.ThingStatus;
28 import org.openhab.core.thing.ThingStatusDetail;
29 import org.openhab.core.thing.ThingStatusInfo;
30 import org.openhab.core.thing.ThingTypeUID;
31 import org.openhab.core.thing.ThingUID;
32 import org.openhab.core.thing.binding.ThingHandler;
36 * @author Benjamin Lafois - Initial contribution
40 public class DummyThing implements Thing {
43 public @Nullable String getLabel() {
48 public void setLabel(@Nullable String label) {
52 public List<@NonNull Channel> getChannels() {
53 return new ArrayList<Channel>();
57 public List<@NonNull Channel> getChannelsOfGroup(String channelGroupId) {
58 return new ArrayList<Channel>();
62 public @Nullable Channel getChannel(String channelId) {
67 public @Nullable Channel getChannel(ChannelUID channelUID) {
72 public ThingStatus getStatus() {
73 return ThingStatus.ONLINE;
77 public ThingStatusInfo getStatusInfo() {
78 return new ThingStatusInfo(ThingStatus.ONLINE, ThingStatusDetail.NONE, "Dummy");
82 public void setStatusInfo(ThingStatusInfo status) {
86 public void setHandler(@Nullable ThingHandler thingHandler) {
90 public @Nullable ThingHandler getHandler() {
95 public @Nullable ThingUID getBridgeUID() {
100 public void setBridgeUID(@Nullable ThingUID bridgeUID) {
104 public Configuration getConfiguration() {
105 return new Configuration();
109 public ThingUID getUID() {
110 return new ThingUID("dummy");
114 public ThingTypeUID getThingTypeUID() {
115 return new ThingTypeUID("dummy");
119 public Map<@NonNull String, @NonNull String> getProperties() {
120 return new HashMap<String, String>();
124 public @Nullable String setProperty(String name, @Nullable String value) {
129 public void setProperties(Map<@NonNull String, @NonNull String> properties) {
133 public @Nullable String getLocation() {
138 public void setLocation(@Nullable String location) {
142 public boolean isEnabled() {