2 * Copyright (c) 2010-2022 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.velux.internal.handler.utils;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.Thing;
19 import org.openhab.core.thing.binding.BaseThingHandler;
22 * The {@link ExtendedBaseThingHandler} extended the {@link BaseThingHandler} interface and adds <B>publicly
23 * visible</B> convenience methods for property handling.
25 * It is recommended to extend this abstract base class.
28 * @author Guenther Schreiner - Initial contribution.
31 public abstract class ExtendedBaseThingHandler extends BaseThingHandler {
34 * ************************
35 * ***** Constructors *****
39 * @see BaseThingHandler
40 * @param thing which will be created.
42 protected ExtendedBaseThingHandler(Thing thing) {
47 * Returns a copy of the properties map, that can be modified. The method {@link #updateProperties} must be called
48 * to persist the properties.
50 * @return copy of the thing properties (not null)
53 public Map<String, String> editProperties() {
54 return super.editProperties();
58 * Informs the framework, that the given properties map of the thing was updated. This method performs a check, if
59 * the properties were updated. If the properties did not change, the framework is not informed about changes.
61 * @param properties properties map, that was updated and should be persisted
64 public void updateProperties(Map<String, String> properties) {
65 super.updateProperties(properties);