01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19: package org.apache.ws.axis2.tests;
20:
21: import javax.xml.bind.JAXBElement;
22: import javax.xml.bind.annotation.XmlElementDecl;
23: import javax.xml.bind.annotation.XmlRegistry;
24: import javax.xml.namespace.QName;
25:
26: /**
27: * This object contains factory methods for each
28: * Java content interface and Java element interface
29: * generated in the org.apache.ws.axis2.tests package.
30: * <p>An ObjectFactory allows you to programatically
31: * construct new instances of the Java representation
32: * for XML content. The Java representation of XML
33: * content can consist of schema derived interfaces
34: * and classes representing the binding of schema
35: * type definitions, element declarations and model
36: * groups. Factory methods for each of these are
37: * provided in this class.
38: *
39: */
40: @XmlRegistry
41: public class ObjectFactory {
42:
43: private final static QName _EchoResponse_QNAME = new QName(
44: "http://ws.apache.org/axis2/tests", "EchoResponse");
45: private final static QName _Echo_QNAME = new QName(
46: "http://ws.apache.org/axis2/tests", "Echo");
47:
48: /**
49: * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.apache.ws.axis2.tests
50: *
51: */
52: public ObjectFactory() {
53: }
54:
55: /**
56: * Create an instance of {@link EchoResponse }
57: *
58: */
59: public EchoResponse createEchoResponse() {
60: return new EchoResponse();
61: }
62:
63: /**
64: * Create an instance of {@link Echo }
65: *
66: */
67: public Echo createEcho() {
68: return new Echo();
69: }
70:
71: /**
72: * Create an instance of {@link JAXBElement }{@code <}{@link EchoResponse }{@code >}}
73: *
74: */
75: @XmlElementDecl(namespace="http://ws.apache.org/axis2/tests",name="EchoResponse")
76: public JAXBElement<EchoResponse> createEchoResponse(
77: EchoResponse value) {
78: return new JAXBElement<EchoResponse>(_EchoResponse_QNAME,
79: EchoResponse.class, null, value);
80: }
81:
82: /**
83: * Create an instance of {@link JAXBElement }{@code <}{@link Echo }{@code >}}
84: *
85: */
86: @XmlElementDecl(namespace="http://ws.apache.org/axis2/tests",name="Echo")
87: public JAXBElement<Echo> createEcho(Echo value) {
88: return new JAXBElement<Echo>(_Echo_QNAME, Echo.class, null,
89: value);
90: }
91:
92: }
|