]> git.basschouten.com Git - openhab-addons.git/blob
64bcafe317582477fc68869ca446c7e9a6ffc870
[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.innogysmarthome.internal.client.entity.location;
14
15 /**
16  * Defines a {@link Location} structure.
17  *
18  * @author Oliver Kuhl - Initial contribution
19  */
20 public class Location {
21
22     /**
23      * Identifier of the location – must be unique.
24      */
25     private String id;
26
27     /**
28      * Configuration properties of the {@link Location}.
29      */
30     private LocationConfig config;
31
32     /**
33      * @return the id
34      */
35     public String getId() {
36         return id;
37     }
38
39     /**
40      * @param id the id to set
41      */
42     public void setId(String id) {
43         this.id = id;
44     }
45
46     /**
47      * @return the config
48      */
49     public LocationConfig getConfig() {
50         return config;
51     }
52
53     /**
54      * @param config the config to set
55      */
56     public void setConfig(LocationConfig config) {
57         this.config = config;
58     }
59
60     /**
61      * @return the location name
62      */
63     public String getName() {
64         return getConfig().getName();
65     }
66
67     /**
68      * @return the location type
69      */
70     public String getType() {
71         return getConfig().getType();
72     }
73 }