/[svn]/jlscp/trunk/src/org/linuxsampler/lscp/StringListParameter.java
ViewVC logotype

Diff of /jlscp/trunk/src/org/linuxsampler/lscp/StringListParameter.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1392 by iliev, Fri Sep 7 11:03:52 2007 UTC revision 1393 by iliev, Sun Oct 7 20:29:41 2007 UTC
# Line 76  public class StringListParameter extends Line 76  public class StringListParameter extends
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());
# Line 95  public class StringListParameter extends Line 95  public class StringListParameter extends
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.

Legend:
Removed from v.1392  
changed lines
  Added in v.1393

  ViewVC Help
Powered by ViewVC