FileDocCategorySizeDatePackage
SkeletonImpl.javaAPI DocApache Axis 1.46123Sat Apr 22 18:57:26 BST 2006org.apache.axis.wsdl

SkeletonImpl

public class SkeletonImpl extends Object implements Skeleton
Provides Base function implementation for the Skeleton interface

Fields Summary
private static HashMap
table
Field table
Constructors Summary
public SkeletonImpl()
Constructor


          
      

        if (table == null) {
            table = new HashMap();
        }
    
Methods Summary
public voidadd(java.lang.String operation, javax.xml.namespace.QName[] names, javax.xml.rpc.ParameterMode[] modes, java.lang.String inputNamespace, java.lang.String outputNamespace, java.lang.String soapAction)
Add operation name and vector containing return and parameter names. The first name in the array is either the return name (which should be set to null if there is no return name)

param
operation
param
names
param
modes
param
inputNamespace
param
outputNamespace
param
soapAction


        table.put(operation,
                new MetaInfo(names, modes, inputNamespace, outputNamespace,
                        soapAction));
    
public voidadd(java.lang.String operation, java.lang.String[] names, javax.xml.rpc.ParameterMode[] modes, java.lang.String inputNamespace, java.lang.String outputNamespace, java.lang.String soapAction)
Convenience method which allows passing an array of Strings which will be converted into QNames with no namespace.

param
operation
param
names
param
modes
param
inputNamespace
param
outputNamespace
param
soapAction


        QName[] qnames = new QName[names.length];

        for (int i = 0; i < names.length; i++) {
            QName qname = new QName(null, names[i]);

            qnames[i] = qname;
        }

        add(operation, qnames, modes, inputNamespace, outputNamespace,
                soapAction);
    
public java.lang.StringgetInputNamespace(java.lang.String operationName)
Used to return the namespace of the input clause of the given operation. Returns null if problems occur.

param
operationName
return


        MetaInfo value = (MetaInfo) table.get(operationName);

        if (value == null) {
            return null;
        }

        return value.inputNamespace;
    
public java.lang.StringgetOutputNamespace(java.lang.String operationName)
Used to return the namespace of the output clause of the given operation. Returns null if problems occur.

param
operationName
return


        MetaInfo value = (MetaInfo) table.get(operationName);

        if (value == null) {
            return null;
        }

        return value.outputNamespace;
    
public javax.xml.rpc.ParameterModegetParameterMode(java.lang.String operationName, int n)
Used to return the mode of the n-th parameter of the specified operation. Use -1 to get the return mode. Returns null if problems occur or the parameter is not known.

param
operationName
param
n
return


        MetaInfo value = (MetaInfo) table.get(operationName);

        if ((value == null) || (value.modes == null)
                || (value.modes.length <= n + 1)) {
            return null;
        }

        return value.modes[n + 1];
    
public javax.xml.namespace.QNamegetParameterName(java.lang.String operationName, int n)
Used to return the name of the n-th parameter of the specified operation. Use -1 to get the return type name Returns null if problems occur or the parameter is not known.

param
operationName
param
n
return


        MetaInfo value = (MetaInfo) table.get(operationName);

        if ((value == null) || (value.names == null)
                || (value.names.length <= n + 1)) {
            return null;
        }

        return value.names[n + 1];
    
public java.lang.StringgetSOAPAction(java.lang.String operationName)
Used to return the SOAPAction of the given operation. Returns null if problems occur.

param
operationName
return


        MetaInfo value = (MetaInfo) table.get(operationName);

        if (value == null) {
            return null;
        }

        return value.soapAction;