ObjectFactory.java

package org.apache.cxf.xsd.test.messages;

import javax.xml.namespace.QName;
import jakarta.annotation.Generated;
import jakarta.xml.bind.JAXBElement;
import jakarta.xml.bind.annotation.XmlElementDecl;
import jakarta.xml.bind.annotation.XmlRegistry;


/**
 * This object contains factory methods for each 
 * Java content interface and Java element interface 
 * generated in the org.apache.cxf.xsd.test.messages package. 
 * <p>An ObjectFactory allows you to programmatically 
 * construct new instances of the Java representation 
 * for XML content. The Java representation of XML 
 * content can consist of schema derived interfaces 
 * and classes representing the binding of schema 
 * type definitions, element declarations and model 
 * groups.  Factory methods for each of these are 
 * provided in this class.
 * 
 */
@XmlRegistry
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.5", date = "2025-07-04T06:56:14Z")
public class ObjectFactory {

    private static final QName _SomeFeature_QNAME = new QName("http://cxf.apache.org/xsd/test/messages", "SomeFeature");
    private static final QName _RequestMessage_QNAME = new QName("http://cxf.apache.org/xsd/test/messages", "requestMessage");
    private static final QName _ResponseMessage_QNAME = new QName("http://cxf.apache.org/xsd/test/messages", "responseMessage");

    /**
     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.apache.cxf.xsd.test.messages
     * 
     */
    public ObjectFactory() {
    }

    /**
     * Create an instance of {@link SomeFeatureType }
     * 
     * @return
     *     the new instance of {@link SomeFeatureType }
     */
    public SomeFeatureType createSomeFeatureType() {
        return new SomeFeatureType();
    }

    /**
     * Create an instance of {@link RequestType }
     * 
     * @return
     *     the new instance of {@link RequestType }
     */
    public RequestType createRequestType() {
        return new RequestType();
    }

    /**
     * Create an instance of {@link ResponseType }
     * 
     * @return
     *     the new instance of {@link ResponseType }
     */
    public ResponseType createResponseType() {
        return new ResponseType();
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link SomeFeatureType }{@code >}
     * 
     * @param value
     *     Java instance representing xml element's value.
     * @return
     *     the new instance of {@link JAXBElement }{@code <}{@link SomeFeatureType }{@code >}
     */
    @XmlElementDecl(namespace = "http://cxf.apache.org/xsd/test/messages", name = "SomeFeature")
    public JAXBElement<SomeFeatureType> createSomeFeature(SomeFeatureType value) {
        return new JAXBElement<>(_SomeFeature_QNAME, SomeFeatureType.class, null, value);
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link RequestType }{@code >}
     * 
     * @param value
     *     Java instance representing xml element's value.
     * @return
     *     the new instance of {@link JAXBElement }{@code <}{@link RequestType }{@code >}
     */
    @XmlElementDecl(namespace = "http://cxf.apache.org/xsd/test/messages", name = "requestMessage")
    public JAXBElement<RequestType> createRequestMessage(RequestType value) {
        return new JAXBElement<>(_RequestMessage_QNAME, RequestType.class, null, value);
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link ResponseType }{@code >}
     * 
     * @param value
     *     Java instance representing xml element's value.
     * @return
     *     the new instance of {@link JAXBElement }{@code <}{@link ResponseType }{@code >}
     */
    @XmlElementDecl(namespace = "http://cxf.apache.org/xsd/test/messages", name = "responseMessage")
    public JAXBElement<ResponseType> createResponseMessage(ResponseType value) {
        return new JAXBElement<>(_ResponseMessage_QNAME, ResponseType.class, null, value);
    }

}