ohair@286: /* mkos@408: * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. ohair@286: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. ohair@286: * ohair@286: * This code is free software; you can redistribute it and/or modify it ohair@286: * under the terms of the GNU General Public License version 2 only, as ohair@286: * published by the Free Software Foundation. Oracle designates this ohair@286: * particular file as subject to the "Classpath" exception as provided ohair@286: * by Oracle in the LICENSE file that accompanied this code. ohair@286: * ohair@286: * This code is distributed in the hope that it will be useful, but WITHOUT ohair@286: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ohair@286: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ohair@286: * version 2 for more details (a copy is included in the LICENSE file that ohair@286: * accompanied this code). ohair@286: * ohair@286: * You should have received a copy of the GNU General Public License version ohair@286: * 2 along with this work; if not, write to the Free Software Foundation, ohair@286: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. ohair@286: * ohair@286: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@286: * or visit www.oracle.com if you need additional information or have any ohair@286: * questions. ohair@286: */ ohair@286: ohair@286: package com.sun.xml.internal.ws.wsdl.parser; ohair@286: mkos@408: import com.sun.xml.internal.ws.api.model.wsdl.editable.*; ohair@286: import com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtension; ohair@286: import com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtensionContext; ohair@286: ohair@286: import javax.xml.stream.XMLStreamReader; ohair@286: ohair@286: /** ohair@286: * Delegate to another {@link WSDLParserExtension} ohair@286: * useful for the base class for filtering. ohair@286: * ohair@286: * @author Kohsuke Kawaguchi ohair@286: */ ohair@286: class DelegatingParserExtension extends WSDLParserExtension { ohair@286: protected final WSDLParserExtension core; ohair@286: ohair@286: public DelegatingParserExtension(WSDLParserExtension core) { ohair@286: this.core = core; ohair@286: } ohair@286: ohair@286: public void start(WSDLParserExtensionContext context) { ohair@286: core.start(context); ohair@286: } ohair@286: mkos@408: public void serviceAttributes(EditableWSDLService service, XMLStreamReader reader) { ohair@286: core.serviceAttributes(service, reader); ohair@286: } ohair@286: mkos@408: public boolean serviceElements(EditableWSDLService service, XMLStreamReader reader) { ohair@286: return core.serviceElements(service, reader); ohair@286: } ohair@286: mkos@408: public void portAttributes(EditableWSDLPort port, XMLStreamReader reader) { ohair@286: core.portAttributes(port, reader); ohair@286: } ohair@286: mkos@408: public boolean portElements(EditableWSDLPort port, XMLStreamReader reader) { ohair@286: return core.portElements(port, reader); ohair@286: } ohair@286: mkos@408: public boolean portTypeOperationInput(EditableWSDLOperation op, XMLStreamReader reader) { ohair@286: return core.portTypeOperationInput(op, reader); ohair@286: } ohair@286: mkos@408: public boolean portTypeOperationOutput(EditableWSDLOperation op, XMLStreamReader reader) { ohair@286: return core.portTypeOperationOutput(op, reader); ohair@286: } ohair@286: mkos@408: public boolean portTypeOperationFault(EditableWSDLOperation op, XMLStreamReader reader) { ohair@286: return core.portTypeOperationFault(op, reader); ohair@286: } ohair@286: ohair@286: public boolean definitionsElements(XMLStreamReader reader) { ohair@286: return core.definitionsElements(reader); ohair@286: } ohair@286: mkos@408: public boolean bindingElements(EditableWSDLBoundPortType binding, XMLStreamReader reader) { ohair@286: return core.bindingElements(binding, reader); ohair@286: } ohair@286: mkos@408: public void bindingAttributes(EditableWSDLBoundPortType binding, XMLStreamReader reader) { ohair@286: core.bindingAttributes(binding, reader); ohair@286: } ohair@286: mkos@408: public boolean portTypeElements(EditableWSDLPortType portType, XMLStreamReader reader) { ohair@286: return core.portTypeElements(portType, reader); ohair@286: } ohair@286: mkos@408: public void portTypeAttributes(EditableWSDLPortType portType, XMLStreamReader reader) { ohair@286: core.portTypeAttributes(portType, reader); ohair@286: } ohair@286: mkos@408: public boolean portTypeOperationElements(EditableWSDLOperation operation, XMLStreamReader reader) { ohair@286: return core.portTypeOperationElements(operation, reader); ohair@286: } ohair@286: mkos@408: public void portTypeOperationAttributes(EditableWSDLOperation operation, XMLStreamReader reader) { ohair@286: core.portTypeOperationAttributes(operation, reader); ohair@286: } ohair@286: mkos@408: public boolean bindingOperationElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) { ohair@286: return core.bindingOperationElements(operation, reader); ohair@286: } ohair@286: mkos@408: public void bindingOperationAttributes(EditableWSDLBoundOperation operation, XMLStreamReader reader) { ohair@286: core.bindingOperationAttributes(operation, reader); ohair@286: } ohair@286: mkos@408: public boolean messageElements(EditableWSDLMessage msg, XMLStreamReader reader) { ohair@286: return core.messageElements(msg, reader); ohair@286: } ohair@286: mkos@408: public void messageAttributes(EditableWSDLMessage msg, XMLStreamReader reader) { ohair@286: core.messageAttributes(msg, reader); ohair@286: } ohair@286: mkos@408: public boolean portTypeOperationInputElements(EditableWSDLInput input, XMLStreamReader reader) { ohair@286: return core.portTypeOperationInputElements(input, reader); ohair@286: } ohair@286: mkos@408: public void portTypeOperationInputAttributes(EditableWSDLInput input, XMLStreamReader reader) { ohair@286: core.portTypeOperationInputAttributes(input, reader); ohair@286: } ohair@286: mkos@408: public boolean portTypeOperationOutputElements(EditableWSDLOutput output, XMLStreamReader reader) { ohair@286: return core.portTypeOperationOutputElements(output, reader); ohair@286: } ohair@286: mkos@408: public void portTypeOperationOutputAttributes(EditableWSDLOutput output, XMLStreamReader reader) { ohair@286: core.portTypeOperationOutputAttributes(output, reader); ohair@286: } ohair@286: mkos@408: public boolean portTypeOperationFaultElements(EditableWSDLFault fault, XMLStreamReader reader) { ohair@286: return core.portTypeOperationFaultElements(fault, reader); ohair@286: } ohair@286: mkos@408: public void portTypeOperationFaultAttributes(EditableWSDLFault fault, XMLStreamReader reader) { ohair@286: core.portTypeOperationFaultAttributes(fault, reader); ohair@286: } ohair@286: mkos@408: public boolean bindingOperationInputElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) { ohair@286: return core.bindingOperationInputElements(operation, reader); ohair@286: } ohair@286: mkos@408: public void bindingOperationInputAttributes(EditableWSDLBoundOperation operation, XMLStreamReader reader) { ohair@286: core.bindingOperationInputAttributes(operation, reader); ohair@286: } ohair@286: mkos@408: public boolean bindingOperationOutputElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) { ohair@286: return core.bindingOperationOutputElements(operation, reader); ohair@286: } ohair@286: mkos@408: public void bindingOperationOutputAttributes(EditableWSDLBoundOperation operation, XMLStreamReader reader) { ohair@286: core.bindingOperationOutputAttributes(operation, reader); ohair@286: } ohair@286: mkos@408: public boolean bindingOperationFaultElements(EditableWSDLBoundFault fault, XMLStreamReader reader) { ohair@286: return core.bindingOperationFaultElements(fault, reader); ohair@286: } ohair@286: mkos@408: public void bindingOperationFaultAttributes(EditableWSDLBoundFault fault, XMLStreamReader reader) { ohair@286: core.bindingOperationFaultAttributes(fault, reader); ohair@286: } ohair@286: ohair@286: public void finished(WSDLParserExtensionContext context) { ohair@286: core.finished(context); ohair@286: } ohair@286: ohair@286: public void postFinished(WSDLParserExtensionContext context) { ohair@286: core.postFinished(context); ohair@286: } ohair@286: }