/** * Add names to abstract feature * * @param abstractFeature Abstract feature to add name * @param i18n I18N with language specific values */ public static void addLanguageSpecificNameToFeature( AbstractFeature abstractFeature, AbstractI18NMetadata i18n) { if (i18n != null) { for (LocalizedString name : i18n.getName()) { abstractFeature.addName(name.asCodeType()); } } }
/** * Add name to abstract feature * * @param abstractFeature Abstract feature to add name * @param abstractI18N I18N with language specific values */ public static void addLanguageSpecificNameToFeature( AbstractFeature abstractFeature, AbstractHibernateI18NMetadata abstractI18N) { if (abstractI18N != null && abstractI18N.isSetName()) { // FIXME autermann: create a setting to control in which format the locale is outputted String locale = abstractI18N.getLocale().getISO3Language(); abstractFeature.addName(new CodeType(abstractI18N.getName(), locale)); } }