/** * 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)); } }
/** * Add description to abstract feature * * @param abstractFeature Abstract feature to add description * @param abstractI18N I18N with language specific values */ public static void addLanguageSpecificDescriptionToFeature( AbstractFeature abstractFeature, AbstractHibernateI18NMetadata abstractI18N) { if (abstractI18N != null && abstractI18N.isSetDescription()) { abstractFeature.setDescription(abstractI18N.getDescription()); } }