Examples of OORexxOptions


Examples of org.oorexx.language.directive.OORexxOptions

public class LineToOORexxOptions {
 
  public static OORexxOptions convert(String line){
    line = line.trim();
   
    OORexxOptions option = new OORexxOptions();
   
    String[] words = line.split(" +");
   
    if(words[1].toUpperCase().equals(OORexxOptionKey.DIGITS.toString()))
      option.setOption(OORexxOptionKey.DIGITS);
   
    if(words[1].toUpperCase().equals(OORexxOptionKey.FORM.toString()))
      option.setOption(OORexxOptionKey.FORM);
   
    if(words[1].toUpperCase().equals(OORexxOptionKey.TRACE.toString()))
      option.setOption(OORexxOptionKey.TRACE);
   
    if(words[1].toUpperCase().equals(OORexxOptionKey.FUZZ.toString()))
      option.setOption(OORexxOptionKey.FUZZ);
   
    option.setValue(line.substring(line.indexOf(words[1]) + words[1].length() + 1, line.length()));
   
    return option;
   
  }
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.