]> git.basschouten.com Git - openhab-addons.git/blob
ea4e23191460ea25a1e1ebcee0972970f86f73e3
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.gardena.internal.model;
14
15 /**
16  * Represents a Gardena setting.
17  *
18  * @author Gerhard Riegler - Initial contribution
19  */
20
21 public class Setting {
22     private String name;
23     private String id;
24     private Object value;
25     private transient Device device;
26
27     /**
28      * Returns the name of the setting.
29      */
30     public String getName() {
31         return name;
32     }
33
34     /**
35      * Returns the id of the setting.
36      */
37     public String getId() {
38         return id;
39     }
40
41     /**
42      * Returns the value of the setting.
43      */
44     public Object getValue() {
45         return value;
46     }
47
48     /**
49      * Sets the name of the setting.
50      */
51     public void setValue(Object value) {
52         this.value = value;
53     }
54
55     /**
56      * Returns the device of the setting.
57      */
58     public Device getDevice() {
59         return device;
60     }
61
62     /**
63      * Sets the name of the setting.
64      */
65     public void setDevice(Device device) {
66         this.device = device;
67     }
68 }