]> git.basschouten.com Git - openhab-addons.git/blob
97983b60645d54f8867092f627bfa3faff381228
[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.haassohnpelletstove.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * The {@link Helper} is a Helper class to overcome Call by value for a Status Description.
20  *
21  *
22  * @author Christian Feininger - Initial contribution
23  */
24 @NonNullByDefault
25 public class Helper {
26
27     private String statusDescription = "";
28
29     /***
30      * Gets the Status Description
31      *
32      * @return
33      */
34     public String getStatusDesription() {
35         return statusDescription;
36     }
37
38     /***
39      * Sets the Status Description
40      *
41      * @param status
42      */
43     public void setStatusDescription(@Nullable String status) {
44         if (status != null) {
45             statusDescription = statusDescription + "\n" + status;
46         }
47     }
48 }