76 |
parse(String s) throws LscpException { |
parse(String s) throws LscpException { |
77 |
if(super.parse(s)) return true; |
if(super.parse(s)) return true; |
78 |
else if(s.startsWith("DEFAULT: ")) { |
else if(s.startsWith("DEFAULT: ")) { |
79 |
setDefault(Parser.parseQuotedStringList(s.substring("DEFAULT: ".length()))); |
setDefault(Parser.parseStringList(s.substring("DEFAULT: ".length()))); |
80 |
return true; |
return true; |
81 |
} else if(s.startsWith("POSSIBILITIES: ")) { |
} else if(s.startsWith("POSSIBILITIES: ")) { |
82 |
s = s.substring("POSSIBILITIES: ".length(), s.length()); |
s = s.substring("POSSIBILITIES: ".length(), s.length()); |
95 |
* @throws LscpException If the parsing failed. |
* @throws LscpException If the parsing failed. |
96 |
*/ |
*/ |
97 |
public void |
public void |
98 |
parseValue(String s) throws LscpException { setValue(Parser.parseStringList(s)); } |
parseValue(String s) throws LscpException { |
99 |
|
setValue(Parser.parseEscapedStringList(s)); // TODO: always escaped? |
100 |
|
} |
101 |
|
|
102 |
/** |
/** |
103 |
* Gets the current value of this parameter. |
* Gets the current value of this parameter. |