FileDocCategorySizeDatePackage
Parameter.javaAPI DocApache Axis 1.45907Sat Apr 22 18:57:28 BST 2006org.apache.axis.wsdl.symbolTable

Parameter

public class Parameter extends Object
This class simply collects

Fields Summary
public static final byte
IN
Field IN
public static final byte
OUT
Field OUT
public static final byte
INOUT
Field INOUT
private QName
qname
Field qname
private String
name
Field name
private MimeInfo
mimeInfo
Field mimeInfo
private TypeEntry
type
Field type
private byte
mode
Field mode
private boolean
inHeader
Field inHeader
private boolean
outHeader
Field outHeader
private boolean
omittable
Is this an omittable param?
private boolean
nillable
Is this a nilliable param?
Constructors Summary
Methods Summary
public MimeInfogetMIMEInfo()
Get the MIME type of the parameter.

return

        return mimeInfo;
    
public bytegetMode()
Get the mode (IN, INOUT, OUT) of the parameter.

return

        return mode;
    
public java.lang.StringgetName()
Get the name of this parameter. This call is equivalent to getQName().getLocalPart().

return


        if ((name == null) && (qname != null)) {
            return qname.getLocalPart();
        }

        return name;
    
public javax.xml.namespace.QNamegetQName()
Get the fully qualified name of this parameter.

return

        return qname;
    
public TypeEntrygetType()
Get the TypeEntry of the parameter.

return

        return type;
    
public booleanisInHeader()
Is this parameter in the input message header?

return

        return inHeader;
    
public booleanisNillable()
Indicates whether this parameter is nillable or not.

return
whether this parameter is nilliable

        return nillable;
    
public booleanisOmittable()

        return omittable;
    
public booleanisOutHeader()
Is this parameter in the output message header?

return

        return outHeader;
    
public voidsetInHeader(boolean inHeader)
Set the inHeader flag for this parameter.

param
inHeader

        this.inHeader = inHeader;
    
public voidsetMIMEInfo(MimeInfo mimeInfo)
Set the MIME type of the parameter.

param
mimeInfo

        this.mimeInfo = mimeInfo;
    
public voidsetMode(byte 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.

param
mode


        if (mode <= INOUT && mode >= IN) {
            this.mode = mode;
        }
    
public voidsetName(java.lang.String name)
Set the name of the parameter. This replaces both the name and the QName (the namespaces becomes "").

param
name


        this.name = name;

        if (qname == null) {
            this.qname = new QName("", name);
        }
    
public voidsetNillable(boolean nillable)
Indicate whether this parameter is nillable or not.

param
nillable whether this parameter is nilliable

        this.nillable = nillable;
    
public voidsetOmittable(boolean omittable)

        this.omittable = omittable;
    
public voidsetOutHeader(boolean outHeader)
Set the outHeader flag for this parameter.

param
outHeader

        this.outHeader = outHeader;
    
public voidsetQName(javax.xml.namespace.QName qname)
Set the QName of the parameter.

param
qname

        this.qname = qname;
    
public voidsetType(TypeEntry type)
Set the TypeEntry of the parameter.

param
type

        this.type = type;
    
public java.lang.StringtoString()
Method toString

return


              
       

        return "(" + type + ((mimeInfo == null)
                ? ""
                : "(" + mimeInfo + ")") + ", " + getName() + ", "
                + ((mode == IN)
                ? "IN)"
                : (mode == INOUT)
                ? "INOUT)"
                : "OUT)" + (inHeader
                ? "(IN soap:header)"
                : "") + (outHeader
                ? "(OUT soap:header)"
                : ""));