use of de.pdark.decentxml.Attribute in project sling by apache.
the class ModifiableProperties method setNode.
public void setNode(GenericJcrRootFile genericJcrRootFile, Element domNode) {
this.domElement = domNode;
final List<Attribute> attributes = domNode.getAttributes();
if (attributes != null) {
for (Attribute attribute : attributes) {
final String name = attribute.getName();
if (name.startsWith("xmlns:")) {
continue;
}
properties.put(name, attribute.getValue());
propertiesOrder.add(name);
}
}
this.genericJcrRootFile = genericJcrRootFile;
}
Aggregations