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;
}