public Map<String, Object> getInputValues() throws UnifyException { Map<String, Object> map = new HashMap<String, Object>(); for (Input input : this.inputList) { map.put(input.getName(), input.getTypeValue()); } return map; }
@Override protected ValueStore newValue(Input item, int index) throws UnifyException { return new ValueStore(createValueStore(item, index), item.getDescription(), item.isMandatory()); }
public String getInputValue(String name) { Input input = this.inputByName.get(name); if (input != null) { return input.getValue(); } return null; }
public <T> void setParameter(String name, Object value) throws UnifyException { if (inputParameterList != null) { for (Input parameter : inputParameterList) { if (name.equals(parameter.getName())) { parameter.setTypeValue(value); break; } } } }
public Inputs(List<Input> inputList) { this.inputList = Collections.unmodifiableList(inputList); this.inputByName = new HashMap<String, Input>(); for (Input input : inputList) { inputByName.put(input.getName(), input); } }
public boolean setInputValue(String name, String value) { Input input = this.inputByName.get(name); if (input != null) { input.setValue(value); return true; } return false; }
private Input getParameterValue(ParameterDef parameterDefData) throws UnifyException { Class<?> type = ReflectUtils.getClassForName(parameterDefData.getType()); return new Input(type, parameterDefData.getName(), resolveSessionMessage(parameterDefData.getDescription()), parameterDefData.getEditor(), parameterDefData.isMandatory()); }
usedSet.add(key); Input parameterValue = getParameterValue(parameterDefData); parameterValue.setValue(parameterValueData.getParamValue()); inputList.add(parameterValue);
/** * Returns input holder values by name. * * @param parameterList * the parameter holder list * @return map of values by name */ public static Map<String, Object> getInputHolderNameValueMap(List<Input> parameterList) throws UnifyException { Map<String, Object> result = new HashMap<String, Object>(); for (Input parameterHolder : parameterList) { result.put(parameterHolder.getName(), parameterHolder.getTypeValue()); } return result; }
String value = null; if (paramValue != null) { value = paramValue.getValue();
for (Input parameterValue : getParameterService().fetchNormalizedInputs( scheduledTask.getTaskName(), SCHEDULED_TASK, scheduledTask.getId()).getInputList()) { schdParameters.put(parameterValue.getName(), parameterValue.getTypeValue());