public class ModuleInputSpecImpl extends java.lang.Object implements ModuleInputSpec
| Modifier and Type | Field and Description |
|---|---|
java.util.Map<java.lang.String,OptionalParameter<?>> |
nameOptionalParameters |
java.util.Map<java.lang.String,Parameter> |
nameParameters |
| Constructor and Description |
|---|
ModuleInputSpecImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addOptionalParameterWithDefault(java.lang.String name,
java.lang.Class<T> klass,
T defaultValue,
java.lang.String defaultValueString,
java.lang.String description,
java.lang.String... properties)
Specifies a optional parameter of a module.
|
<T> void |
addOptionalParameterWithoutDefault(java.lang.String name,
java.lang.Class<T> klass,
java.lang.String description,
java.lang.String... properties)
Specifies a optional parameter of a module.
|
void |
addParameter(java.lang.String name,
java.lang.Class<?> klass,
java.lang.String description,
java.lang.String... properties)
Specifies a parameter of a module.
|
java.util.List<Parameter> |
getAllParameters() |
java.util.List<OptionalParameter<?>> |
getOptionalParameters() |
java.util.List<Parameter> |
getParameters() |
public java.util.Map<java.lang.String,Parameter> nameParameters
public java.util.Map<java.lang.String,OptionalParameter<?>> nameOptionalParameters
public void addParameter(java.lang.String name,
java.lang.Class<?> klass,
java.lang.String description,
java.lang.String... properties)
ModuleInputSpecaddParameter in interface ModuleInputSpecname - name of the paramterklass - class of the parameterdescription - user-readable documentation for this parameterproperties - required propertiespublic <T> void addOptionalParameterWithDefault(java.lang.String name,
java.lang.Class<T> klass,
T defaultValue,
java.lang.String defaultValueString,
java.lang.String description,
java.lang.String... properties)
ModuleInputSpecaddOptionalParameterWithDefault in interface ModuleInputSpecT - the type of the parametername - name of the parameterklass - class of the parameterdefaultValue - the default valuedefaultValueString - a string representation of the default valuedescription - user-readable documentation for this parameterproperties - required propertiespublic <T> void addOptionalParameterWithoutDefault(java.lang.String name,
java.lang.Class<T> klass,
java.lang.String description,
java.lang.String... properties)
ModuleInputSpecaddOptionalParameterWithoutDefault in interface ModuleInputSpecT - the type of the parametername - name of the parameterklass - class of the parameterdescription - user-readable documentation for this parameterproperties - required propertiespublic java.util.List<Parameter> getParameters()
public java.util.List<OptionalParameter<?>> getOptionalParameters()
public java.util.List<Parameter> getAllParameters()