private void copyDescriptions(InternationalStringType isType, RegistryObject ro) { Set<Description> descriptions = new HashSet<Description>(); if (isType != null) { Description desc; for (LocalizedStringType localString : isType.getLocalizedString()) { desc = new Description(); desc.setLang(localString.getLang()); log.info("######## description.setValue:"+localString.getValue()+" parent:"+ro); desc.setValue(localString.getValue()); desc.setCharset(localString.getCharset()); desc.setParent(ro); descriptions.add(desc); } } ro.setDescription(descriptions); }
private void copyName(InternationalStringType isType, RegistryObject ro) { Set<Name> names = new HashSet<Name>(); if (isType != null) { Name name; for (LocalizedStringType localString : isType.getLocalizedString()) { name = new Name(); name.setLang(localString.getLang()); name.setValue(localString.getValue()); name.setCharset(localString.getCharset()); name.setParent(ro); names.add(name); } } ro.setName(names); }