use of nl.knaw.huygens.timbuctoo.model.PersonName in project timbuctoo by HuygensING.
the class UriBearingPersonNames method addNameComponent.
public UriBearingPersonNames addNameComponent(String nameUri, PersonNameComponent.Type nameType, String value) {
PersonName personName;
if (nameUris.containsKey(nameUri)) {
personName = list.get(nameUris.get(nameUri));
} else {
personName = new PersonName();
list.add(personName);
nameUris.put(nameUri, list.indexOf(personName));
}
insertNameComponentAtNaturalPosition(nameType, value, personName);
return this;
}
Aggregations