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

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

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

revision 783 by iliev, Wed Jun 1 07:11:31 2005 UTC revision 784 by iliev, Mon Oct 10 14:55:44 2005 UTC
# Line 22  Line 22 
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&lt;String&gt;</code> interface.   * This class implements the <code>Parameter&lt;String&gt;</code> interface.
30   * @author  Grigor Iliev   * @author  Grigor Iliev
# Line 77  public class StringParameter extends Abs Line 80  public class StringParameter extends Abs
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                  }                  }

Legend:
Removed from v.783  
changed lines
  Added in v.784

  ViewVC Help
Powered by ViewVC