private boolean isConnected(Input input, Set<Connection> connections) { for (Connection connection : connections) { if (connection.getInputName().equals(input.getName())) { return true; } } return false; }
private boolean hasInput(ActionType moduleType, String in) { for (Input i : moduleType.getInputs()) { if (i.getName().equals(in)) { return true; } } return false; }
.add(new Connection(input.getName(), outputRef.getModuleId(), outputRef.getOutputName(), null)); result = true;
String name = input.getName(); Connection connection = connectionsMap.get(name); if (connection != null) {
String name = input.getName(); Connection connection = connectionsMap.get(name); if (connection == null && input.isRequired()) {
private static String getInputRecord(Input input) { return " name=\"" + input.getName() + "\", label=\"" + input.getLabel() + "\", decription=\"" + input.getDescription() + "\", type=\"" + input.getType() + "\", " + (input.isRequired() ? REQUIRED : NOT_REQUIRED) + (input.getDefaultValue() != null ? "\", default=\"" + input.getDefaultValue() : ""); }
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; }