
public abstract class ParameterSetter<T> extends Object
| Constructor and Description |
|---|
ParameterSetter(Map<String,Method> configChangerMap,
Map<String,Field> fieldsMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConstraint(String parmName,
String constraint) |
void |
addFinalPropForParm(String parmName,
boolean isFinal) |
void |
addTypeForParm(String parmName,
Type type) |
protected void |
checkAgainstConstraints(Map<String,ViewValue> parms,
boolean checkFinal)
Check against potential constraints defined in the subsystem description.
|
static <A,B,C> Function<A,C> |
compose(Function<A,B> f1,
Function<B,C> f2) |
protected Map<String,ViewValue> |
convert(Map<String,String> map)
Conversion from String to object using the InputConversionEngine utility.
|
void |
dropSubmittedChanges() |
String |
getConstraintFor(String parmName) |
Map<String,Field> |
getParameterFields() |
Map<String,String> |
getSubmittedChanges() |
Type |
getTypeForParm(String parameterName) |
boolean |
hasSubmittedChanges() |
Map<String,String> |
invokeSetParameters()
Global parameter setting algorithm.
|
void |
invokeSetSingleParameter(String parameterName,
Object value,
Map<String,String> currentView,
boolean checkFinal) |
void |
invokeValidateBulkChange(Map<String,String> others,
boolean checkFinal)
Validation step
|
void |
setTarget(T target) |
void |
submitChange(String parameterName,
Object value) |
public void dropSubmittedChanges()
public boolean hasSubmittedChanges()
public void invokeValidateBulkChange(Map<String,String> others, boolean checkFinal)
others - the other parameters that have not changedcheckFinal - true if the final property of a parameter has to be checked,
false otherwise.public void invokeSetSingleParameter(String parameterName, Object value, Map<String,String> currentView, boolean checkFinal)
public Map<String,String> invokeSetParameters() throws BulkSettingException
BulkSettingExceptionpublic void setTarget(T target)
protected void checkAgainstConstraints(Map<String,ViewValue> parms, boolean checkFinal)
parms - checkFinal - protected Map<String,ViewValue> convert(Map<String,String> map)
map - public void addFinalPropForParm(String parmName, boolean isFinal)
Copyright © 2016 LSST. All rights reserved.