@Override
protected boolean setAttributeValue(XMLElement elementName,
XMLElement attributeName,
String value) {
Valve descriptor = (Valve) getRuntimeDescriptor();
if (descriptor == null) {
throw new RuntimeException("Trying to set values on a null descriptor");
}
if (attributeName.getQName().equals(RuntimeTagNames.NAME)) {
descriptor.setAttributeValue(Valve.NAME, value);
return true;
} else if (attributeName.getQName().equals(RuntimeTagNames.CLASS_NAME)) {
descriptor.setAttributeValue(Valve.CLASS_NAME, value);
return true;
}
return false;
}