ObjectFactory.java
package org.apache.cxf;
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 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 _HelloRequest_QNAME = new QName("http://cxf.apache.org/", "helloRequest");
private static final QName _HelloResponse_QNAME = new QName("http://cxf.apache.org/", "helloResponse");
private static final QName _ExceptionType_QNAME = new QName("http://cxf.apache.org/", "ExceptionType");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.apache.cxf
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link Hello }
*
* @return
* the new instance of {@link Hello }
*/
public Hello createHello() {
return new Hello();
}
/**
* Create an instance of {@link HelloResponse }
*
* @return
* the new instance of {@link HelloResponse }
*/
public HelloResponse createHelloResponse() {
return new HelloResponse();
}
/**
* Create an instance of {@link ExceptionType }
*
* @return
* the new instance of {@link ExceptionType }
*/
public ExceptionType createExceptionType() {
return new ExceptionType();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Hello }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Hello }{@code >}
*/
@XmlElementDecl(namespace = "http://cxf.apache.org/", name = "helloRequest")
public JAXBElement<Hello> createHelloRequest(Hello value) {
return new JAXBElement<>(_HelloRequest_QNAME, Hello.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link HelloResponse }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link HelloResponse }{@code >}
*/
@XmlElementDecl(namespace = "http://cxf.apache.org/", name = "helloResponse")
public JAXBElement<HelloResponse> createHelloResponse(HelloResponse value) {
return new JAXBElement<>(_HelloResponse_QNAME, HelloResponse.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link ExceptionType }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link ExceptionType }{@code >}
*/
@XmlElementDecl(namespace = "http://cxf.apache.org/", name = "ExceptionType")
public JAXBElement<ExceptionType> createExceptionType(ExceptionType value) {
return new JAXBElement<>(_ExceptionType_QNAME, ExceptionType.class, null, value);
}
}