public static void setDescription(RegistryObjectType ro, String value) { LocalizedStringType lst = rimFactory.createLocalizedStringType(); lst.setValue(value); InternationalStringType is = rimFactory.createInternationalStringType(); is.getLocalizedString().add(lst); ro.setDescription(is); } public static void setName(RegistryObjectType ro, String value) {
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); }
public static ClassificationType createCodeClassification(String id, String classifiedObjectID, String type, Code code) { ClassificationType cl = createClassification(id, type, classifiedObjectID, code.getValue()); LocalizedStringType lst = rimFactory.createLocalizedStringType(); lst.setValue(code.getMeaning()); InternationalStringType is = rimFactory.createInternationalStringType(); is.getLocalizedString().add(lst); cl.setName(is); cl.getSlot().add(createSlot("codingScheme", null, code.getDesignator())); return cl; }
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); }
public static ExternalIdentifierType createExternalIdentifier(String id, String scheme, String registryObject, String value, String name) { ExternalIdentifierType ei = rimFactory.createExternalIdentifierType(); ei.setId(id); ei.setIdentificationScheme(scheme); ei.setObjectType("urn:oasis:names:tc:ebxml-regrep:ObjectType:RegistryObject:ExternalIdentifier"); ei.setRegistryObject(registryObject); ei.setValue(value); InternationalStringType is = rimFactory.createInternationalStringType(); LocalizedStringType v = rimFactory.createLocalizedStringType(); v.setValue(name); is.getLocalizedString().add(v); ei.setName(is); return ei; }