01: package org.objectweb.celtix.bus.bindings;
02:
03: import javax.jws.WebParam;
04: import javax.jws.WebResult;
05: import javax.jws.soap.SOAPBinding.ParameterStyle;
06: import javax.jws.soap.SOAPBinding.Style;
07: import javax.jws.soap.SOAPBinding.Use;
08: import javax.xml.namespace.QName;
09:
10: import org.objectweb.celtix.bindings.DataBindingCallback;
11: import org.objectweb.celtix.bindings.DataBindingCallback.Mode;
12: import org.objectweb.celtix.bindings.DataReader;
13: import org.objectweb.celtix.bindings.DataWriter;
14:
15: public abstract class AbstractWSDLOperationDataBindingCallback
16: implements DataBindingCallback {
17: protected WSDLOperationInfo operation;
18:
19: public AbstractWSDLOperationDataBindingCallback(WSDLOperationInfo op) {
20: operation = op;
21: }
22:
23: public WSDLOperationInfo getOperationInfo() {
24: return operation;
25: }
26:
27: public abstract Mode getMode();
28:
29: public abstract Class<?>[] getSupportedFormats();
30:
31: public abstract <T> DataWriter<T> createWriter(Class<T> cls);
32:
33: public abstract <T> DataReader<T> createReader(Class<T> cls);
34:
35: public boolean isOneWay() {
36: return operation.isOneWay();
37: }
38:
39: public Style getSOAPStyle() {
40: return operation.getSOAPStyle();
41: }
42:
43: public Use getSOAPUse() {
44: return operation.getSOAPUse();
45: }
46:
47: public ParameterStyle getSOAPParameterStyle() {
48: return operation.getSOAPParameterStyle();
49: }
50:
51: public String getOperationName() {
52: return operation.getOperationName();
53: }
54:
55: public String getTargetNamespace() {
56: return operation.getTargetNamespace();
57: }
58:
59: public String getSOAPAction() {
60: return operation.getSOAPAction();
61: }
62:
63: public WebResult getWebResult() {
64: return operation.getWebResult();
65: }
66:
67: public QName getWebResultQName() {
68: return operation.getWebResultQName();
69: }
70:
71: public WebParam getWebParam(int index) {
72: return operation.getWebParam(index);
73: }
74:
75: public int getParamsLength() {
76: return operation.getParamsLength();
77: }
78:
79: public QName getRequestWrapperQName() {
80: return operation.getRequestWrapperQName();
81: }
82:
83: public QName getResponseWrapperQName() {
84: return operation.getResponseWrapperQName();
85: }
86:
87: }
|