24 */ |
24 */ |
25 |
25 |
26 package com.sun.xml.internal.ws.api.wsdl.parser; |
26 package com.sun.xml.internal.ws.api.wsdl.parser; |
27 |
27 |
28 import com.sun.xml.internal.ws.api.WSService; |
28 import com.sun.xml.internal.ws.api.WSService; |
29 import com.sun.xml.internal.ws.api.model.wsdl.*; |
29 import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLBoundFault; |
|
30 import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLBoundOperation; |
|
31 import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLBoundPortType; |
|
32 import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLFault; |
|
33 import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLInput; |
|
34 import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLMessage; |
|
35 import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLOperation; |
|
36 import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLOutput; |
|
37 import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLPort; |
|
38 import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLPortType; |
|
39 import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLService; |
30 import com.sun.xml.internal.ws.api.pipe.Tube; |
40 import com.sun.xml.internal.ws.api.pipe.Tube; |
31 import com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser; |
41 import com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser; |
32 |
42 |
33 import javax.xml.stream.XMLStreamConstants; |
43 import javax.xml.stream.XMLStreamConstants; |
34 import javax.xml.stream.XMLStreamReader; |
44 import javax.xml.stream.XMLStreamReader; |
136 * The JAX-WS team waits for feedback on this topic. |
146 * The JAX-WS team waits for feedback on this topic. |
137 * |
147 * |
138 * @author Kohsuke Kawaguchi |
148 * @author Kohsuke Kawaguchi |
139 */ |
149 */ |
140 public abstract class WSDLParserExtension { |
150 public abstract class WSDLParserExtension { |
|
151 |
141 public void start(WSDLParserExtensionContext context){ |
152 public void start(WSDLParserExtensionContext context){ |
142 // noop |
153 // noop |
143 } |
154 } |
144 public void serviceAttributes(WSDLService service, XMLStreamReader reader) { |
155 |
145 // noop |
156 public void serviceAttributes(EditableWSDLService service, XMLStreamReader reader) { |
146 } |
157 // noop |
147 |
158 } |
148 public boolean serviceElements(WSDLService service, XMLStreamReader reader) { |
159 |
149 return false; |
160 public boolean serviceElements(EditableWSDLService service, XMLStreamReader reader) { |
150 } |
161 return false; |
151 |
162 } |
152 public void portAttributes(WSDLPort port, XMLStreamReader reader) { |
163 |
153 // noop |
164 public void portAttributes(EditableWSDLPort port, XMLStreamReader reader) { |
154 } |
165 // noop |
155 |
166 } |
156 public boolean portElements(WSDLPort port, XMLStreamReader reader) { |
167 |
157 return false; |
168 public boolean portElements(EditableWSDLPort port, XMLStreamReader reader) { |
158 } |
169 return false; |
159 |
170 } |
160 public boolean portTypeOperationInput(WSDLOperation op, XMLStreamReader reader) { |
171 |
161 return false; |
172 public boolean portTypeOperationInput(EditableWSDLOperation op, XMLStreamReader reader) { |
162 } |
173 return false; |
163 |
174 } |
164 public boolean portTypeOperationOutput(WSDLOperation op, XMLStreamReader reader) { |
175 |
165 return false; |
176 public boolean portTypeOperationOutput(EditableWSDLOperation op, XMLStreamReader reader) { |
166 } |
177 return false; |
167 |
178 } |
168 public boolean portTypeOperationFault(WSDLOperation op, XMLStreamReader reader) { |
179 |
|
180 public boolean portTypeOperationFault(EditableWSDLOperation op, XMLStreamReader reader) { |
169 return false; |
181 return false; |
170 } |
182 } |
171 |
183 |
172 public boolean definitionsElements(XMLStreamReader reader) { |
184 public boolean definitionsElements(XMLStreamReader reader) { |
173 return false; |
185 return false; |
174 } |
186 } |
175 |
187 |
176 public boolean bindingElements(WSDLBoundPortType binding, XMLStreamReader reader) { |
188 public boolean bindingElements(EditableWSDLBoundPortType binding, XMLStreamReader reader) { |
177 return false; |
189 return false; |
178 } |
190 } |
179 |
191 |
180 public void bindingAttributes(WSDLBoundPortType binding, XMLStreamReader reader) { |
192 public void bindingAttributes(EditableWSDLBoundPortType binding, XMLStreamReader reader) { |
181 } |
193 } |
182 |
194 |
183 public boolean portTypeElements(WSDLPortType portType, XMLStreamReader reader) { |
195 public boolean portTypeElements(EditableWSDLPortType portType, XMLStreamReader reader) { |
184 return false; |
196 return false; |
185 } |
197 } |
186 |
198 |
187 public void portTypeAttributes(WSDLPortType portType, XMLStreamReader reader) { |
199 public void portTypeAttributes(EditableWSDLPortType portType, XMLStreamReader reader) { |
188 } |
200 } |
189 |
201 |
190 public boolean portTypeOperationElements(WSDLOperation operation, XMLStreamReader reader) { |
202 public boolean portTypeOperationElements(EditableWSDLOperation operation, XMLStreamReader reader) { |
191 return false; |
203 return false; |
192 } |
204 } |
193 |
205 |
194 public void portTypeOperationAttributes(WSDLOperation operation, XMLStreamReader reader) { |
206 public void portTypeOperationAttributes(EditableWSDLOperation operation, XMLStreamReader reader) { |
195 } |
207 } |
196 |
208 |
197 public boolean bindingOperationElements(WSDLBoundOperation operation, XMLStreamReader reader) { |
209 public boolean bindingOperationElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) { |
198 return false; |
210 return false; |
199 } |
211 } |
200 |
212 |
201 public void bindingOperationAttributes(WSDLBoundOperation operation, XMLStreamReader reader) { |
213 public void bindingOperationAttributes(EditableWSDLBoundOperation operation, XMLStreamReader reader) { |
202 } |
214 } |
203 |
215 |
204 public boolean messageElements(WSDLMessage msg, XMLStreamReader reader) { |
216 public boolean messageElements(EditableWSDLMessage msg, XMLStreamReader reader) { |
205 return false; |
217 return false; |
206 } |
218 } |
207 |
219 |
208 public void messageAttributes(WSDLMessage msg, XMLStreamReader reader) { |
220 public void messageAttributes(EditableWSDLMessage msg, XMLStreamReader reader) { |
209 } |
221 } |
210 |
222 |
211 public boolean portTypeOperationInputElements(WSDLInput input, XMLStreamReader reader) { |
223 public boolean portTypeOperationInputElements(EditableWSDLInput input, XMLStreamReader reader) { |
212 return false; |
224 return false; |
213 } |
225 } |
214 |
226 |
215 public void portTypeOperationInputAttributes(WSDLInput input, XMLStreamReader reader) { |
227 public void portTypeOperationInputAttributes(EditableWSDLInput input, XMLStreamReader reader) { |
216 } |
228 } |
217 |
229 |
218 public boolean portTypeOperationOutputElements(WSDLOutput output, XMLStreamReader reader) { |
230 public boolean portTypeOperationOutputElements(EditableWSDLOutput output, XMLStreamReader reader) { |
219 return false; |
231 return false; |
220 } |
232 } |
221 |
233 |
222 public void portTypeOperationOutputAttributes(WSDLOutput output, XMLStreamReader reader) { |
234 public void portTypeOperationOutputAttributes(EditableWSDLOutput output, XMLStreamReader reader) { |
223 } |
235 } |
224 |
236 |
225 public boolean portTypeOperationFaultElements(WSDLFault fault, XMLStreamReader reader) { |
237 public boolean portTypeOperationFaultElements(EditableWSDLFault fault, XMLStreamReader reader) { |
226 return false; |
238 return false; |
227 } |
239 } |
228 |
240 |
229 public void portTypeOperationFaultAttributes(WSDLFault fault, XMLStreamReader reader) { |
241 public void portTypeOperationFaultAttributes(EditableWSDLFault fault, XMLStreamReader reader) { |
230 } |
242 } |
231 |
243 |
232 public boolean bindingOperationInputElements(WSDLBoundOperation operation, XMLStreamReader reader) { |
244 public boolean bindingOperationInputElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) { |
233 return false; |
245 return false; |
234 } |
246 } |
235 |
247 |
236 public void bindingOperationInputAttributes(WSDLBoundOperation operation, XMLStreamReader reader) { |
248 public void bindingOperationInputAttributes(EditableWSDLBoundOperation operation, XMLStreamReader reader) { |
237 } |
249 } |
238 |
250 |
239 public boolean bindingOperationOutputElements(WSDLBoundOperation operation, XMLStreamReader reader) { |
251 public boolean bindingOperationOutputElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) { |
240 return false; |
252 return false; |
241 } |
253 } |
242 |
254 |
243 public void bindingOperationOutputAttributes(WSDLBoundOperation operation, XMLStreamReader reader) { |
255 public void bindingOperationOutputAttributes(EditableWSDLBoundOperation operation, XMLStreamReader reader) { |
244 } |
256 } |
245 |
257 |
246 public boolean bindingOperationFaultElements(WSDLBoundFault fault, XMLStreamReader reader) { |
258 public boolean bindingOperationFaultElements(EditableWSDLBoundFault fault, XMLStreamReader reader) { |
247 return false; |
259 return false; |
248 } |
260 } |
249 |
261 |
250 public void bindingOperationFaultAttributes(WSDLBoundFault fault, XMLStreamReader reader) { |
262 public void bindingOperationFaultAttributes(EditableWSDLBoundFault fault, XMLStreamReader reader) { |
251 } |
263 } |
252 |
264 |
253 // TODO: complete the rest of the callback |
265 // TODO: complete the rest of the callback |
254 |
266 |
255 /** |
267 /** |