KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > ws > jaxws > webserviceref > ObjectFactory


1 /*
2  * JBoss, Home of Professional Open Source
3  * Copyright 2006, Red Hat Middleware LLC, and individual contributors
4  * by the @authors tag. See the copyright.txt in the distribution for a
5  * full listing of individual contributors.
6  *
7  * This is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as
9  * published by the Free Software Foundation; either version 2.1 of
10  * the License, or (at your option) any later version.
11  *
12  * This software is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this software; if not, write to the Free
19  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21  */

22 package org.jboss.test.ws.jaxws.webserviceref;
23
24 import javax.xml.bind.JAXBElement;
25 import javax.xml.bind.annotation.XmlElementDecl;
26 import javax.xml.bind.annotation.XmlRegistry;
27 import javax.xml.namespace.QName JavaDoc;
28
29
30 /**
31  * This object contains factory methods for each
32  * Java content interface and Java element interface
33  * generated in the org.jboss.test.ws.jaxws.webserviceref package.
34  * <p>An ObjectFactory allows you to programatically
35  * construct new instances of the Java representation
36  * for XML content. The Java representation of XML
37  * content can consist of schema derived interfaces
38  * and classes representing the binding of schema
39  * type definitions, element declarations and model
40  * groups. Factory methods for each of these are
41  * provided in this class.
42  *
43  */

44 @XmlRegistry
45 public class ObjectFactory {
46
47     private final static QName JavaDoc _EchoResponse_QNAME = new QName JavaDoc("http://org.jboss.ws/wsref", "echoResponse");
48     private final static QName JavaDoc _Echo_QNAME = new QName JavaDoc("http://org.jboss.ws/wsref", "echo");
49
50     /**
51      * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.webserviceref
52      *
53      */

54     public ObjectFactory() {
55     }
56
57     /**
58      * Create an instance of {@link EchoResponse }
59      *
60      */

61     public EchoResponse createEchoResponse() {
62         return new EchoResponse();
63     }
64
65     /**
66      * Create an instance of {@link Echo }
67      *
68      */

69     public Echo createEcho() {
70         return new Echo();
71     }
72
73     /**
74      * Create an instance of {@link JAXBElement }{@code <}{@link EchoResponse }{@code >}}
75      *
76      */

77     @XmlElementDecl(namespace = "http://org.jboss.ws/wsref", name = "echoResponse")
78     public JAXBElement<EchoResponse> createEchoResponse(EchoResponse value) {
79         return new JAXBElement<EchoResponse>(_EchoResponse_QNAME, EchoResponse.class, null, value);
80     }
81
82     /**
83      * Create an instance of {@link JAXBElement }{@code <}{@link Echo }{@code >}}
84      *
85      */

86     @XmlElementDecl(namespace = "http://org.jboss.ws/wsref", name = "echo")
87     public JAXBElement<Echo> createEcho(Echo value) {
88         return new JAXBElement<Echo>(_Echo_QNAME, Echo.class, null, value);
89     }
90
91 }
92
Popular Tags