*
* @throws ConfigurationException When an error occurs.
*/
protected ContactDTO loadContact(Element contactInfoElement)
throws ConfigurationException {
ContactDTO c = new ContactDTO();
if (contactInfoElement == null) {
return c;
}
Element elem;
NodeList nodeList;
elem = ReaderUtils.getChildElement(contactInfoElement,
"ContactPersonPrimary");
if (elem != null) {
c.setContactPerson(ReaderUtils.getChildText(elem, "ContactPerson"));
c.setContactOrganization(ReaderUtils.getChildText(elem,
"ContactOrganization"));
}
c.setContactPosition(ReaderUtils.getChildText(contactInfoElement,
"ContactPosition"));
elem = ReaderUtils.getChildElement(contactInfoElement, "ContactAddress");
if (elem != null) {
c.setAddressType(ReaderUtils.getChildText(elem, "AddressType"));
c.setAddress(ReaderUtils.getChildText(elem, "Address"));
c.setAddressCity(ReaderUtils.getChildText(elem, "City"));
c.setAddressState(ReaderUtils.getChildText(elem, "StateOrProvince"));
c.setAddressPostalCode(ReaderUtils.getChildText(elem, "PostCode"));
c.setAddressCountry(ReaderUtils.getChildText(elem, "Country"));
}
c.setContactVoice(ReaderUtils.getChildText(contactInfoElement,
"ContactVoiceTelephone"));
c.setContactFacsimile(ReaderUtils.getChildText(contactInfoElement,
"ContactFacsimileTelephone"));
c.setContactEmail(ReaderUtils.getChildText(contactInfoElement,
"ContactElectronicMailAddress"));
return c;
}