public class IntGeneratorParameter extends AbstractParameter<IntGeneratorParameter,IntGenerator>
constraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription| Constructor and Description |
|---|
IntGeneratorParameter(OptionID optionID)
Constructs an integer list parameter
|
IntGeneratorParameter(OptionID optionID,
boolean optional)
Constructs an integer list parameter
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDefaultValueAsString()
Get the default value as string.
|
java.lang.String |
getSyntax()
Returns a string representation of the parameter's type.
|
java.lang.String |
getValueAsString()
Get the value as string.
|
protected IntGenerator |
parseValue(java.lang.Object obj)
Parse a given value into the destination type.
|
addConstraint, describeValues, getConstraints, getDefaultValue, getOptionID, getShortDescription, getValue, hasDefaultValue, isDefined, isOptional, isValid, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, validatepublic IntGeneratorParameter(OptionID optionID, boolean optional)
optionID - the unique id of this parameteroptional - specifies if this parameter is an optional parameterpublic IntGeneratorParameter(OptionID optionID)
optionID - the unique id of this parameterpublic java.lang.String getValueAsString()
ParameternullgetValueAsString in interface Parameter<IntGenerator>getValueAsString in class AbstractParameter<IntGeneratorParameter,IntGenerator>public java.lang.String getDefaultValueAsString()
ParametergetDefaultValueAsString in interface Parameter<IntGenerator>getDefaultValueAsString in class AbstractParameter<IntGeneratorParameter,IntGenerator>protected IntGenerator parseValue(java.lang.Object obj) throws ParameterException
AbstractParameterparseValue in class AbstractParameter<IntGeneratorParameter,IntGenerator>obj - Object to parse (may be a string representation!)ParameterException - when the object cannot be parsed.public java.lang.String getSyntax()
ParseIntRanges.getSyntax in interface Parameter<IntGenerator>getSyntax in class AbstractParameter<IntGeneratorParameter,IntGenerator>Copyright © 2019 ELKI Development Team. License information.