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