KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > description > AxisDescWSDLComponentFactory


1 package org.apache.axis2.description;
2
3 import org.apache.axis2.wsdl.builder.WSDLComponentFactory;
4 import org.apache.wsdl.*;
5 import org.apache.wsdl.extensions.ExtensionFactory;
6 import org.apache.wsdl.extensions.impl.ExtensionFactoryImpl;
7 import org.apache.wsdl.impl.*;
8
9 /**
10  * @author chathura@opensource.lk
11  *
12  */

13 public class AxisDescWSDLComponentFactory implements WSDLComponentFactory {
14
15     
16     public WSDLDescription createDescription() {
17         return new WSDLDescriptionImpl();
18     }
19
20     
21     public WSDLService createService() {
22         return new ServiceDescription();
23     }
24
25     
26     public WSDLInterface createInterface() {
27         return new WSDLInterfaceImpl();
28     }
29
30     
31     public WSDLTypes createTypes() {
32         return new WSDLTypesImpl();
33     }
34
35     
36     public WSDLBinding createBinding() {
37         return new WSDLBindingImpl();
38     }
39
40     
41     public WSDLOperation createOperation() {
42         return new OperationDescription();
43     }
44
45     
46     public WSDLEndpoint createEndpoint() {
47         return new WSDLEndpointImpl();
48     }
49
50     
51     public WSDLFeature createFeature() {
52         return new WSDLFeatureImpl();
53     }
54
55     
56     public WSDLImport createImport() {
57         return new WSDLImportImpl();
58     }
59
60     
61     public WSDLInclude createInclude() {
62         return new WSDLIncludeImpl();
63     }
64
65     
66     public WSDLProperty createProperty() {
67         return new WSDLPropertyImpl();
68     }
69     
70     public MessageReference createMessageReference(){
71         return new MessageReferenceImpl();
72     }
73     
74     public WSDLBindingMessageReference createWSDLBindingMessageReference(){
75         return new WSDLBindingMessageReferenceImpl();
76     }
77     
78     public WSDLBindingOperation createWSDLBindingOperation(){
79         return new WSDLBindingOperationImpl();
80     }
81         
82     public WSDLExtensibilityAttribute createWSDLExtensibilityAttribute(){
83         return new WSDLExtensibilityAttributeImpl();
84     }
85     
86     /**
87      *
88      * @return A new Instance of <code>ExtensionFactory</code> that
89      * is capable of creating the correct <code>ExtensibilityElement</code>
90      * given a <code>QName</code>.
91      */

92     public ExtensionFactory createExtensionFactory(){
93         return new ExtensionFactoryImpl();
94     }
95     
96     public WSDLFaultReference createFaultReference(){
97         return new WSDLFaultReferenceImpl();
98     }
99     
100     public WSDLBindingFault createBindingFault(){
101         return new WSDLBindingFaultImpl();
102     }
103
104 }
105
Popular Tags