C - Class typepublic class ObjectListParameter<C> extends ClassListParameter<C>
| Modifier and Type | Field and Description | 
|---|---|
| private java.util.List<C> | instancesCache for the generated instances. | 
restrictionClassLIST_SEP, SPLIT, VECTOR_SEP, VECTOR_SPLITconstraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription| Constructor and Description | 
|---|
| ObjectListParameter(OptionID optionID,
                   java.lang.Class<?> restrictionClass)Constructor for non-optional. | 
| ObjectListParameter(OptionID optionID,
                   java.lang.Class<?> restrictionClass,
                   boolean optional)Constructor with optional flag. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | getSyntax()Returns a string representation of the parameter's type. | 
| java.util.List<C> | instantiateClasses(Parameterization config)Returns a list of new instances for the value (i.e., the class name) of
 this class list parameter. | 
| protected java.util.List<java.lang.Class<? extends C>> | parseValue(java.lang.Object obj)Parse a given value into the destination type. | 
describeValues, formatValue, getDefaultValueAsString, getKnownImplementations, getRestrictionClass, getValueAsString, size, validateaddConstraint, getConstraints, getDefaultValue, getOptionID, getShortDescription, getValue, hasDefaultValue, isDefined, isOptional, isValid, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValueprivate java.util.List<C> instances
public ObjectListParameter(OptionID optionID, java.lang.Class<?> restrictionClass, boolean optional)
optionID - Option IDrestrictionClass - Restriction classoptional - optional flagpublic ObjectListParameter(OptionID optionID, java.lang.Class<?> restrictionClass)
optionID - Option IDrestrictionClass - Restriction classpublic java.lang.String getSyntax()
ClassListParameterprotected java.util.List<java.lang.Class<? extends C>> parseValue(java.lang.Object obj) throws ParameterException
AbstractParameterparseValue in class ClassListParameter<C>obj - Object to parse (may be a string representation!)ParameterException - when the object cannot be parsed.public java.util.List<C> instantiateClasses(Parameterization config)
ClassListParameterIf the Class for the class names is not found, the instantiation is tried using the package of the restriction class as package of the class name.
instantiateClasses in class ClassListParameter<C>config - Parameterization to use (if Parameterizable))Copyright © 2019 ELKI Development Team. License information.