public static void setName(RegistryObjectType ro, String value) { LocalizedStringType lst = rimFactory.createLocalizedStringType(); lst.setValue(value); InternationalStringType is = rimFactory.createInternationalStringType(); is.getLocalizedString().add(lst); ro.setName(is); }
private void copyNameType(Set<Name> name, RegistryObjectType roType) { InternationalStringType is = factory.createInternationalStringType(); List<LocalizedStringType> values = is.getLocalizedString(); LocalizedStringType value; for (Name n : name) { value = factory.createLocalizedStringType(); value.setCharset(n.getCharset()); value.setLang(n.getLang()); value.setValue(n.getValue()); values.add(value); } roType.setName(is); }