Visitor.write empty attributes
Brought to you by:
niallg
Hi there.
I'm trying to do like this during serialization with Visitor:
public void write(Type type, NodeMap<OutputNode> node) throws Exception {
OutputNode node2 = node.getNode();
NodeMap<OutputNode> attributes = node2.getAttributes();
attributes.put("aaa", "aaa");
attributes.remove("amount");
}
putting works good, but removing is not. Cause is empty attributes, which is added after method call, so I can't remove it, like it said documentation.