if (paramAnnotations.length == 0) { input = new Input("p" + i, param.getType().getCanonicalName(), "", "", Collections.<String> emptySet(), false, "", ""); } else if (paramAnnotations.length == 1) { input = new Input(inp.name(), type, inp.label(), inp.description(), Arrays.stream(inp.tags()).collect(Collectors.toSet()), inp.required(), inp.reference(), inp.defaultValue());
public static List<Input> getLocalizedInputs(TranslationProvider i18nProvider, List<Input> inputs, Bundle bundle, String uid, Locale locale) { List<Input> linputs = new ArrayList<Input>(); if (inputs != null) { for (Input input : inputs) { String inputName = input.getName(); String ilabel = ModuleTypeI18nUtil.getInputLabel(i18nProvider, bundle, uid, inputName, input.getLabel(), locale); String idescription = ModuleTypeI18nUtil.getInputDescription(i18nProvider, bundle, uid, inputName, input.getDescription(), locale); linputs.add(new Input(inputName, input.getType(), ilabel, idescription, input.getTags(), input.isRequired(), input.getReference(), input.getDefaultValue())); } } return linputs; }