2 * Copyright (c) 2010-2021 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.helios.internal.ws.soap;
15 import javax.xml.bind.JAXBElement;
16 import javax.xml.bind.annotation.XmlElementDecl;
17 import javax.xml.bind.annotation.XmlRegistry;
18 import javax.xml.namespace.QName;
20 import org.openhab.binding.helios.internal.handler.HeliosHandler27;
23 * The {@link SOAPObjectFactory} is a helper class that is used to generate JAXB
26 * @author Karel Goderis - Initial contribution
29 public class SOAPObjectFactory {
31 private static final QName DATA_QNAME = new QName(HeliosHandler27.HELIOS_URI, "Data");
33 @XmlElementDecl(namespace = HeliosHandler27.HELIOS_URI, name = "CallStateChanged")
34 public JAXBElement<SOAPCallStateChanged> createHeliosCallStateChanged(SOAPCallStateChanged value) {
35 return new JAXBElement<>(DATA_QNAME, SOAPCallStateChanged.class, null, value);
38 @XmlElementDecl(namespace = HeliosHandler27.HELIOS_URI, name = "CodeEntered")
39 public JAXBElement<SOAPCodeEntered> createHeliosCodeEntered(SOAPCodeEntered value) {
40 return new JAXBElement<>(DATA_QNAME, SOAPCodeEntered.class, null, value);
43 @XmlElementDecl(namespace = HeliosHandler27.HELIOS_URI, name = "CardEntered")
44 public JAXBElement<SOAPCardEntered> createHeliosCardEntered(SOAPCardEntered value) {
45 return new JAXBElement<>(DATA_QNAME, SOAPCardEntered.class, null, value);
48 @XmlElementDecl(namespace = HeliosHandler27.HELIOS_URI, name = "DeviceState")
49 public JAXBElement<SOAPDeviceState> createHeliosDeviceState(SOAPDeviceState value) {
50 return new JAXBElement<>(DATA_QNAME, SOAPDeviceState.class, null, value);
53 @XmlElementDecl(namespace = HeliosHandler27.HELIOS_URI, name = "KeyPressed")
54 public JAXBElement<SOAPKeyPressed> createHeliosKeyPressedd(SOAPKeyPressed value) {
55 return new JAXBElement<>(DATA_QNAME, SOAPKeyPressed.class, null, value);