1.1 --- a/src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/parser/WSDLParserExtensionFacade.java Thu Sep 26 10:43:28 2013 -0700 1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/parser/WSDLParserExtensionFacade.java Fri Oct 04 16:21:34 2013 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -27,10 +27,8 @@ 1.11 1.12 import com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtension; 1.13 import com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtensionContext; 1.14 -import com.sun.xml.internal.ws.api.model.wsdl.*; 1.15 +import com.sun.xml.internal.ws.api.model.wsdl.editable.*; 1.16 import com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil; 1.17 -import com.sun.xml.internal.ws.model.wsdl.WSDLPortImpl; 1.18 -import com.sun.xml.internal.ws.model.wsdl.WSDLBoundPortTypeImpl; 1.19 1.20 import javax.xml.stream.XMLStreamReader; 1.21 import javax.xml.stream.Location; 1.22 @@ -66,7 +64,7 @@ 1.23 } 1.24 } 1.25 1.26 - public boolean serviceElements(WSDLService service, XMLStreamReader reader) { 1.27 + public boolean serviceElements(EditableWSDLService service, XMLStreamReader reader) { 1.28 for (WSDLParserExtension e : extensions) { 1.29 if(e.serviceElements(service,reader)) 1.30 return true; 1.31 @@ -75,12 +73,12 @@ 1.32 return true; 1.33 } 1.34 1.35 - public void serviceAttributes(WSDLService service, XMLStreamReader reader) { 1.36 + public void serviceAttributes(EditableWSDLService service, XMLStreamReader reader) { 1.37 for (WSDLParserExtension e : extensions) 1.38 e.serviceAttributes(service,reader); 1.39 } 1.40 1.41 - public boolean portElements(WSDLPort port, XMLStreamReader reader) { 1.42 + public boolean portElements(EditableWSDLPort port, XMLStreamReader reader) { 1.43 for (WSDLParserExtension e : extensions) { 1.44 if(e.portElements(port,reader)) 1.45 return true; 1.46 @@ -88,34 +86,34 @@ 1.47 //extension is not understood by any WSDlParserExtension 1.48 //Check if it must be understood. 1.49 if(isRequiredExtension(reader)) { 1.50 - ((WSDLPortImpl)port).addNotUnderstoodExtension(reader.getName(),getLocator(reader)); 1.51 + port.addNotUnderstoodExtension(reader.getName(),getLocator(reader)); 1.52 } 1.53 XMLStreamReaderUtil.skipElement(reader); 1.54 return true; 1.55 } 1.56 1.57 - public boolean portTypeOperationInput(WSDLOperation op, XMLStreamReader reader) { 1.58 + public boolean portTypeOperationInput(EditableWSDLOperation op, XMLStreamReader reader) { 1.59 for (WSDLParserExtension e : extensions) 1.60 e.portTypeOperationInput(op,reader); 1.61 1.62 return false; 1.63 } 1.64 1.65 - public boolean portTypeOperationOutput(WSDLOperation op, XMLStreamReader reader) { 1.66 + public boolean portTypeOperationOutput(EditableWSDLOperation op, XMLStreamReader reader) { 1.67 for (WSDLParserExtension e : extensions) 1.68 e.portTypeOperationOutput(op,reader); 1.69 1.70 return false; 1.71 } 1.72 1.73 - public boolean portTypeOperationFault(WSDLOperation op, XMLStreamReader reader) { 1.74 + public boolean portTypeOperationFault(EditableWSDLOperation op, XMLStreamReader reader) { 1.75 for (WSDLParserExtension e : extensions) 1.76 e.portTypeOperationFault(op,reader); 1.77 1.78 return false; 1.79 } 1.80 1.81 - public void portAttributes(WSDLPort port, XMLStreamReader reader) { 1.82 + public void portAttributes(EditableWSDLPort port, XMLStreamReader reader) { 1.83 for (WSDLParserExtension e : extensions) 1.84 e.portAttributes(port,reader); 1.85 } 1.86 @@ -130,7 +128,7 @@ 1.87 return true; 1.88 } 1.89 1.90 - public boolean bindingElements(WSDLBoundPortType binding, XMLStreamReader reader){ 1.91 + public boolean bindingElements(EditableWSDLBoundPortType binding, XMLStreamReader reader){ 1.92 for (WSDLParserExtension e : extensions) { 1.93 if (e.bindingElements(binding, reader)) { 1.94 return true; 1.95 @@ -139,20 +137,20 @@ 1.96 //extension is not understood by any WSDlParserExtension 1.97 //Check if it must be understood. 1.98 if (isRequiredExtension(reader)) { 1.99 - ((WSDLBoundPortTypeImpl) binding).addNotUnderstoodExtension( 1.100 + binding.addNotUnderstoodExtension( 1.101 reader.getName(), getLocator(reader)); 1.102 } 1.103 XMLStreamReaderUtil.skipElement(reader); 1.104 return true; 1.105 } 1.106 1.107 - public void bindingAttributes(WSDLBoundPortType binding, XMLStreamReader reader){ 1.108 + public void bindingAttributes(EditableWSDLBoundPortType binding, XMLStreamReader reader){ 1.109 for (WSDLParserExtension e : extensions) { 1.110 e.bindingAttributes(binding, reader); 1.111 } 1.112 } 1.113 1.114 - public boolean portTypeElements(WSDLPortType portType, XMLStreamReader reader) { 1.115 + public boolean portTypeElements(EditableWSDLPortType portType, XMLStreamReader reader) { 1.116 for (WSDLParserExtension e : extensions) { 1.117 if (e.portTypeElements(portType, reader)) { 1.118 return true; 1.119 @@ -162,13 +160,13 @@ 1.120 return true; 1.121 } 1.122 1.123 - public void portTypeAttributes(WSDLPortType portType, XMLStreamReader reader) { 1.124 + public void portTypeAttributes(EditableWSDLPortType portType, XMLStreamReader reader) { 1.125 for (WSDLParserExtension e : extensions) { 1.126 e.portTypeAttributes(portType, reader); 1.127 } 1.128 } 1.129 1.130 - public boolean portTypeOperationElements(WSDLOperation operation, XMLStreamReader reader) { 1.131 + public boolean portTypeOperationElements(EditableWSDLOperation operation, XMLStreamReader reader) { 1.132 for (WSDLParserExtension e : extensions) { 1.133 if (e.portTypeOperationElements(operation, reader)) { 1.134 return true; 1.135 @@ -178,13 +176,13 @@ 1.136 return true; 1.137 } 1.138 1.139 - public void portTypeOperationAttributes(WSDLOperation operation, XMLStreamReader reader) { 1.140 + public void portTypeOperationAttributes(EditableWSDLOperation operation, XMLStreamReader reader) { 1.141 for (WSDLParserExtension e : extensions) { 1.142 e.portTypeOperationAttributes(operation, reader); 1.143 } 1.144 } 1.145 1.146 - public boolean bindingOperationElements(WSDLBoundOperation operation, XMLStreamReader reader) { 1.147 + public boolean bindingOperationElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) { 1.148 for (WSDLParserExtension e : extensions) { 1.149 if (e.bindingOperationElements(operation, reader)) { 1.150 return true; 1.151 @@ -194,13 +192,13 @@ 1.152 return true; 1.153 } 1.154 1.155 - public void bindingOperationAttributes(WSDLBoundOperation operation, XMLStreamReader reader) { 1.156 + public void bindingOperationAttributes(EditableWSDLBoundOperation operation, XMLStreamReader reader) { 1.157 for (WSDLParserExtension e : extensions) { 1.158 e.bindingOperationAttributes(operation, reader); 1.159 } 1.160 } 1.161 1.162 - public boolean messageElements(WSDLMessage msg, XMLStreamReader reader) { 1.163 + public boolean messageElements(EditableWSDLMessage msg, XMLStreamReader reader) { 1.164 for (WSDLParserExtension e : extensions) { 1.165 if (e.messageElements(msg, reader)) { 1.166 return true; 1.167 @@ -210,13 +208,13 @@ 1.168 return true; 1.169 } 1.170 1.171 - public void messageAttributes(WSDLMessage msg, XMLStreamReader reader) { 1.172 + public void messageAttributes(EditableWSDLMessage msg, XMLStreamReader reader) { 1.173 for (WSDLParserExtension e : extensions) { 1.174 e.messageAttributes(msg, reader); 1.175 } 1.176 } 1.177 1.178 - public boolean portTypeOperationInputElements(WSDLInput input, XMLStreamReader reader) { 1.179 + public boolean portTypeOperationInputElements(EditableWSDLInput input, XMLStreamReader reader) { 1.180 for (WSDLParserExtension e : extensions) { 1.181 if (e.portTypeOperationInputElements(input, reader)) { 1.182 return true; 1.183 @@ -226,13 +224,13 @@ 1.184 return true; 1.185 } 1.186 1.187 - public void portTypeOperationInputAttributes(WSDLInput input, XMLStreamReader reader) { 1.188 + public void portTypeOperationInputAttributes(EditableWSDLInput input, XMLStreamReader reader) { 1.189 for (WSDLParserExtension e : extensions) { 1.190 e.portTypeOperationInputAttributes(input, reader); 1.191 } 1.192 } 1.193 1.194 - public boolean portTypeOperationOutputElements(WSDLOutput output, XMLStreamReader reader) { 1.195 + public boolean portTypeOperationOutputElements(EditableWSDLOutput output, XMLStreamReader reader) { 1.196 for (WSDLParserExtension e : extensions) { 1.197 if (e.portTypeOperationOutputElements(output, reader)) { 1.198 return true; 1.199 @@ -242,13 +240,13 @@ 1.200 return true; 1.201 } 1.202 1.203 - public void portTypeOperationOutputAttributes(WSDLOutput output, XMLStreamReader reader) { 1.204 + public void portTypeOperationOutputAttributes(EditableWSDLOutput output, XMLStreamReader reader) { 1.205 for (WSDLParserExtension e : extensions) { 1.206 e.portTypeOperationOutputAttributes(output, reader); 1.207 } 1.208 } 1.209 1.210 - public boolean portTypeOperationFaultElements(WSDLFault fault, XMLStreamReader reader) { 1.211 + public boolean portTypeOperationFaultElements(EditableWSDLFault fault, XMLStreamReader reader) { 1.212 for (WSDLParserExtension e : extensions) { 1.213 if (e.portTypeOperationFaultElements(fault, reader)) { 1.214 return true; 1.215 @@ -258,13 +256,13 @@ 1.216 return true; 1.217 } 1.218 1.219 - public void portTypeOperationFaultAttributes(WSDLFault fault, XMLStreamReader reader) { 1.220 + public void portTypeOperationFaultAttributes(EditableWSDLFault fault, XMLStreamReader reader) { 1.221 for (WSDLParserExtension e : extensions) { 1.222 e.portTypeOperationFaultAttributes(fault, reader); 1.223 } 1.224 } 1.225 1.226 - public boolean bindingOperationInputElements(WSDLBoundOperation operation, XMLStreamReader reader) { 1.227 + public boolean bindingOperationInputElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) { 1.228 for (WSDLParserExtension e : extensions) { 1.229 if (e.bindingOperationInputElements(operation, reader)) { 1.230 return true; 1.231 @@ -274,13 +272,13 @@ 1.232 return true; 1.233 } 1.234 1.235 - public void bindingOperationInputAttributes(WSDLBoundOperation operation, XMLStreamReader reader) { 1.236 + public void bindingOperationInputAttributes(EditableWSDLBoundOperation operation, XMLStreamReader reader) { 1.237 for (WSDLParserExtension e : extensions) { 1.238 e.bindingOperationInputAttributes(operation, reader); 1.239 } 1.240 } 1.241 1.242 - public boolean bindingOperationOutputElements(WSDLBoundOperation operation, XMLStreamReader reader) { 1.243 + public boolean bindingOperationOutputElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) { 1.244 for (WSDLParserExtension e : extensions) { 1.245 if (e.bindingOperationOutputElements(operation, reader)) { 1.246 return true; 1.247 @@ -290,13 +288,13 @@ 1.248 return true; 1.249 } 1.250 1.251 - public void bindingOperationOutputAttributes(WSDLBoundOperation operation, XMLStreamReader reader) { 1.252 + public void bindingOperationOutputAttributes(EditableWSDLBoundOperation operation, XMLStreamReader reader) { 1.253 for (WSDLParserExtension e : extensions) { 1.254 e.bindingOperationOutputAttributes(operation, reader); 1.255 } 1.256 } 1.257 1.258 - public boolean bindingOperationFaultElements(WSDLBoundFault fault, XMLStreamReader reader) { 1.259 + public boolean bindingOperationFaultElements(EditableWSDLBoundFault fault, XMLStreamReader reader) { 1.260 for (WSDLParserExtension e : extensions) { 1.261 if (e.bindingOperationFaultElements(fault, reader)) { 1.262 return true; 1.263 @@ -306,7 +304,7 @@ 1.264 return true; 1.265 } 1.266 1.267 - public void bindingOperationFaultAttributes(WSDLBoundFault fault, XMLStreamReader reader) { 1.268 + public void bindingOperationFaultAttributes(EditableWSDLBoundFault fault, XMLStreamReader reader) { 1.269 for (WSDLParserExtension e : extensions) { 1.270 e.bindingOperationFaultAttributes(fault, reader); 1.271 }