]> git.basschouten.com Git - openhab-addons.git/blob
bde9629955b35ba091430e232abd900d3c70fcb2
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.homematic.internal.type;
14
15 import org.openhab.core.thing.ThingTypeUID;
16 import org.openhab.core.thing.binding.ThingTypeProvider;
17 import org.openhab.core.thing.type.ThingType;
18
19 /**
20  * Extends the ThingTypeProvider to manually add a ThingType.
21  *
22  * @author Gerhard Riegler - Initial contribution
23  */
24 public interface HomematicThingTypeProvider extends ThingTypeProvider {
25
26     /**
27      * Adds the ThingType to this provider.
28      */
29     void addThingType(ThingType thingType);
30
31     /**
32      * Use this method to lookup a ThingType which was generated by the
33      * homematic binding. Other than {@link #getThingType(ThingTypeUID, Locale)}
34      * of this provider, it will return also those {@link ThingType}s which are
35      * excluded by {@link org.openhab.binding.homematic.type.HomematicThingTypeExcluder}
36      * 
37      * @param thingTypeUID
38      *            e.g. <i>homematic:HM-Sec-SC</i>
39      * @return ThingType that was added to HomematicThingTypeProvider, identified
40      *         by its thingTypeUID<br>
41      *         <i>null</i> if no ThingType with the given thingTypeUID was added
42      *         before
43      */
44     ThingType getInternalThingType(ThingTypeUID thingTypeUID);
45 }