ObjectFactory.java
package org.apache.samples.headers;
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.samples.headers 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 _SOAPHeaderInfo_QNAME = new QName("http://apache.org/samples/headers", "SOAPHeaderInfo");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.apache.samples.headers
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link SOAPHeaderData }
*
* @return
* the new instance of {@link SOAPHeaderData }
*/
public SOAPHeaderData createSOAPHeaderData() {
return new SOAPHeaderData();
}
/**
* Create an instance of {@link InHeader }
*
* @return
* the new instance of {@link InHeader }
*/
public InHeader createInHeader() {
return new InHeader();
}
/**
* Create an instance of {@link InHeaderResponse }
*
* @return
* the new instance of {@link InHeaderResponse }
*/
public InHeaderResponse createInHeaderResponse() {
return new InHeaderResponse();
}
/**
* Create an instance of {@link OutHeader }
*
* @return
* the new instance of {@link OutHeader }
*/
public OutHeader createOutHeader() {
return new OutHeader();
}
/**
* Create an instance of {@link OutHeaderResponse }
*
* @return
* the new instance of {@link OutHeaderResponse }
*/
public OutHeaderResponse createOutHeaderResponse() {
return new OutHeaderResponse();
}
/**
* Create an instance of {@link InoutHeader }
*
* @return
* the new instance of {@link InoutHeader }
*/
public InoutHeader createInoutHeader() {
return new InoutHeader();
}
/**
* Create an instance of {@link InoutHeaderResponse }
*
* @return
* the new instance of {@link InoutHeaderResponse }
*/
public InoutHeaderResponse createInoutHeaderResponse() {
return new InoutHeaderResponse();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link SOAPHeaderData }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link SOAPHeaderData }{@code >}
*/
@XmlElementDecl(namespace = "http://apache.org/samples/headers", name = "SOAPHeaderInfo")
public JAXBElement<SOAPHeaderData> createSOAPHeaderInfo(SOAPHeaderData value) {
return new JAXBElement<>(_SOAPHeaderInfo_QNAME, SOAPHeaderData.class, null, value);
}
}