List of usage examples for org.jdom2 AttributeList add
@Override public boolean add(final Attribute attribute)
Attribute
with the same name and Namespace
. From source file:org.jpos.q2.QFactory.java
License:Open Source License
public AttributeList getAttributeList(Element e) throws ConfigurationException { AttributeList attributeList = new AttributeList(); List childs = e.getChildren("attr"); for (Object child : childs) { Element childElement = (Element) child; String name = childElement.getAttributeValue("name"); name = getAttributeName(name);/*from ww w .j a v a 2 s. com*/ Attribute attr = new Attribute(name, getObject(childElement)); attributeList.add(attr); } return attributeList; }