]> git.basschouten.com Git - openhab-addons.git/blob
b4bf9c685f0ab27b79b465088c32560c4076f17c
[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.avmfritz.internal.dto.templates;
14
15 import javax.xml.bind.annotation.XmlAccessType;
16 import javax.xml.bind.annotation.XmlAccessorType;
17 import javax.xml.bind.annotation.XmlAttribute;
18 import javax.xml.bind.annotation.XmlType;
19
20 /**
21  * See {@link DeviceListModel}.
22  *
23  * @author Christoph Weitkamp - Initial contribution
24  */
25 @XmlAccessorType(XmlAccessType.FIELD)
26 @XmlType(name = "device")
27 public class DeviceModel {
28
29     @XmlAttribute(name = "identifier")
30     private String identifier;
31
32     public String getIdentifier() {
33         return identifier != null ? identifier.replace(" ", "") : null;
34     }
35
36     @Override
37     public String toString() {
38         return new StringBuilder().append("[identifier=").append(identifier).append("]").toString();
39     }
40 }