1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.geronimo.ews.jaxrpcmapping;
17
18 import org.apache.axis.wsdl.symbolTable.BindingEntry;
19 import org.apache.axis.wsdl.symbolTable.PortTypeEntry;
20 import org.apache.axis.wsdl.symbolTable.ServiceEntry;
21 import org.apache.geronimo.ews.ws4j2ee.toWs.GenerationFault;
22
23 import javax.wsdl.Operation;
24 import javax.wsdl.Port;
25 import javax.xml.namespace.QName;
26 import java.io.InputStream;
27
28 /***
29 * @author Srinath Perera(hemapani@opensource.lk)
30 */
31 public interface JaxRpcMapper {
32 public abstract void loadMappingFromInputStream(InputStream is) throws GenerationFault;
33
34 public abstract void loadMappingFromDir(String path) throws GenerationFault;
35
36 /***
37 * @return Returns the mapping.
38 */
39 public int getPackageMappingCount();
40
41 public String getPackageMappingClassName(int index);
42
43 public String getPackageMappingURI(int index);
44
45 public abstract String getJavaType(QName typeQName);
46
47 public abstract String getExceptionType(QName messageQName);
48
49 public abstract String getPortName(Port port);
50
51 public abstract String getServiceInterfaceName(ServiceEntry entry);
52
53 public abstract String getServiceEndpointInterfaceName(PortTypeEntry ptEntry,
54 BindingEntry bEntry);
55
56 /***
57 * @param entry
58 * @param operation
59 * @param i
60 * @return
61 */
62 public abstract String getJavaMethodParamType(BindingEntry bEntry,
63 Operation operation,
64 int position);
65
66 /***
67 * @param entry
68 * @param operation
69 * @return
70 */
71 public abstract String getJavaMethodReturnType(BindingEntry bEntry,
72 Operation operation);
73
74 /***
75 * @param entry
76 * @param operation
77 * @return
78 */
79 public abstract String getJavaMethodName(BindingEntry bEntry,
80 Operation operation);
81
82 public abstract boolean hasWrappedElement();
83 }