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 Java content interface and Java element interface
28: * generated in the org.apache.ws.axis2.tests package. <p>An ObjectFactory allows you to
29: * programatically construct new instances of the Java representation for XML content. The Java
30: * representation of XML content can consist of schema derived interfaces and classes representing
31: * the binding of schema type definitions, element declarations and model groups. Factory methods
32: * for each of these are provided in this class.
33: */
34: @XmlRegistry
35: public class ObjectFactory {
36:
37: private final static QName _EchoResponse_QNAME = new QName(
38: "http://ws.apache.org/axis2/tests", "EchoResponse");
39: private final static QName _Echo_QNAME = new QName(
40: "http://ws.apache.org/axis2/tests", "Echo");
41:
42: /**
43: * Create a new ObjectFactory that can be used to create new instances of schema derived classes
44: * for package: org.apache.ws.axis2.tests
45: */
46: public ObjectFactory() {
47: }
48:
49: /** Create an instance of {@link EchoResponse } */
50: public EchoResponse createEchoResponse() {
51: return new EchoResponse();
52: }
53:
54: /** Create an instance of {@link Echo } */
55: public Echo createEcho() {
56: return new Echo();
57: }
58:
59: /** Create an instance of {@link JAXBElement }{@code <}{@link EchoResponse }{@code >}} */
60: @XmlElementDecl(namespace="http://ws.apache.org/axis2/tests",name="EchoResponse")
61: public JAXBElement<EchoResponse> createEchoResponse(
62: EchoResponse value) {
63: return new JAXBElement<EchoResponse>(_EchoResponse_QNAME,
64: EchoResponse.class, null, value);
65: }
66:
67: /** Create an instance of {@link JAXBElement }{@code <}{@link Echo }{@code >}} */
68: @XmlElementDecl(namespace="http://ws.apache.org/axis2/tests",name="Echo")
69: public JAXBElement<Echo> createEcho(Echo value) {
70: return new JAXBElement<Echo>(_Echo_QNAME, Echo.class, null,
71: value);
72: }
73:
74: }
|