home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java EE 6 example source code file (ObjectFactory.java)

This example Java EE 6 source code file (ObjectFactory.java) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Java EE 6 tags/keywords

gethello, gethello, gethelloresponse, jaxbelement, jaxbelement, objectfactory, qname, qname, xmlelementdecl, xmlelementdecl, xmlregistry

The Java EE 6 ObjectFactory.java source code


package endpoint;

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


/**
 * This object contains factory methods for each 
 * Java content interface and Java element interface 
 * generated in the endpoint package. 
 * <p>An ObjectFactory allows you to programatically 
 * 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
public class ObjectFactory {

    private final static QName _GetHelloResponse_QNAME = new QName("http://endpoint/", "getHelloResponse");
    private final static QName _GetHello_QNAME = new QName("http://endpoint/", "getHello");

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

    /**
     * Create an instance of {@link GetHello }
     * 
     */
    public GetHello createGetHello() {
        return new GetHello();
    }

    /**
     * Create an instance of {@link GetHelloResponse }
     * 
     */
    public GetHelloResponse createGetHelloResponse() {
        return new GetHelloResponse();
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link GetHelloResponse }{@code >}}
     * 
     */
    @XmlElementDecl(namespace = "http://endpoint/", name = "getHelloResponse")
    public JAXBElement<GetHelloResponse> createGetHelloResponse(GetHelloResponse value) {
        return new JAXBElement<GetHelloResponse>(_GetHelloResponse_QNAME, GetHelloResponse.class, null, value);
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link GetHello }{@code >}}
     * 
     */
    @XmlElementDecl(namespace = "http://endpoint/", name = "getHello")
    public JAXBElement<GetHello> createGetHello(GetHello value) {
        return new JAXBElement<GetHello>(_GetHello_QNAME, GetHello.class, null, value);
    }

}

Other Java EE 6 examples (source code examples)

Here is a short list of links related to this Java EE 6 ObjectFactory.java source code file:



my book on functional programming

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.