/** * parsed an attribute of an element * * @param the element name * @param the attribute name * @param the attribute value * @return true if the attribute was processed */ protected boolean setAttributeValue( XMLElement elementName, XMLElement attributeName, String value) { RuntimeDescriptor descriptor = (RuntimeDescriptor) getRuntimeDescriptor(); if (descriptor == null) { throw new RuntimeException("Trying to set values on a null descriptor"); } if (attributeName.getQName().equals(RuntimeTagNames.NAME)) { descriptor.setAttributeValue(WebProperty.NAME, value); return true; } else if (attributeName.getQName().equals(RuntimeTagNames.VALUE)) { descriptor.setAttributeValue(WebProperty.VALUE, value); return true; } return false; }
/** * parsed an attribute of an element * * @param elementName the element name * @param attributeName the attribute name * @param value the attribute value * @return true if the attribute was processed */ @Override protected boolean setAttributeValue( XMLElement elementName, XMLElement attributeName, String value) { RuntimeDescriptor descriptor = getDescriptor(); if (attributeName.getQName().equals(RuntimeTagNames.EXTRA_CLASS_PATH)) { descriptor.setAttributeValue(ClassLoader.EXTRA_CLASS_PATH, value); return true; } else if (attributeName.getQName().equals(RuntimeTagNames.DELEGATE)) { descriptor.setAttributeValue(ClassLoader.DELEGATE, value); return true; } else if (attributeName.getQName().equals(RuntimeTagNames.DYNAMIC_RELOAD_INTERVAL)) { descriptor.setAttributeValue(ClassLoader.DYNAMIC_RELOAD_INTERVAL, value); return true; } return false; }