Examples of ParameterDescription


Examples of com.getperka.flatpack.client.dto.ParameterDescription

        new ObjectModelAdaptor() {
          @Override
          public Object getProperty(Interpreter interp, ST self, Object o,
              Object property, String propertyName)
              throws STNoSuchPropertyException {
            ParameterDescription param = (ParameterDescription) o;
            if ("requireName".equals(propertyName)) {
              return upcase(param.getName());
            }
            else if ("docString".equals(propertyName)) {
              return jsDocString(param.getDocString());
            }
            return super.getProperty(interp, self, o, property, propertyName);
          }
        });
View Full Code Here

Examples of org.apache.axis2.jaxws.description.ParameterDescription

            Class[] parameters = seiMethod.getParameterTypes();
            Type[] paramaterTypes = seiMethod.getGenericParameterTypes();
            Annotation[][] annotations = seiMethod.getParameterAnnotations();

            for (int i = 0; i < parameters.length; i++) {
                ParameterDescription paramDesc = new ParameterDescriptionImpl(i, parameters[i],
                                                                              paramaterTypes[i],
                                                                              annotations[i], this);
                buildParameterList.add(paramDesc);
            }

        } else {
            ParameterDescriptionComposite pdc = null;
            Iterator<ParameterDescriptionComposite> iter =
                    methodComposite.getParameterDescriptionCompositeList().iterator();

            for (int i = 0; i < methodComposite.getParameterDescriptionCompositeList().size(); i++)
            {
                ParameterDescription paramDesc =
                        new ParameterDescriptionImpl(i,
                                                     methodComposite.getParameterDescriptionComposite(
                                                             i),
                                                     this);
                buildParameterList.add(paramDesc);
View Full Code Here

Examples of org.apache.axis2.jaxws.description.ParameterDescription

    }

    public ParameterDescription getParameterDescription(String parameterName) {
        // TODO: Validation: For BARE paramaterUse, only a single IN our INOUT paramater and a single output (either return or OUT or INOUT) is allowed
        //       Per JSR-224, Sec 3.6.2.2, pg 37
        ParameterDescription matchingParamDesc = null;
        if (parameterName != null && !parameterName.equals("")) {
            for (ParameterDescription paramDesc : parameterDescriptions) {
                if (parameterName.equals(paramDesc.getParameterName())) {
                    matchingParamDesc = paramDesc;
                    break;
View Full Code Here

Examples of org.apache.axis2.jaxws.description.ParameterDescription

        return webParamTargetNamespace;
    }

    public String getAnnoWebParamTargetNamespace(String name) {
        String returnTargetNS = null;
        ParameterDescription paramDesc = getParameterDescription(name);
        if (paramDesc != null) {
            returnTargetNS = paramDesc.getTargetNamespace();
        }
        return returnTargetNS;
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.description.ParameterDescription

        }
        return webParamMode;
    }

    public boolean isAnnoWebParamHeader(String name) {
        ParameterDescription paramDesc = getParameterDescription(name);
        if (paramDesc != null) {
            return paramDesc.isHeader();
        }
        return false;
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.description.ParameterDescription

        ParameterDescription[] pds = opDesc.getParameterDescriptions();
       
        // If one or more operations have a generic type of Object, then
        // avoid early unmarshalling
        for (int i=0; i<pds.length; i++) {
            ParameterDescription pd = pds[i];
            if (pd.getParameterActualType() == null ||
                pd.getParameterActualType().isAssignableFrom(Object.class)) {
                return false;
            }         
        }
        if (opDesc.getResultActualType() == null ||
                opDesc.getResultActualType().isAssignableFrom(Object.class)) {
View Full Code Here

Examples of org.apache.axis2.jaxws.description.ParameterDescription

                // occurrence of elements
                pde = processOccurrence(pde);
                pdeList.set(i, pde);
               
                // Set by java type marshaling
                ParameterDescription pd = pde.getParam();
                Class type = pd.getParameterActualType();
                pde.setByJavaTypeClass(type);
            }
           
            // Put values onto the message
            MethodMarshallerUtils.toMessage(pdeList, m, packages, requestContext);
View Full Code Here

Examples of org.apache.axis2.jaxws.description.ParameterDescription

            // We want to use "by Java Type" unmarshalling for
            // all objects
            Class[] javaTypes = new Class[pds.length];
            Class[] componentJavaTypes = new Class[pds.length];
            for (int i = 0; i < pds.length; i++) {
                ParameterDescription pd = pds[i];
                javaTypes[i] = pd.getParameterActualType();
                if (javaTypes[i].isArray()) {
                    componentJavaTypes[i] = javaTypes[i].getComponentType();
                } else if (javaTypes[i].isAssignableFrom(List.class)) {
                    componentJavaTypes[i] = getComponentType(pd, operationDesc, marshalDesc);
                } else {
View Full Code Here

Examples of org.apache.axis2.jaxws.description.ParameterDescription

                // occurrence of elements
                pde = processOccurrence(pde);
                pdeList.set(i, pde);
               
                // Set by java type marshaling
                ParameterDescription pd = pde.getParam();
                Class type = pd.getParameterActualType();
                pde.setByJavaTypeClass(type);
            }

            // TODO Should we check for null output body values?  Should we check for null output header values ?
            // Put values onto the message
View Full Code Here

Examples of org.apache.axis2.jaxws.description.ParameterDescription

            // We want to use "by Java Type" unmarshalling for
            // all objects
            Class[] javaTypes = new Class[pds.length];
            Class[] componentJavaTypes = new Class[pds.length];
            for (int i = 0; i < pds.length; i++) {
                ParameterDescription pd = pds[i];
                Class type = pd.getParameterActualType();
               
                if (type.isArray()) {
                    componentJavaTypes[i] = type.getComponentType();
                } else if (type.isAssignableFrom(List.class)) {
                    componentJavaTypes[i] = getComponentType(pd, operationDesc, marshalDesc);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.