]> git.basschouten.com Git - openhab-addons.git/blob
3d9ba6f1607de47b392af7bb43317a75d4f64bf8
[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.unifi.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.unifi.internal.handler.UniFiWlanThingHandler;
17
18 /**
19  * The {@link UniFiWlanThingConfig} encapsulates all the configuration options for an instance of the
20  * {@link UniFiWlanThingHandler}.
21  *
22  * @author Hilbrand Bouwkamp - Initial contribution
23  */
24 @NonNullByDefault
25 @SuppressWarnings("unused")
26 public class UniFiWlanThingConfig {
27
28     private String wid = "";
29
30     public String getWlanId() {
31         return wid;
32     }
33
34     private void setWlanId(final String wid) {
35         // method to avoid auto format mark the field as final
36         this.wid = wid;
37     }
38
39     public boolean isValid() {
40         return !wid.isBlank();
41     }
42
43     @Override
44     public String toString() {
45         return String.format("UniFiWlanThingConfig{wid: '%s'}", wid);
46     }
47 }