001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)InterfaceOperation.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package com.sun.jbi.wsdl2.impl;
030:
031: import javax.xml.namespace.QName;
032: import org.w3c.dom.DocumentFragment;
033: import org.w3.ns.wsdl.InterfaceOperationType;
034:
035: /**
036: * Abstract implementation of
037: * WSDL 2.0 interface operation component.
038: *
039: * @author Sun Microsystems, Inc.
040: */
041: abstract class InterfaceOperation extends ExtensibleDocumentedComponent
042: implements com.sun.jbi.wsdl2.InterfaceOperation {
043: /**
044: * Get the Xml bean for this component.
045: *
046: * @return The Xml bean for this component.
047: */
048: protected final InterfaceOperationType getBean() {
049: return (InterfaceOperationType) this .mXmlObject;
050: }
051:
052: /**
053: * Construct an abstract Interface operation implementation base component.
054: *
055: * @param bean The XML bean for this Interface operation component
056: */
057: InterfaceOperation(InterfaceOperationType bean) {
058: super (bean);
059: }
060:
061: /**
062: * Create a new input message reference for this operation, and append it
063: * to this operation's input list.
064: *
065: * @return The newly created input message reference.
066: */
067: public abstract com.sun.jbi.wsdl2.MessageReference addNewInput();
068:
069: /**
070: * Create a new output message reference for this operation, and append
071: * it to this operation's output list.
072: *
073: * @return The newly created input message reference.
074: */
075: public abstract com.sun.jbi.wsdl2.MessageReference addNewOutput();
076:
077: /**
078: * Create a new messsage in-fault reference for this operation, and
079: * append it to the operation's in-fault list.
080: *
081: * @param fault Fault referenced by the new in-fault
082: * @return The newly created in-fault reference.
083: */
084: public abstract com.sun.jbi.wsdl2.MessageFaultReference addNewInFault(
085: com.sun.jbi.wsdl2.InterfaceFault fault);
086:
087: /**
088: * Create a new messsage out-fault reference for this operation, and
089: * append it to the operation's out-fault list.
090: *
091: * @param fault Fault referenced by the new out-fault
092: * @return The newly created out-fault reference.
093: */
094: public abstract com.sun.jbi.wsdl2.MessageFaultReference addNewOutFault(
095: com.sun.jbi.wsdl2.InterfaceFault fault);
096:
097: /**
098: * Return this WSDL interface operation as an XML string.
099: *
100: * @return This operation, serialized as an XML string.
101: */
102: public abstract String toXmlString();
103:
104: /**
105: * Return this interface operation as a DOM document fragment. The DOM
106: * subtree is a copy; altering it will not affect this service.
107: *
108: * @return This operation, as a DOM document fragment.
109: */
110: public abstract DocumentFragment toXmlDocumentFragment();
111:
112: }
113:
114: // End-of-file: InterfaceOperation.java
|