01: /*
02: * BEGIN_HEADER - DO NOT EDIT
03: *
04: * The contents of this file are subject to the terms
05: * of the Common Development and Distribution License
06: * (the "License"). You may not use this file except
07: * in compliance with the License.
08: *
09: * You can obtain a copy of the license at
10: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
11: * See the License for the specific language governing
12: * permissions and limitations under the License.
13: *
14: * When distributing Covered Code, include this CDDL
15: * HEADER in each file and include the License file at
16: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
17: * If applicable add the following below this CDDL HEADER,
18: * with the fields enclosed by brackets "[]" replaced with
19: * your own identifying information: Portions Copyright
20: * [year] [name of copyright owner]
21: */
22:
23: /*
24: * @(#)Interface.java
25: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
26: *
27: * END_HEADER - DO NOT EDIT
28: */
29: package com.sun.jbi.wsdl2.impl;
30:
31: import javax.xml.namespace.QName;
32:
33: import org.w3.ns.wsdl.InterfaceType;
34:
35: /**
36: * Abstract implementation of
37: * WSDL 2.0 Interface Component.
38: *
39: * @author Sun Microsystems, Inc.
40: */
41: abstract class Interface extends ExtensibleDocumentedComponent
42: implements com.sun.jbi.wsdl2.Interface {
43: /**
44: * Get the Xml bean for this component.
45: *
46: * @return The Xml bean for this component.
47: */
48: protected final InterfaceType getBean() {
49: return (InterfaceType) this .mXmlObject;
50: }
51:
52: /**
53: * Construct an abstract Interface implementation base component.
54: *
55: * @param bean The XML bean for this Interface component
56: */
57: Interface(InterfaceType bean) {
58: super (bean);
59: }
60:
61: /**
62: * Get the interfaces extended by this interface, including those
63: * extended by this interface's super-interfaces.
64: *
65: * @return Extended interfaces, including those extended by this
66: * interface's super-interfaces
67: */
68: public abstract com.sun.jbi.wsdl2.Interface[] getExtendedInterfaces();
69:
70: /**
71: * Get the operations defined by this interface, and all its
72: * super-interfaces
73: *
74: * @return Operations defined by this interface, and all super-interfaces
75: */
76: public abstract com.sun.jbi.wsdl2.InterfaceOperation[] getExtendedOperations();
77:
78: /**
79: * Create a new operation, appending it to this interface's operations
80: * list.
81: *
82: * @return Newly created operation, appended to the operations list.
83: */
84: public abstract com.sun.jbi.wsdl2.InterfaceOperation addNewOperation();
85:
86: /**
87: * Create a new fault, and append it to this interface's faults list.
88: *
89: * @param name Name of the new fault
90: * @return Newly created interface, appended to the faults list.
91: */
92: public abstract com.sun.jbi.wsdl2.InterfaceFault addNewFault(
93: String name);
94:
95: }
96:
97: // End-of-file: Interface.java
|