]> git.basschouten.com Git - openhab-addons.git/blob
0fc8f73f34ae462b4f4ed987c441690f4075e24c
[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.denonmarantz.internal.xml.entities.commands;
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.XmlRootElement;
19 import javax.xml.bind.annotation.XmlValue;
20
21 /**
22  * Holds text values with a certain id
23  *
24  * @author Jeroen Idserda - Initial contribution
25  */
26 @XmlRootElement(name = "text")
27 @XmlAccessorType(XmlAccessType.FIELD)
28 public class Text {
29
30     @XmlAttribute(name = "id")
31     private String id;
32
33     @XmlValue
34     private String value;
35
36     public Text() {
37     }
38
39     public String getId() {
40         return id;
41     }
42
43     public void setId(String id) {
44         this.id = id;
45     }
46
47     public String getValue() {
48         return value;
49     }
50
51     public void setValue(String value) {
52         this.value = value;
53     }
54 }