1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/parser/DelegatingParserExtension.java Wed Apr 27 01:27:09 2016 +0800 1.3 @@ -0,0 +1,178 @@ 1.4 +/* 1.5 + * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.7 + * 1.8 + * This code is free software; you can redistribute it and/or modify it 1.9 + * under the terms of the GNU General Public License version 2 only, as 1.10 + * published by the Free Software Foundation. Oracle designates this 1.11 + * particular file as subject to the "Classpath" exception as provided 1.12 + * by Oracle in the LICENSE file that accompanied this code. 1.13 + * 1.14 + * This code is distributed in the hope that it will be useful, but WITHOUT 1.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.16 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.17 + * version 2 for more details (a copy is included in the LICENSE file that 1.18 + * accompanied this code). 1.19 + * 1.20 + * You should have received a copy of the GNU General Public License version 1.21 + * 2 along with this work; if not, write to the Free Software Foundation, 1.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.23 + * 1.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1.25 + * or visit www.oracle.com if you need additional information or have any 1.26 + * questions. 1.27 + */ 1.28 + 1.29 +package com.sun.xml.internal.ws.wsdl.parser; 1.30 + 1.31 +import com.sun.xml.internal.ws.api.model.wsdl.editable.*; 1.32 +import com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtension; 1.33 +import com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtensionContext; 1.34 + 1.35 +import javax.xml.stream.XMLStreamReader; 1.36 + 1.37 +/** 1.38 + * Delegate to another {@link WSDLParserExtension} 1.39 + * useful for the base class for filtering. 1.40 + * 1.41 + * @author Kohsuke Kawaguchi 1.42 + */ 1.43 +class DelegatingParserExtension extends WSDLParserExtension { 1.44 + protected final WSDLParserExtension core; 1.45 + 1.46 + public DelegatingParserExtension(WSDLParserExtension core) { 1.47 + this.core = core; 1.48 + } 1.49 + 1.50 + public void start(WSDLParserExtensionContext context) { 1.51 + core.start(context); 1.52 + } 1.53 + 1.54 + public void serviceAttributes(EditableWSDLService service, XMLStreamReader reader) { 1.55 + core.serviceAttributes(service, reader); 1.56 + } 1.57 + 1.58 + public boolean serviceElements(EditableWSDLService service, XMLStreamReader reader) { 1.59 + return core.serviceElements(service, reader); 1.60 + } 1.61 + 1.62 + public void portAttributes(EditableWSDLPort port, XMLStreamReader reader) { 1.63 + core.portAttributes(port, reader); 1.64 + } 1.65 + 1.66 + public boolean portElements(EditableWSDLPort port, XMLStreamReader reader) { 1.67 + return core.portElements(port, reader); 1.68 + } 1.69 + 1.70 + public boolean portTypeOperationInput(EditableWSDLOperation op, XMLStreamReader reader) { 1.71 + return core.portTypeOperationInput(op, reader); 1.72 + } 1.73 + 1.74 + public boolean portTypeOperationOutput(EditableWSDLOperation op, XMLStreamReader reader) { 1.75 + return core.portTypeOperationOutput(op, reader); 1.76 + } 1.77 + 1.78 + public boolean portTypeOperationFault(EditableWSDLOperation op, XMLStreamReader reader) { 1.79 + return core.portTypeOperationFault(op, reader); 1.80 + } 1.81 + 1.82 + public boolean definitionsElements(XMLStreamReader reader) { 1.83 + return core.definitionsElements(reader); 1.84 + } 1.85 + 1.86 + public boolean bindingElements(EditableWSDLBoundPortType binding, XMLStreamReader reader) { 1.87 + return core.bindingElements(binding, reader); 1.88 + } 1.89 + 1.90 + public void bindingAttributes(EditableWSDLBoundPortType binding, XMLStreamReader reader) { 1.91 + core.bindingAttributes(binding, reader); 1.92 + } 1.93 + 1.94 + public boolean portTypeElements(EditableWSDLPortType portType, XMLStreamReader reader) { 1.95 + return core.portTypeElements(portType, reader); 1.96 + } 1.97 + 1.98 + public void portTypeAttributes(EditableWSDLPortType portType, XMLStreamReader reader) { 1.99 + core.portTypeAttributes(portType, reader); 1.100 + } 1.101 + 1.102 + public boolean portTypeOperationElements(EditableWSDLOperation operation, XMLStreamReader reader) { 1.103 + return core.portTypeOperationElements(operation, reader); 1.104 + } 1.105 + 1.106 + public void portTypeOperationAttributes(EditableWSDLOperation operation, XMLStreamReader reader) { 1.107 + core.portTypeOperationAttributes(operation, reader); 1.108 + } 1.109 + 1.110 + public boolean bindingOperationElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) { 1.111 + return core.bindingOperationElements(operation, reader); 1.112 + } 1.113 + 1.114 + public void bindingOperationAttributes(EditableWSDLBoundOperation operation, XMLStreamReader reader) { 1.115 + core.bindingOperationAttributes(operation, reader); 1.116 + } 1.117 + 1.118 + public boolean messageElements(EditableWSDLMessage msg, XMLStreamReader reader) { 1.119 + return core.messageElements(msg, reader); 1.120 + } 1.121 + 1.122 + public void messageAttributes(EditableWSDLMessage msg, XMLStreamReader reader) { 1.123 + core.messageAttributes(msg, reader); 1.124 + } 1.125 + 1.126 + public boolean portTypeOperationInputElements(EditableWSDLInput input, XMLStreamReader reader) { 1.127 + return core.portTypeOperationInputElements(input, reader); 1.128 + } 1.129 + 1.130 + public void portTypeOperationInputAttributes(EditableWSDLInput input, XMLStreamReader reader) { 1.131 + core.portTypeOperationInputAttributes(input, reader); 1.132 + } 1.133 + 1.134 + public boolean portTypeOperationOutputElements(EditableWSDLOutput output, XMLStreamReader reader) { 1.135 + return core.portTypeOperationOutputElements(output, reader); 1.136 + } 1.137 + 1.138 + public void portTypeOperationOutputAttributes(EditableWSDLOutput output, XMLStreamReader reader) { 1.139 + core.portTypeOperationOutputAttributes(output, reader); 1.140 + } 1.141 + 1.142 + public boolean portTypeOperationFaultElements(EditableWSDLFault fault, XMLStreamReader reader) { 1.143 + return core.portTypeOperationFaultElements(fault, reader); 1.144 + } 1.145 + 1.146 + public void portTypeOperationFaultAttributes(EditableWSDLFault fault, XMLStreamReader reader) { 1.147 + core.portTypeOperationFaultAttributes(fault, reader); 1.148 + } 1.149 + 1.150 + public boolean bindingOperationInputElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) { 1.151 + return core.bindingOperationInputElements(operation, reader); 1.152 + } 1.153 + 1.154 + public void bindingOperationInputAttributes(EditableWSDLBoundOperation operation, XMLStreamReader reader) { 1.155 + core.bindingOperationInputAttributes(operation, reader); 1.156 + } 1.157 + 1.158 + public boolean bindingOperationOutputElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) { 1.159 + return core.bindingOperationOutputElements(operation, reader); 1.160 + } 1.161 + 1.162 + public void bindingOperationOutputAttributes(EditableWSDLBoundOperation operation, XMLStreamReader reader) { 1.163 + core.bindingOperationOutputAttributes(operation, reader); 1.164 + } 1.165 + 1.166 + public boolean bindingOperationFaultElements(EditableWSDLBoundFault fault, XMLStreamReader reader) { 1.167 + return core.bindingOperationFaultElements(fault, reader); 1.168 + } 1.169 + 1.170 + public void bindingOperationFaultAttributes(EditableWSDLBoundFault fault, XMLStreamReader reader) { 1.171 + core.bindingOperationFaultAttributes(fault, reader); 1.172 + } 1.173 + 1.174 + public void finished(WSDLParserExtensionContext context) { 1.175 + core.finished(context); 1.176 + } 1.177 + 1.178 + public void postFinished(WSDLParserExtensionContext context) { 1.179 + core.postFinished(context); 1.180 + } 1.181 +}