[YANGTOOLS-978] Add support for opaque AnydataNodes Created: 27/Mar/19  Updated: 21/May/19  Resolved: 21/May/19

Status: Resolved
Project: yangtools
Component/s: data-impl
Affects Version/s: None
Fix Version/s: 3.0.1

Type: New Feature Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
is blocked by YANGTOOLS-960 Update NormalizedNodeStreamWriter int... Resolved
Epic Link: Anydata Support

 Description   

In order to transcode anydata nodes we need an extension to NormalizedNodeStreamWriter, which will be provided by the receiver.

As part of the design we need to think about how the individual data formats we know about (XML, JSON, NormalizedNode) will interact on both sides.



 Comments   
Comment by Robert Varga [ 16/May/19 ]

So the way this will need to work to be semi-sane is that AnydataNode is going to have a specialization for each object model and have specific extensions for each. While this is not "perfect", we really expect two object models (Opaque and Normalized), with Opaque having two modes of operation.

All others can easily be retrofitted as extensions/decorators as needed, so that will give us

  • enough footprint to get things done while not introducing huge amount of complexity
  • something workable early on
  • cover use cases as they emerge
Generated at Wed Feb 07 20:54:50 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.