protected HashMap loadNameValuePairs(XMLElement xml) { HashMap result = new HashMap(); XMLElement child = (XMLElement) xml.getChildren().get(0); if (child != null && PARAMETERS.equals(child.getName())) { for (Iterator i = child.enumerateAttributeNames(); i.hasNext(); ) { String name = (String) i.next(); result.put(name, child.getStringAttribute(name)); } } return result; }
static Condition load(XMLElement element) { return new AttributeNotExistsCondition(element.getStringAttribute(ATTRIBUTE)); }