]> git.basschouten.com Git - openhab-addons.git/blob
bf98a1479a39dee92b7eb45b13980bd9d76fe85f
[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.xmltv.internal.jaxb;
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 import javax.xml.bind.annotation.XmlValue;
20 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
21 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
22
23 /**
24  * Java class for an XML element value including a language attribute
25  * information made available to according Media Channels
26  *
27  * @author GaĆ«l L'hopital - Initial contribution
28  */
29 @XmlAccessorType(XmlAccessType.FIELD)
30 @XmlType(name = "withLangType")
31 public class WithLangType {
32
33     @XmlValue
34     @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
35     protected String value;
36
37     @XmlAttribute
38     @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
39     protected String lang;
40
41     public String getValue() {
42         return value;
43     }
44
45     public String getLang() {
46         return lang;
47     }
48 }