Mercurial > repos > ganjoo > webservice_toolsuite
comparison WebServiceToolWorkflow/lib/SAWADLParser/src/javax/wadls/Resource.java @ 0:e7482c82796e 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 17:34:26 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:e7482c82796e |
|---|---|
| 1 /* | |
| 2 * (c) Copyright IBM Corp 2001, 2005 | |
| 3 */ | |
| 4 | |
| 5 package javax.wadls; | |
| 6 | |
| 7 import java.util.*; | |
| 8 import org.w3c.dom.*; | |
| 9 import javax.xml.namespace.*; | |
| 10 | |
| 11 | |
| 12 /** | |
| 13 * This interface represents a port type. It contains information about | |
| 14 * operations associated with this port type. | |
| 15 * | |
| 16 * @author Paul Fremantle | |
| 17 * @author Nirmal Mukhi | |
| 18 * @author Matthew J. Duftler | |
| 19 * @author Zixin Wu | |
| 20 */ | |
| 21 public interface Resource extends java.io.Serializable,ModelReferenceExtensible | |
| 22 { | |
| 23 | |
| 24 | |
| 25 /** | |
| 26 * Set the name of this port type. | |
| 27 * | |
| 28 * @param name the desired name | |
| 29 */ | |
| 30 public void setQName(QName name); | |
| 31 | |
| 32 /** | |
| 33 * Get the name of this port type. | |
| 34 * | |
| 35 * @return the port type name | |
| 36 */ | |
| 37 public QName getQName(); | |
| 38 | |
| 39 /** | |
| 40 * Add an operation to this port type. | |
| 41 * | |
| 42 * @param operation the operation to be added | |
| 43 */ | |
| 44 public void addMethod(Method method); | |
| 45 | |
| 46 /** | |
| 47 * Get the specified operation. Note that operation names can | |
| 48 * be overloaded within a PortType. In case of overloading, the | |
| 49 * names of the input and output messages can be used to further | |
| 50 * refine the search. | |
| 51 * | |
| 52 * @param name the name of the desired operation. | |
| 53 * @param inputName the name of the input message; if this is null | |
| 54 * it will be ignored. | |
| 55 * @param outputName the name of the output message; if this is null | |
| 56 * it will be ignored. | |
| 57 * @return the corresponding operation, or null if there wasn't | |
| 58 * any matching operation | |
| 59 */ | |
| 60 public Method getMethod(String name, | |
| 61 String inputName, | |
| 62 String outputName); | |
| 63 | |
| 64 /** | |
| 65 * Get all the operations defined here. | |
| 66 */ | |
| 67 public List getMethods(); | |
| 68 | |
| 69 /** | |
| 70 * Set the documentation element for this document. This dependency | |
| 71 * on org.w3c.dom.Element should eventually be removed when a more | |
| 72 * appropriate way of representing this information is employed. | |
| 73 * | |
| 74 * @param docEl the documentation element | |
| 75 */ | |
| 76 public void setDocumentationElement(Element docEl); | |
| 77 | |
| 78 /** | |
| 79 * Get the documentation element. This dependency on org.w3c.dom.Element | |
| 80 * should eventually be removed when a more appropriate way of | |
| 81 * representing this information is employed. | |
| 82 * | |
| 83 * @return the documentation element | |
| 84 */ | |
| 85 public Element getDocumentationElement(); | |
| 86 | |
| 87 public void setUndefined(boolean isUndefined); | |
| 88 | |
| 89 public boolean isUndefined(); | |
| 90 } |
