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); }
private void copyDescriptionType(Set<Description> descriptions, RegistryObjectType roType) { InternationalStringType is = factory.createInternationalStringType(); List<LocalizedStringType> values = is.getLocalizedString(); LocalizedStringType value; for (Description n : descriptions) { value = factory.createLocalizedStringType(); value.setCharset(n.getCharset()); value.setLang(n.getLang()); value.setValue(n.getValue()); values.add(value); } roType.setDescription(is); }