Package eu.planets_project.services.datatypes

Examples of eu.planets_project.services.datatypes.Parameter$Builder


    if(paramList==null)
      return retList;
    Iterator<ServiceParameter> iSerParam = paramList.iterator();
    while(iSerParam.hasNext()){
      ServiceParameter serParam = iSerParam.next();
      Parameter p = new Parameter.Builder(
          serParam.getName(), serParam.getValue()).build();
      retList.add(p);
    }
    return retList;
  }
View Full Code Here


    if(paramList==null)
      return retList;
   
    Iterator<Parameter> iParam = paramList.iterator();
    while(iParam.hasNext()){
      Parameter serParam = iParam.next();
      ServiceParameter serP = reqParamInspector.new ServiceParameter(serParam.getName(), serParam.getValue(), serParam.getDescription());
      retList.add(serP);
    }
    return retList;
  }
View Full Code Here

                   
                        // Optionally, set up parameters:
                        List<Parameter> pars = null;
                        if(j.extension.equalsIgnoreCase("tiff")) {
                            pars = new Vector<Parameter>();
                            Parameter compression = new Parameter.Builder(
                                    parmap .get(SanselanConstants.PARAM_KEY_COMPRESSION), TIFF_LZW)
                                    .type("[NONE,LZW,PACKBITS]")
                                    .description("The compression method, one of 'NONE', 'LZW', 'PACKBITS'.")
                                    .build();
                            pars.add(compression);
View Full Code Here

 
  private List<Parameter> createParameters(boolean useConfigFile) {
      List<Parameter> parameterList = new ArrayList<Parameter>();
       
      if(useConfigFile) {
        Parameter configFile = new Parameter("configFile", CONFIG_STRING);
            parameterList.add(configFile);
            return parameterList;
      }
      else {
        return null;
View Full Code Here

         * Within this workflow we've decided to use as many parameters of those two as configured within the xml config,
         * but if one is not available (i.e. null) we still try to invoke the migration service (and use the default config of the service)
         */
        List<Parameter> parameterList = new ArrayList<Parameter>();

        Parameter pCompressionType = this.getServiceCallConfigs(this.migrate1).
        getPropertyAsParameter("compressionType");
        if(pCompressionType!=null){
            parameterList.add(pCompressionType);
        }
        Parameter pCompressionQuality = this.getServiceCallConfigs(this.migrate1).
        getPropertyAsParameter("compressionQuality");
        if(pCompressionQuality!=null){
            parameterList.add(pCompressionQuality);
        }

View Full Code Here

        ServiceDescription sd = regSer.get(0);
        List<Parameter> pList = sd.getParameters();
        if (pList != null) {
          Iterator<Parameter> it = pList.iterator();
          while (it.hasNext()) {
            Parameter par = it.next();
            ServiceParameter spar = new ServiceParameter(par
                .getName(), par.getValue());
            theServiceBean.addParameter(spar);
          }
        } else {
          errorMessageString.add("Service: " + selServiceName
              + " has no default parameters.");
View Full Code Here

TOP

Related Classes of eu.planets_project.services.datatypes.Parameter$Builder

Copyright © 2018 www.massapicom. 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.