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.xmltv.internal.jaxb;
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;
24 * Java class for an XML element value including a language attribute
25 * information made available to according Media Channels
27 * @author Gaƫl L'hopital - Initial contribution
29 @XmlAccessorType(XmlAccessType.FIELD)
30 @XmlType(name = "withLangType")
31 public class WithLangType {
34 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
35 protected String value;
38 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
39 protected String lang;
41 public String getValue() {
45 public String getLang() {