Examples of StringParam


Examples of jcmdline.StringParam

      }else{
        throw new ParseException(ParseException.ERR_NO_F_OR_L_OR_D);
      }
 
      //-u
      StringParam uOption = (StringParam) cmdLineHandler.getOption(ConcatParsedCommand.U_ARG);           
          //if it's set we proceed with validation
          if (uOption.isSet()){
            String[] selections = StringUtils.split(uOption.getValue(), ":");
            String[] trimmedSelection = new String[selections.length];
            for(int i = 0; i<selections.length; i++){
              trimmedSelection[i] = selections[i].trim();
            }
              ValidationUtility.assertValidPageSelectionsArray(trimmedSelection);
              parsedCommandDTO.setPageSelections(trimmedSelection);
          }
 
          //-copyfields
          parsedCommandDTO.setCopyFields(((BooleanParam) cmdLineHandler.getOption(ConcatParsedCommand.COPYFIELDS_ARG)).isTrue());
         
          //-r
          StringParam rOption = (StringParam) cmdLineHandler.getOption(ConcatParsedCommand.R_ARG);
          if(rOption.isSet()){
            PageRotation[] rotations = ValidationUtility.getPagesRotation(rOption.getValue());
            parsedCommandDTO.setRotations(rotations);
          }
    }else{
      throw new ConsoleException(ConsoleException.CMD_LINE_HANDLER_NULL);
    }
View Full Code Here

Examples of jcmdline.StringParam

    }
    if(cmdLineHandler.getOption(AbstractParsedCommand.COMPRESSED_ARG) != null){
      parsedCommand.setCompress(((BooleanParam) cmdLineHandler.getOption(AbstractParsedCommand.COMPRESSED_ARG)).isTrue());
    }
    if(cmdLineHandler.getOption(AbstractParsedCommand.PDFVERSION_ARG) != null){
          StringParam pdfversionOption = (StringParam) cmdLineHandler.getOption(AbstractParsedCommand.PDFVERSION_ARG);
          if (pdfversionOption.isSet()){
            parsedCommand.setOutputPdfVersion(pdfversionOption.getValue().charAt(0));
          }
        }
    return parsedCommand;
  }
View Full Code Here

Examples of org.auraframework.http.RequestParam.StringParam

        Map<String, Object> attributes = new HashMap<String, Object>();

        while (attributeNames.hasMoreElements()) {
            String name = attributeNames.nextElement();
            if (!name.startsWith(AURA_PREFIX)) {
                Object value = new StringParam(name, 0, false).get(request);

                attributes.put(name, value);
            }
        }
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.