22 |
|
|
23 |
package org.linuxsampler.lscp; |
package org.linuxsampler.lscp; |
24 |
|
|
25 |
|
import static org.linuxsampler.lscp.Parser.removeQuotation; |
26 |
|
|
27 |
|
|
28 |
/** |
/** |
29 |
* This class implements the <code>Parameter<String></code> interface. |
* This class implements the <code>Parameter<String></code> interface. |
30 |
* @author Grigor Iliev |
* @author Grigor Iliev |
80 |
parse(String s) throws LscpException { |
parse(String s) throws LscpException { |
81 |
if(super.parse(s)) return true; |
if(super.parse(s)) return true; |
82 |
else if(s.startsWith("DEFAULT: ")) { |
else if(s.startsWith("DEFAULT: ")) { |
83 |
setDefault(s.substring("DEFAULT: ".length(), s.length())); |
s = s.substring("DEFAULT: ".length()); |
84 |
|
setDefault(removeQuotation(s)); |
85 |
return true; |
return true; |
86 |
} else if(s.startsWith("POSSIBILITIES: ")) { |
} else if(s.startsWith("POSSIBILITIES: ")) { |
87 |
s = s.substring("POSSIBILITIES: ".length(), s.length()); |
s = s.substring("POSSIBILITIES: ".length()); |
88 |
setPossibilities(Parser.parseStringList(s)); |
setPossibilities(Parser.parseStringList(s)); |
89 |
return true; |
return true; |
90 |
} |
} |