butek 2002/10/04 08:15:28 Modified: java/src/org/apache/axis/wsdl/symbolTable Tag: explicitHeaderWork Parameter.java Log: Mostly just added comments, first on the new stuff, but since everything was missing comments, I went through all the methods. Revision Changes Path No revision No revision 1.3.8.3 +51 -1 xml-axis/java/src/org/apache/axis/wsdl/symbolTable/Parameter.java Index: Parameter.java =================================================================== RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/symbolTable/Parameter.java,v retrieving revision 1.3.8.2 retrieving revision 1.3.8.3 diff -u -r1.3.8.2 -r1.3.8.3 --- Parameter.java 3 Oct 2002 20:11:20 -0000 1.3.8.2 +++ Parameter.java 4 Oct 2002 15:15:27 -0000 1.3.8.3 @@ -79,6 +79,8 @@ private TypeEntry type; private byte mode = IN; + // Flags indicating whether the parameter goes into the soap message as + // a header. private boolean inHeader = false; private boolean outHeader = false; @@ -91,10 +93,17 @@ + (outHeader ? "(OUT soap:header)" : "")); } // toString + /** + * Get the fully qualified name of this parameter. + */ public QName getQName() { return qname; } + /** + * Get the name of this parameter. This call is equivalent to + * getQName().getLocalPart(). + */ public String getName() { if (name == null && qname != null) { return qname.getLocalPart(); @@ -102,52 +111,93 @@ return name; } + /** + * Set the name of the parameter. This replaces both the + * name and the QName (the namespaces becomes ""). + */ public void setName(String name) { this.name = name; if (qname == null) this.qname = new QName("", name); } + /** + * Set the QName of the parameter. + */ public void setQName(QName qname) { this.qname = qname; } + /** + * Get the MIME type of the parameter. + */ public String getMIMEType() { return mimeType; } // getMIMEType + /** + * Set the MIME type of the parameter. + */ public void setMIMEType(String mimeType) { this.mimeType = mimeType; } // setMIMEType + /** + * Get the TypeEntry of the parameter. + */ public TypeEntry getType() { return type; } + /** + * Set the TypeEntry of the parameter. + */ public void setType(TypeEntry type) { this.type = type; } + /** + * Get the mode (IN, INOUT, OUT) of the parameter. + */ public byte getMode() { return mode; } + /** + * Set the mode (IN, INOUT, OUT) of the parameter. If the input + * to this method is not one of IN, INOUT, OUT, then the value + * remains unchanged. + */ public void setMode(byte mode) { - this.mode = mode; + if (mode <= INOUT & mode >= IN) { + this.mode = mode; + } } + /** + * Is this parameter in the input message header? + */ public boolean isInHeader() { return inHeader; } // isInHeader + /** + * Set the inHeader flag for this parameter. + */ public void setInHeader(boolean inHeader) { this.inHeader = inHeader; } // setInHeader + /** + * Is this parameter in the output message header? + */ public boolean isOutHeader() { return outHeader; } // isOutHeader + /** + * Set the outHeader flag for this parameter. + */ public void setOutHeader(boolean outHeader) { this.outHeader = outHeader; } // setOutHeader