diff WebServiceToolWorkflow/lib/SAWADLParser/src/javax/wadls/Resource.java @ 0:d5cd409b8a18 default tip

Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
author ganjoo
date Tue, 07 Jun 2011 18:00:50 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/WebServiceToolWorkflow/lib/SAWADLParser/src/javax/wadls/Resource.java	Tue Jun 07 18:00:50 2011 -0400
@@ -0,0 +1,90 @@
+/*
+ * (c) Copyright IBM Corp 2001, 2005 
+ */
+
+package javax.wadls;
+
+import java.util.*;
+import org.w3c.dom.*;
+import javax.xml.namespace.*;
+
+
+/**
+ * This interface represents a port type. It contains information about
+ * operations associated with this port type.
+ *
+ * @author Paul Fremantle
+ * @author Nirmal Mukhi
+ * @author Matthew J. Duftler
+ * @author Zixin Wu
+ */
+public interface Resource extends java.io.Serializable,ModelReferenceExtensible
+{
+
+	  
+  /**
+   * Set the name of this port type.
+   *
+   * @param name the desired name
+   */
+  public void setQName(QName name);
+
+  /**
+   * Get the name of this port type.
+   *
+   * @return the port type name
+   */
+  public QName getQName();
+
+  /**
+   * Add an operation to this port type.
+   *
+   * @param operation the operation to be added
+   */
+  public void addMethod(Method method);
+
+  /**
+   * Get the specified operation. Note that operation names can
+   * be overloaded within a PortType. In case of overloading, the
+   * names of the input and output messages can be used to further
+   * refine the search.
+   *
+   * @param name the name of the desired operation.
+   * @param inputName the name of the input message; if this is null
+   * it will be ignored.
+   * @param outputName the name of the output message; if this is null
+   * it will be ignored.
+   * @return the corresponding operation, or null if there wasn't
+   * any matching operation
+   */
+  public Method getMethod(String name,
+                                String inputName,
+                                String outputName);
+
+  /**
+   * Get all the operations defined here.
+   */
+  public List getMethods();
+
+  /**
+   * Set the documentation element for this document. This dependency
+   * on org.w3c.dom.Element should eventually be removed when a more
+   * appropriate way of representing this information is employed.
+   *
+   * @param docEl the documentation element
+   */
+  public void setDocumentationElement(Element docEl);
+
+  /**
+   * Get the documentation element. This dependency on org.w3c.dom.Element
+   * should eventually be removed when a more appropriate way of
+   * representing this information is employed.
+   *
+   * @return the documentation element
+   */
+  public Element getDocumentationElement();
+
+  public void setUndefined(boolean isUndefined);
+
+  public boolean isUndefined();
+}
\ No newline at end of file