Package jcmdline

Examples of jcmdline.IntParam


              throw new ParseException(ParseException.ERR_B_NOT_NEEDED);
              }
          }
         
          //-bl
          IntParam blOption = (IntParam) cmdLineHandler.getOption(SplitParsedCommand.BL_ARG);         
          if(SplitParsedCommand.S_BLEVEL.equals(parsedCommandDTO.getSplitType())){
            if(blOption.isSet()){     
              parsedCommandDTO.setBookmarksLevel(new Integer(blOption.intValue()));
            }else{
              throw new ParseException(ParseException.ERR_NO_BL);
            }
          }else{
            if(blOption.isSet()){
              throw new ParseException(ParseException.ERR_BL_NOT_NEEDED);
              }
          }

          //-n        
View Full Code Here


          }else{
            throw new ParseException(ParseException.ERR_NO_F2)
          }          
 
          //-step
          IntParam stepOption = (IntParam) cmdLineHandler.getOption(MixParsedCommand.STEP_ARG);                   
          if(stepOption.isSet()){   
            int step = stepOption.intValue();
            if(step>0){
              parsedCommandDTO.setStep(stepOption.intValue());
            }else{
                throw new ParseException(ParseException.ERR_STEP_ZERO_OR_NEGATIVE);
              }
          }else{
            parsedCommandDTO.setStep(MixParsedCommand.DEFAULT_STEP);
          }
         
          //-secondstep
          IntParam secondStepOption = (IntParam) cmdLineHandler.getOption(MixParsedCommand.SECOND_STEP_ARG);                   
          if(secondStepOption.isSet()){   
            int step = secondStepOption.intValue();
            if(step>0){
              parsedCommandDTO.setSecondStep(secondStepOption.intValue());
            }else{
                throw new ParseException(ParseException.ERR_STEP_ZERO_OR_NEGATIVE);
              }
          }else{
            parsedCommandDTO.setSecondStep(parsedCommandDTO.getStep());
View Full Code Here

TOP

Related Classes of jcmdline.IntParam

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.