|
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.Integer>
org.linuxsampler.lscp.IntParameter
public class IntParameter
This class implements the Parameter<Integer> interface.
| Constructor Summary | |
|---|---|
|
IntParameter()
Creates a new instance of IntParameter |
|
IntParameter(java.lang.String name)
Creates an IntParameter instance with the specified name. |
protected |
IntParameter(java.lang.String[] lnS)
Creates a new instance of IntParameter
and parses the specified lines. |
|
IntParameter(java.lang.String name,
java.lang.Integer value)
Creates an IntParameter instance with the specified name and value. |
| Method Summary | |
|---|---|
java.lang.String |
getStringValue()
Gets a character string representation of the parameter's value. |
boolean |
parse(java.lang.String s)
Parses a line of text. |
void |
parseValue(java.lang.String s)
Parses the specified character string and sets the value of this parameter with the parsed result. |
| 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 IntParameter()
IntParameter
public IntParameter(java.lang.String name)
IntParameter instance with the specified name.
name - The parameter name.
public IntParameter(java.lang.String name,
java.lang.Integer value)
IntParameter instance with the specified name and value.
name - The parameter name.value - The parameter value.
protected IntParameter(java.lang.String[] lnS)
throws LscpException
IntParameter
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 Parseableparse in class AbstractParameter<java.lang.Integer>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 - A character string containing the value to be parsed.
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 | |||||||||