private boolean hasOutput(ActionType moduleType, String out) { for (Output o : moduleType.getOutputs()) { if (o.getName().equals(out)) { return true; } } return false; } }
private void initTagsMap(String moduleId, List<Output> outputs, Map<Set<String>, OutputRef> tagMap) { for (Output output : outputs) { Set<String> tags = output.getTags(); if (tags.size() > 0) { if (tagMap.get(tags) != null) { // this set of output tags already exists. (conflict) tagMap.remove(tags); } else { tagMap.put(tags, new OutputRef(moduleId, output.getName())); } } } }
if (childOuputRef != null && childOuputRef.length() > childOuputName.length()) { childOuputRef = childOuputRef.substring(childOuputName.length()); result.put(output.getName(), ReferenceResolver .resolveComplexDataReference(childResult.getValue(), childOuputRef)); } else { result.put(output.getName(), childResult.getValue());
private static String getOutputRecord(Output output) { return " name=\"" + output.getName() + "\", label=\"" + output.getLabel() + "\", decription=\"" + output.getDescription() + "\", type=\"" + output.getType() + "\""; }
result.put(output.getName(), value);
if (outputs != null && !outputs.isEmpty()) { for (Output output : outputs) { if (output.getName().equals(outputName)) { if (input.getType().equals("*")) { return;
public static List<Output> getLocalizedOutputs(TranslationProvider i18nProvider, List<Output> outputs, Bundle bundle, String uid, Locale locale) { List<Output> loutputs = new ArrayList<Output>(); if (outputs != null) { for (Output output : outputs) { String outputName = output.getName(); String olabel = ModuleTypeI18nUtil.getOutputLabel(i18nProvider, bundle, uid, outputName, output.getLabel(), locale); String odescription = ModuleTypeI18nUtil.getOutputDescription(i18nProvider, bundle, uid, outputName, output.getDescription(), locale); loutputs.add(new Output(outputName, output.getType(), olabel, odescription, output.getTags(), output.getReference(), output.getDefaultValue())); } } return loutputs; }