/** {@inheritDoc} */ protected void processElementContent(XMLObject samlObject, String elementContent) { SurName name = (SurName) samlObject; name.setName(elementContent); } }
/** * look for the <ContactPerson> and within that the SurName. * * @param contactType the type of contact to look for * @return An appropriate string or null */ @Nullable public String getContactSurName(@Nullable final String contactType) { final ContactPerson contact = getContactPerson(getContactType(contactType)); if (null == contact || null == contact.getSurName()) { return null; } return contact.getSurName().getName(); }
fullName.append(surName.getName()).append(" ");