| /* |
| * 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: |
| // Rick Barkhouse - 2.3.1 - initial implementation |
| package org.eclipse.persistence.testing.jaxb.substitution; |
| |
| import jakarta.xml.bind.JAXBElement; |
| import javax.xml.namespace.QName; |
| |
| public class ObjectFactory2 { |
| |
| private final static QName _Nom_QNAME = new QName("myNamespace", "nom"); |
| private final static QName _Person_QNAME = new QName("myNamespace", "person"); |
| private final static QName _Name_QNAME = new QName("myNamespace", "name"); |
| private final static QName _Personne_QNAME = new QName("myNamespace", "personne"); |
| |
| public ObjectFactory2() { |
| } |
| |
| public Person createPerson() { |
| return new Person(); |
| } |
| |
| public JAXBElement<String> createNom(String value) { |
| return new JAXBElement<String>(_Nom_QNAME, String.class, null, value); |
| } |
| |
| public JAXBElement<Person> createPerson(Person value) { |
| return new JAXBElement<Person>(_Person_QNAME, Person.class, null, value); |
| } |
| |
| public JAXBElement<String> createName(String value) { |
| return new JAXBElement<String>(_Name_QNAME, String.class, null, value); |
| } |
| |
| public JAXBElement<Person> createPersonne(Person value) { |
| return new JAXBElement<Person>(_Personne_QNAME, Person.class, null, value); |
| } |
| |
| } |