01: /*
02: * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
03: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
04: *
05: * This code is free software; you can redistribute it and/or modify it
06: * under the terms of the GNU General Public License version 2 only, as
07: * published by the Free Software Foundation. Sun designates this
08: * particular file as subject to the "Classpath" exception as provided
09: * by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22: * CA 95054 USA or visit www.sun.com if you need additional information or
23: * have any questions.
24: */
25:
26: package com.sun.tools.internal.ws.wsdl.document;
27:
28: import java.util.Iterator;
29: import javax.xml.namespace.QName;
30: import com.sun.tools.internal.ws.wsdl.framework.EntityAction;
31: import com.sun.tools.internal.ws.wsdl.framework.ExtensibilityHelper;
32: import com.sun.tools.internal.ws.wsdl.framework.Extensible;
33: import com.sun.tools.internal.ws.wsdl.framework.Extension;
34: import com.sun.tools.internal.ws.wsdl.framework.Entity;
35:
36: /**
37: * Entity corresponding to the "input" child element of a binding operation.
38: *
39: * @author WS Development Team
40: */
41: public class BindingInput extends Entity implements Extensible {
42:
43: public BindingInput() {
44: _helper = new ExtensibilityHelper();
45: }
46:
47: public String getName() {
48: return _name;
49: }
50:
51: public void setName(String name) {
52: _name = name;
53: }
54:
55: public QName getElementName() {
56: return WSDLConstants.QNAME_INPUT;
57: }
58:
59: public Documentation getDocumentation() {
60: return _documentation;
61: }
62:
63: public void setDocumentation(Documentation d) {
64: _documentation = d;
65: }
66:
67: public void addExtension(Extension e) {
68: _helper.addExtension(e);
69: }
70:
71: public Iterator extensions() {
72: return _helper.extensions();
73: }
74:
75: public void withAllSubEntitiesDo(EntityAction action) {
76: _helper.withAllSubEntitiesDo(action);
77: }
78:
79: public void accept(WSDLDocumentVisitor visitor) throws Exception {
80: visitor.preVisit(this );
81: _helper.accept(visitor);
82: visitor.postVisit(this );
83: }
84:
85: public void validateThis() {
86: }
87:
88: private ExtensibilityHelper _helper;
89: private Documentation _documentation;
90: private String _name;
91: }
|