|
jlscp v0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.linuxsampler.lscp.AbstractParameter<java.lang.String>
org.linuxsampler.lscp.StringParameter
public class StringParameter
This class implements the Parameter<String>
interface.
Constructor Summary | |
---|---|
|
StringParameter()
Creates a new instance of StringParameter |
|
StringParameter(java.lang.String name)
Creates a StringParameter instance with the specified name. |
protected |
StringParameter(java.lang.String[] lnS)
Creates a new instance of StringParameter
and parses the specified lines. |
|
StringParameter(java.lang.String name,
java.lang.String value)
Creates a StringParameter instance with the specified name and value. |
Method Summary | |
---|---|
java.lang.String |
getStringValue()
Gets the current value of this parameter. |
boolean |
parse(java.lang.String s)
Parses a line of text. |
void |
parseValue(java.lang.String s)
Sets the current value of this parameter with the specified character string. |
Methods inherited from class org.linuxsampler.lscp.AbstractParameter |
---|
getDefault, getDependances, getDescription, getName, getPossibilities, getRangeMax, getRangeMin, getType, getValue, hasDependances, hasPossibilities, hasRangeMax, hasRangeMin, isBoolean, isBooleanList, isFixed, isFloat, isFloatList, isInteger, isIntegerList, isMandatory, isMultiplicity, isString, isStringList, parseLines, setDefault, setDescription, setMultiplicity, setName, setPossibilities, setRangeMax, setRangeMin, setType, setValue, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StringParameter()
StringParameter
public StringParameter(java.lang.String name)
StringParameter
instance with the specified name.
name
- The parameter name.public StringParameter(java.lang.String name, java.lang.String value)
StringParameter
instance with the specified name and value.
name
- The parameter name.value
- The parameter value.protected StringParameter(java.lang.String[] lnS) throws LscpException
StringParameter
and parses the specified lines.
lnS
- A String
array with lines to be parsed.
LscpException
- If the parse fail.Method Detail |
---|
public boolean parse(java.lang.String s) throws LscpException
parse
in interface Parseable
parse
in class AbstractParameter<java.lang.String>
s
- The string to be parsed.
true
if the line has been processed, false
otherwise.
LscpException
- If some error occurs.public void parseValue(java.lang.String s) throws LscpException
s
- The new value for this parameter.
LscpException
- If the parsing failed.public java.lang.String getStringValue()
|
jlscp v0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |