]> git.basschouten.com Git - openhab-addons.git/blob
48722ea7e540686dec8bf695b16405e4d4341b83
[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.lutron.internal.discovery.project;
14
15 /**
16  * A component of an input device in a Lutron system. Generally each component of
17  * the device maps to a channel of the device thing.
18  *
19  * @author Allan Tong - Initial contribution
20  */
21 public class Component {
22     private Integer componentNumber;
23     private String type;
24
25     public Integer getComponentNumber() {
26         return componentNumber;
27     }
28
29     public ComponentType getComponentType() {
30         try {
31             return ComponentType.valueOf(this.type);
32         } catch (Exception e) {
33             return null;
34         }
35     }
36 }