src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/parser/DelegatingParserExtension.java

Thu, 31 Aug 2017 15:18:52 +0800

author
aoqi
date
Thu, 31 Aug 2017 15:18:52 +0800
changeset 637
9c07ef4934dd
parent 408
b0610cd08440
parent 0
373ffda63c9a
permissions
-rw-r--r--

merge

     1 /*
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     8  * particular file as subject to the "Classpath" exception as provided
     9  * by Oracle in the LICENSE file that accompanied this code.
    10  *
    11  * This code is distributed in the hope that it will be useful, but WITHOUT
    12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    14  * version 2 for more details (a copy is included in the LICENSE file that
    15  * accompanied this code).
    16  *
    17  * You should have received a copy of the GNU General Public License version
    18  * 2 along with this work; if not, write to the Free Software Foundation,
    19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    20  *
    21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    22  * or visit www.oracle.com if you need additional information or have any
    23  * questions.
    24  */
    26 package com.sun.xml.internal.ws.wsdl.parser;
    28 import com.sun.xml.internal.ws.api.model.wsdl.editable.*;
    29 import com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtension;
    30 import com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtensionContext;
    32 import javax.xml.stream.XMLStreamReader;
    34 /**
    35  * Delegate to another {@link WSDLParserExtension}
    36  * useful for the base class for filtering.
    37  *
    38  * @author Kohsuke Kawaguchi
    39  */
    40 class DelegatingParserExtension extends WSDLParserExtension {
    41     protected final WSDLParserExtension core;
    43     public DelegatingParserExtension(WSDLParserExtension core) {
    44         this.core = core;
    45     }
    47     public void start(WSDLParserExtensionContext context) {
    48         core.start(context);
    49     }
    51     public void serviceAttributes(EditableWSDLService service, XMLStreamReader reader) {
    52         core.serviceAttributes(service, reader);
    53     }
    55     public boolean serviceElements(EditableWSDLService service, XMLStreamReader reader) {
    56         return core.serviceElements(service, reader);
    57     }
    59     public void portAttributes(EditableWSDLPort port, XMLStreamReader reader) {
    60         core.portAttributes(port, reader);
    61     }
    63     public boolean portElements(EditableWSDLPort port, XMLStreamReader reader) {
    64         return core.portElements(port, reader);
    65     }
    67     public boolean portTypeOperationInput(EditableWSDLOperation op, XMLStreamReader reader) {
    68         return core.portTypeOperationInput(op, reader);
    69     }
    71     public boolean portTypeOperationOutput(EditableWSDLOperation op, XMLStreamReader reader) {
    72         return core.portTypeOperationOutput(op, reader);
    73     }
    75     public boolean portTypeOperationFault(EditableWSDLOperation op, XMLStreamReader reader) {
    76         return core.portTypeOperationFault(op, reader);
    77     }
    79     public boolean definitionsElements(XMLStreamReader reader) {
    80         return core.definitionsElements(reader);
    81     }
    83     public boolean bindingElements(EditableWSDLBoundPortType binding, XMLStreamReader reader) {
    84         return core.bindingElements(binding, reader);
    85     }
    87     public void bindingAttributes(EditableWSDLBoundPortType binding, XMLStreamReader reader) {
    88         core.bindingAttributes(binding, reader);
    89     }
    91     public boolean portTypeElements(EditableWSDLPortType portType, XMLStreamReader reader) {
    92         return core.portTypeElements(portType, reader);
    93     }
    95     public void portTypeAttributes(EditableWSDLPortType portType, XMLStreamReader reader) {
    96         core.portTypeAttributes(portType, reader);
    97     }
    99     public boolean portTypeOperationElements(EditableWSDLOperation operation, XMLStreamReader reader) {
   100         return core.portTypeOperationElements(operation, reader);
   101     }
   103     public void portTypeOperationAttributes(EditableWSDLOperation operation, XMLStreamReader reader) {
   104         core.portTypeOperationAttributes(operation, reader);
   105     }
   107     public boolean bindingOperationElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) {
   108         return core.bindingOperationElements(operation, reader);
   109     }
   111     public void bindingOperationAttributes(EditableWSDLBoundOperation operation, XMLStreamReader reader) {
   112         core.bindingOperationAttributes(operation, reader);
   113     }
   115     public boolean messageElements(EditableWSDLMessage msg, XMLStreamReader reader) {
   116         return core.messageElements(msg, reader);
   117     }
   119     public void messageAttributes(EditableWSDLMessage msg, XMLStreamReader reader) {
   120         core.messageAttributes(msg, reader);
   121     }
   123     public boolean portTypeOperationInputElements(EditableWSDLInput input, XMLStreamReader reader) {
   124         return core.portTypeOperationInputElements(input, reader);
   125     }
   127     public void portTypeOperationInputAttributes(EditableWSDLInput input, XMLStreamReader reader) {
   128         core.portTypeOperationInputAttributes(input, reader);
   129     }
   131     public boolean portTypeOperationOutputElements(EditableWSDLOutput output, XMLStreamReader reader) {
   132         return core.portTypeOperationOutputElements(output, reader);
   133     }
   135     public void portTypeOperationOutputAttributes(EditableWSDLOutput output, XMLStreamReader reader) {
   136         core.portTypeOperationOutputAttributes(output, reader);
   137     }
   139     public boolean portTypeOperationFaultElements(EditableWSDLFault fault, XMLStreamReader reader) {
   140         return core.portTypeOperationFaultElements(fault, reader);
   141     }
   143     public void portTypeOperationFaultAttributes(EditableWSDLFault fault, XMLStreamReader reader) {
   144         core.portTypeOperationFaultAttributes(fault, reader);
   145     }
   147     public boolean bindingOperationInputElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) {
   148         return core.bindingOperationInputElements(operation, reader);
   149     }
   151     public void bindingOperationInputAttributes(EditableWSDLBoundOperation operation, XMLStreamReader reader) {
   152         core.bindingOperationInputAttributes(operation, reader);
   153     }
   155     public boolean bindingOperationOutputElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) {
   156         return core.bindingOperationOutputElements(operation, reader);
   157     }
   159     public void bindingOperationOutputAttributes(EditableWSDLBoundOperation operation, XMLStreamReader reader) {
   160         core.bindingOperationOutputAttributes(operation, reader);
   161     }
   163     public boolean bindingOperationFaultElements(EditableWSDLBoundFault fault, XMLStreamReader reader) {
   164         return core.bindingOperationFaultElements(fault, reader);
   165     }
   167     public void bindingOperationFaultAttributes(EditableWSDLBoundFault fault, XMLStreamReader reader) {
   168         core.bindingOperationFaultAttributes(fault, reader);
   169     }
   171     public void finished(WSDLParserExtensionContext context) {
   172         core.finished(context);
   173     }
   175     public void postFinished(WSDLParserExtensionContext context) {
   176         core.postFinished(context);
   177     }
   178 }

mercurial