[YANGTOOLS-497] yang-data-api: NormalizedNodeStreamWriter extensibility Created: 07/Sep/15  Updated: 10/Apr/22  Resolved: 04/Mar/19

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.0

Type: Improvement
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
blocks YANGTOOLS-960 Update NormalizedNodeStreamWriter int... Resolved

 Description   

NormalizedNodeStreamWriter API interface has a rather unfortunate design flaw, which limits its usability in case of leaf nodes, leafset entry nodes and anyxml nodes, in particular it does not define a window when such nodes are logically 'open' and extension events (specified by other interfaces) may be called.

Design a new interface which will make sure all nodes need to be terminate with a call to endNode. New extension can then work by defining that things like 'emitAttributes' can be called on an open node, without having two sets of methods.


Generated at Wed Feb 07 20:53:25 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.