try { encodedValue = ParameterCollectionTypeEncoder .valueOf(parameterDetail.getCollectionType().toString()) .encode( parameterDetail.getDataType(),
public Parameter getParameter(String name, ParameterDataType dataType, String defaultValue, ParameterCollectionType collectionType){ Parameter p = new Parameter(name); p.setDataType(dataType); p.setCollectionType(collectionType); p.setDisplayName("param display name"); if (collectionType.equals(ParameterCollectionType.MULTIPLE)){ p.setDefaultValue(defaultValue.split(",")); }else { p.setDefaultValue(new String[]{defaultValue}); } return p; }
try { encodedValue = ParameterCollectionTypeEncoder .valueOf(parameterDetail.getCollectionType().toString()) .encode( parameterDetail.getDataType(),