2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.avmfritz.internal.dto.templates;
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;
21 * See {@link DeviceListModel}.
23 * @author Christoph Weitkamp - Initial contribution
25 @XmlAccessorType(XmlAccessType.FIELD)
26 @XmlType(name = "device")
27 public class DeviceModel {
29 @XmlAttribute(name = "identifier")
30 private String identifier;
32 public String getIdentifier() {
33 return identifier != null ? identifier.replace(" ", "") : null;
37 public String toString() {
38 return new StringBuilder().append("[identifier=").append(identifier).append("]").toString();