Implementation of a DOM attribute in context of Shared XML Editing XEP-0284 (SXE).
Respectively it extends the {@link NodeRecord} functionality by a chdataattribute.
40414243444546474849505152
@Override public boolean remove(Object o) { if (!(o instanceof AttributeRecord)) return false; AttributeRecord toRemove = (AttributeRecord) o; if (super.remove(toRemove)) { map.remove(toRemove.getName()); return true; } return false; }
5051525354555657585960
} return false; } public AttributeRecord remove(String key) { AttributeRecord toRemove = map.remove(key); if (toRemove == null) return null; super.remove(toRemove); return toRemove; }
4142434445464748495051525354
String ns = getString(RecordEntry.NS); switch (nodeType) { case ATTR: String chdata = getString(RecordEntry.CHDATA); AttributeRecord attribute = factory.createAttributeRecord(document, ns, name, chdata); if (chdata != null) attribute.setChdata(chdata); record = attribute; break; case ELEMENT: if (parentRid == null) record = factory.createRoot(document);