@Override protected List<Condition> getChildren() { return moduleType.getChildren(); } }
public static CompositeConditionTypeDTO map(final CompositeConditionType conditionType) { final CompositeConditionTypeDTO conditionTypeDto = map(conditionType, new CompositeConditionTypeDTO()); conditionTypeDto.children = ConditionDTOMapper.map(conditionType.getChildren()); return conditionTypeDto; }
collectRecords(columnWidths, CHILDREN, ((CompositeConditionType) moduleType).getChildren()));
List<Condition> childModules = ((CompositeConditionType) mt).getChildren(); LinkedHashMap<Condition, ConditionHandler> mapModuleToHandler = getChildHandlers(module.getId(), module.getConfiguration(), childModules, ruleUID);
/** * Utility method for localization of ConditionTypes. * * @param ct is a ConditionType for localization. * @param bundle the bundle providing localization resources. * @param moduleTypeUID is a ConditionType uid. * @param locale represents a specific geographical, political, or cultural region. * @param lconfigDescriptions are ConditionType localized config descriptions. * @param llabel is a ConditionType localized label. * @param ldescription is a ConditionType localized description. * @return localized ConditionType. */ private ConditionType createLocalizedConditionType(ConditionType ct, Bundle bundle, String moduleTypeUID, Locale locale, List<ConfigDescriptionParameter> lconfigDescriptions, String llabel, String ldescription) { List<Input> inputs = ModuleTypeI18nUtil.getLocalizedInputs(i18nProvider, ct.getInputs(), bundle, moduleTypeUID, locale); ConditionType lct = null; if (ct instanceof CompositeConditionType) { List<Condition> modules = ModuleI18nUtil.getLocalizedModules(i18nProvider, ((CompositeConditionType) ct).getChildren(), bundle, moduleTypeUID, ModuleTypeI18nUtil.MODULE_TYPE, locale); lct = new CompositeConditionType(moduleTypeUID, lconfigDescriptions, llabel, ldescription, ct.getTags(), ct.getVisibility(), inputs, modules); } else { lct = new ConditionType(moduleTypeUID, lconfigDescriptions, llabel, ldescription, ct.getTags(), ct.getVisibility(), inputs); } return lct; }
result = new CompositeConditionType(mType.getUID(), mType.getConfigurationDescriptions(), mType.getLabel(), mType.getDescription(), mType.getTags(), mType.getVisibility(), m.getInputs(), new ArrayList<>(m.getChildren()));