*
* @param element the xml element
* @param value it's associated value
*/
public void setElementValue(XMLElement element, String value) {
SecurityRoleAssignment sra = (SecurityRoleAssignment) getDescriptor();
if (RuntimeTagNames.ROLE_NAME.equals(element.getQName())) {
sra.setRoleName(value);
} else if (RuntimeTagNames.PRINCIPAL_NAME.equals(element.getQName())) {
sra.addPrincipalName(value);
} else if (RuntimeTagNames.EXTERNALLY_DEFINED.equals(element.getQName())) {
sra.setExternallyDefined();
} else {
super.setElementValue(element, value);
}
}