private static String getOutputRecord(Output output) { return " name=\"" + output.getName() + "\", label=\"" + output.getLabel() + "\", decription=\"" + output.getDescription() + "\", type=\"" + output.getType() + "\""; }
} else { try { Class<?> outputType = Class.forName(output.getType()); Class<?> inputType = Class.forName(input.getType()); if (inputType.isAssignableFrom(outputType)) { return; } else { throw new IllegalArgumentException(msg + " Incompatible types : \"" + output.getType() + "\" and \"" + input.getType() + "\"."); if (output.getType().equals(input.getType())) { return; } else { throw new IllegalArgumentException(msg + " Incompatible types : \"" + output.getType() + "\" and \"" + input.getType() + "\".");
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; }