ObjectFactory.java

package org.apache.nested_callback;

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.nested_callback 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:50:39Z")
public class ObjectFactory {

    private static final QName _NestedCallback_QNAME = new QName("http://apache.org/nested_callback", "NestedCallback");
    private static final QName _CallbackMessage_QNAME = new QName("http://apache.org/nested_callback", "callback_message");
    private static final QName _ReturnType_QNAME = new QName("http://apache.org/nested_callback", "returnType");

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

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

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link NestedCallback }{@code >}
     * 
     * @param value
     *     Java instance representing xml element's value.
     * @return
     *     the new instance of {@link JAXBElement }{@code <}{@link NestedCallback }{@code >}
     */
    @XmlElementDecl(namespace = "http://apache.org/nested_callback", name = "NestedCallback")
    public JAXBElement<NestedCallback> createNestedCallback(NestedCallback value) {
        return new JAXBElement<>(_NestedCallback_QNAME, NestedCallback.class, null, value);
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}
     * 
     * @param value
     *     Java instance representing xml element's value.
     * @return
     *     the new instance of {@link JAXBElement }{@code <}{@link String }{@code >}
     */
    @XmlElementDecl(namespace = "http://apache.org/nested_callback", name = "callback_message")
    public JAXBElement<String> createCallbackMessage(String value) {
        return new JAXBElement<>(_CallbackMessage_QNAME, String.class, null, value);
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}
     * 
     * @param value
     *     Java instance representing xml element's value.
     * @return
     *     the new instance of {@link JAXBElement }{@code <}{@link String }{@code >}
     */
    @XmlElementDecl(namespace = "http://apache.org/nested_callback", name = "returnType")
    public JAXBElement<String> createReturnType(String value) {
        return new JAXBElement<>(_ReturnType_QNAME, String.class, null, value);
    }

}