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

changeset 0
373ffda63c9a
child 637
9c07ef4934dd
equal deleted inserted replaced
-1:000000000000 0:373ffda63c9a
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 */
25
26 package com.sun.xml.internal.ws.wsdl.parser;
27
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;
31
32 import javax.xml.stream.XMLStreamReader;
33
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;
42
43 public DelegatingParserExtension(WSDLParserExtension core) {
44 this.core = core;
45 }
46
47 public void start(WSDLParserExtensionContext context) {
48 core.start(context);
49 }
50
51 public void serviceAttributes(EditableWSDLService service, XMLStreamReader reader) {
52 core.serviceAttributes(service, reader);
53 }
54
55 public boolean serviceElements(EditableWSDLService service, XMLStreamReader reader) {
56 return core.serviceElements(service, reader);
57 }
58
59 public void portAttributes(EditableWSDLPort port, XMLStreamReader reader) {
60 core.portAttributes(port, reader);
61 }
62
63 public boolean portElements(EditableWSDLPort port, XMLStreamReader reader) {
64 return core.portElements(port, reader);
65 }
66
67 public boolean portTypeOperationInput(EditableWSDLOperation op, XMLStreamReader reader) {
68 return core.portTypeOperationInput(op, reader);
69 }
70
71 public boolean portTypeOperationOutput(EditableWSDLOperation op, XMLStreamReader reader) {
72 return core.portTypeOperationOutput(op, reader);
73 }
74
75 public boolean portTypeOperationFault(EditableWSDLOperation op, XMLStreamReader reader) {
76 return core.portTypeOperationFault(op, reader);
77 }
78
79 public boolean definitionsElements(XMLStreamReader reader) {
80 return core.definitionsElements(reader);
81 }
82
83 public boolean bindingElements(EditableWSDLBoundPortType binding, XMLStreamReader reader) {
84 return core.bindingElements(binding, reader);
85 }
86
87 public void bindingAttributes(EditableWSDLBoundPortType binding, XMLStreamReader reader) {
88 core.bindingAttributes(binding, reader);
89 }
90
91 public boolean portTypeElements(EditableWSDLPortType portType, XMLStreamReader reader) {
92 return core.portTypeElements(portType, reader);
93 }
94
95 public void portTypeAttributes(EditableWSDLPortType portType, XMLStreamReader reader) {
96 core.portTypeAttributes(portType, reader);
97 }
98
99 public boolean portTypeOperationElements(EditableWSDLOperation operation, XMLStreamReader reader) {
100 return core.portTypeOperationElements(operation, reader);
101 }
102
103 public void portTypeOperationAttributes(EditableWSDLOperation operation, XMLStreamReader reader) {
104 core.portTypeOperationAttributes(operation, reader);
105 }
106
107 public boolean bindingOperationElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) {
108 return core.bindingOperationElements(operation, reader);
109 }
110
111 public void bindingOperationAttributes(EditableWSDLBoundOperation operation, XMLStreamReader reader) {
112 core.bindingOperationAttributes(operation, reader);
113 }
114
115 public boolean messageElements(EditableWSDLMessage msg, XMLStreamReader reader) {
116 return core.messageElements(msg, reader);
117 }
118
119 public void messageAttributes(EditableWSDLMessage msg, XMLStreamReader reader) {
120 core.messageAttributes(msg, reader);
121 }
122
123 public boolean portTypeOperationInputElements(EditableWSDLInput input, XMLStreamReader reader) {
124 return core.portTypeOperationInputElements(input, reader);
125 }
126
127 public void portTypeOperationInputAttributes(EditableWSDLInput input, XMLStreamReader reader) {
128 core.portTypeOperationInputAttributes(input, reader);
129 }
130
131 public boolean portTypeOperationOutputElements(EditableWSDLOutput output, XMLStreamReader reader) {
132 return core.portTypeOperationOutputElements(output, reader);
133 }
134
135 public void portTypeOperationOutputAttributes(EditableWSDLOutput output, XMLStreamReader reader) {
136 core.portTypeOperationOutputAttributes(output, reader);
137 }
138
139 public boolean portTypeOperationFaultElements(EditableWSDLFault fault, XMLStreamReader reader) {
140 return core.portTypeOperationFaultElements(fault, reader);
141 }
142
143 public void portTypeOperationFaultAttributes(EditableWSDLFault fault, XMLStreamReader reader) {
144 core.portTypeOperationFaultAttributes(fault, reader);
145 }
146
147 public boolean bindingOperationInputElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) {
148 return core.bindingOperationInputElements(operation, reader);
149 }
150
151 public void bindingOperationInputAttributes(EditableWSDLBoundOperation operation, XMLStreamReader reader) {
152 core.bindingOperationInputAttributes(operation, reader);
153 }
154
155 public boolean bindingOperationOutputElements(EditableWSDLBoundOperation operation, XMLStreamReader reader) {
156 return core.bindingOperationOutputElements(operation, reader);
157 }
158
159 public void bindingOperationOutputAttributes(EditableWSDLBoundOperation operation, XMLStreamReader reader) {
160 core.bindingOperationOutputAttributes(operation, reader);
161 }
162
163 public boolean bindingOperationFaultElements(EditableWSDLBoundFault fault, XMLStreamReader reader) {
164 return core.bindingOperationFaultElements(fault, reader);
165 }
166
167 public void bindingOperationFaultAttributes(EditableWSDLBoundFault fault, XMLStreamReader reader) {
168 core.bindingOperationFaultAttributes(fault, reader);
169 }
170
171 public void finished(WSDLParserExtensionContext context) {
172 core.finished(context);
173 }
174
175 public void postFinished(WSDLParserExtensionContext context) {
176 core.postFinished(context);
177 }
178 }

mercurial