|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter<List<T>,List<T>> de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.ListParameter<T>
T
- List typepublic abstract class ListParameter<T>
Abstract parameter class defining a parameter for a list of objects.
Field Summary | |
---|---|
static String |
LIST_SEP
List separator character - ":" |
static Pattern |
SPLIT
A pattern defining a ",". |
static String |
VECTOR_SEP
Vector separator character - ":" |
static Pattern |
VECTOR_SPLIT
A pattern defining a ":". |
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter |
---|
constraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription |
Constructor Summary | |
---|---|
ListParameter(OptionID optionID)
Constructs a list parameter with the given optionID. |
|
ListParameter(OptionID optionID,
boolean optional)
Constructs a list parameter with the given optionID and optional flag. |
|
ListParameter(OptionID optionID,
List<ParameterConstraint<List<T>>> constraints,
boolean optional)
Constructs a list parameter with the given optionID. |
|
ListParameter(OptionID optionID,
List<ParameterConstraint<List<T>>> constraints,
List<T> defaultValue)
Constructs a list parameter with the given optionID. |
|
ListParameter(OptionID optionID,
ParameterConstraint<List<T>> constraint)
Constructs a list parameter with the given optionID. |
|
ListParameter(OptionID optionID,
ParameterConstraint<List<T>> constraint,
boolean optional)
Constructs a list parameter with the given optionID. |
|
ListParameter(OptionID optionID,
ParameterConstraint<List<T>> constraint,
List<T> defaultValue)
Constructs a list parameter with the given optionID. |
Method Summary | |
---|---|
protected String |
asString()
Returns a string representation of this list parameter. |
int |
getListSize()
Returns the size of this list parameter. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter |
---|
addConstraint, getDefaultValue, getDefaultValueAsString, getFullDescription, getGivenValue, getName, getOptionID, getShortDescription, getSyntax, getValue, getValueAsString, getValuesDescription, hasDefaultValue, hasValuesDescription, isDefined, isOptional, isValid, parseValue, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, useDefaultValue, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Pattern SPLIT
public static final String LIST_SEP
public static final Pattern VECTOR_SPLIT
public static final String VECTOR_SEP
Constructor Detail |
---|
public ListParameter(OptionID optionID, List<ParameterConstraint<List<T>>> constraints, List<T> defaultValue)
optionID
- the unique id of this parameterconstraints
- the constraints of this parameter, may be nulldefaultValue
- the default value of this parameter (may be null)public ListParameter(OptionID optionID, List<ParameterConstraint<List<T>>> constraints, boolean optional)
optionID
- the unique id of this parameterconstraints
- the constraints of this parameter, may be nulloptional
- specifies if this parameter is an optional parameterpublic ListParameter(OptionID optionID, ParameterConstraint<List<T>> constraint, List<T> defaultValue)
optionID
- the unique id of this parameterconstraint
- the constraint of this parameter, may be nulldefaultValue
- the default value of this parameter (may be null)public ListParameter(OptionID optionID, ParameterConstraint<List<T>> constraint, boolean optional)
optionID
- the unique id of this parameterconstraint
- the constraint of this parameter, may be nulloptional
- specifies if this parameter is an optional parameterpublic ListParameter(OptionID optionID, ParameterConstraint<List<T>> constraint)
optionID
- the unique id of this parameterconstraint
- the constraint of this parameterpublic ListParameter(OptionID optionID, boolean optional)
optionID
- the unique id of this parameteroptional
- Optional flagpublic ListParameter(OptionID optionID)
optionID
- the unique id of this parameterMethod Detail |
---|
public int getListSize()
protected String asString()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |