]> git.basschouten.com Git - openhab-addons.git/blob
fc9b69f3867845e9d6eafec175a3823705fc085a
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.helios.internal.ws.soap;
14
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;
19
20 import org.openhab.binding.helios.internal.handler.HeliosHandler27;
21
22 /**
23  * The {@link SOAPObjectFactory} is a helper class that is used to generate JAXB
24  * Elements
25  *
26  * @author Karel Goderis - Initial contribution
27  */
28 @XmlRegistry
29 public class SOAPObjectFactory {
30
31     private static final QName DATA_QNAME = new QName(HeliosHandler27.HELIOS_URI, "Data");
32
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);
36     }
37
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);
41     }
42
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);
46     }
47
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);
51     }
52
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);
56     }
57 }