| /* |
| * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0, |
| * or the Eclipse Distribution License v. 1.0 which is available at |
| * http://www.eclipse.org/org/documents/edl-v10.php. |
| * |
| * SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause |
| */ |
| |
| // Contributors: |
| // Blaise Doughan - 2.4 - initial implementation |
| package org.eclipse.persistence.testing.jaxb.annotations.xmlelementdecl.qualified; |
| |
| import java.math.BigDecimal; |
| import jakarta.xml.bind.JAXBElement; |
| import jakarta.xml.bind.annotation.XmlElementDecl; |
| import jakarta.xml.bind.annotation.XmlRegistry; |
| import javax.xml.namespace.QName; |
| |
| @XmlRegistry |
| public class ObjectFactory { |
| |
| private final static QName _Root_QNAME = new QName("urn:example", "root"); |
| private final static QName _Global_QNAME = new QName("urn:example", "Global"); |
| |
| public ObjectFactory() { |
| } |
| |
| public ComplexType createComplexType() { |
| return new ComplexType(); |
| } |
| |
| @XmlElementDecl(namespace = "urn:example", name = "root") |
| public JAXBElement<ComplexType> createRoot(ComplexType value) { |
| return new JAXBElement<ComplexType>(_Root_QNAME, ComplexType.class, null, value); |
| } |
| |
| @XmlElementDecl(namespace = "urn:example", name = "Global") |
| public JAXBElement<Boolean> createGlobal(Boolean value) { |
| return new JAXBElement<Boolean>(_Global_QNAME, Boolean.class, null, value); |
| } |
| |
| @XmlElementDecl(namespace = "urn:example", name = "Local", scope = ComplexType.class) |
| public ComplexType.TestLocal createComplexTypeTestLocal(String value) { |
| return new ComplexType.TestLocal(value); |
| } |
| |
| } |