|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.Option<T>
de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter<String,String>
de.lmu.ifi.dbs.elki.utilities.optionhandling.StringParameter
public class StringParameter
Parameter class for a parameter specifying a string value.
Field Summary |
---|
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter |
---|
constraints, defaultValue, optionalParameter |
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Option |
---|
name, shortDescription, value |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug |
Constructor Summary | |
---|---|
StringParameter(String name,
String description)
Deprecated. |
|
StringParameter(String name,
String description,
List<ParameterConstraint<String>> cons)
Deprecated. |
|
StringParameter(String name,
String description,
ParameterConstraint<String> con)
Deprecated. |
Method Summary | |
---|---|
protected String |
getParameterType()
Returns a string representation of the parameter's type. |
boolean |
isValid(String value)
Checks if the given argument is valid for this option. |
void |
setValue(String value)
Sets the value of the option. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter |
---|
addConstraint, addConstraintList, getDefaultValue, getDescription, getValue, hasDefaultValue, isOptional, isSet, reset, setDefaultValue, setDefaultValueToValue, setOptional, tookDefaultValue |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Option |
---|
getName, getShortDescription, setShortDescription |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public StringParameter(String name, String description)
name
- the parameter namedescription
- the parameter description@Deprecated public StringParameter(String name, String description, ParameterConstraint<String> con)
name
- the parameter namedescription
- the parameter descriptioncon
- a parameter constraint for this string parameter@Deprecated public StringParameter(String name, String description, List<ParameterConstraint<String>> cons)
name
- the parameter namedescription
- the parameter descriptioncons
- a list of parameter constraints for this string parameterMethod Detail |
---|
public void setValue(String value) throws ParameterException
Option
setValue
in class Option<String>
value
- the option's value to be set
ParameterException
- if the given value is not a valid value for this option.Option.setValue(java.lang.String)
public boolean isValid(String value) throws ParameterException
Option
isValid
in class Option<String>
value
- option value to be checked
ParameterException
- if the given value is not a valid value for this option.Option.isValid(java.lang.String)
protected String getParameterType()
getParameterType
in class Parameter<String,String>
Parameter.getParameterType()
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |