[YANGTOOLS-1472] Add data.api.schema.NormalizedYangData Created: 16/Dec/22  Updated: 21/Jun/23  Resolved: 21/Jun/23

Status: Resolved
Project: yangtools
Component/s: data-api
Affects Version/s: None
Fix Version/s: 11.0.0

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

Issue Links:
Blocks
blocks MDSAL-805 Bridge RFC8040 yang-data to Normalize... Confirmed
Epic Link: Subscribed notifications

 Description   

rc:yang-data extension, as delivered in YANGTOOLS-1443, requires a yang.data.api representation. Unlike all previous bits of data, this cannot be identified by a PathArgument, because the identifier is a plain String, hence we cannot reliably form a QName.

We really want something like this:

public interface NormalizedYangData extends DataContainerNode, Identifiable<YangDataName> {
    // The single element as per spec
    DataContainerChild child();

    @Override
    default Set<DataContainerChild> body() {
        return ImmutableSet.of(child());
    }
}
 

For this to happen we need to disconnect DataContainerNode from Identifiable<PathArgument> and also have to figure out what to do about NormalizationResult, as that carries a NormalizedNode as the data component, whereas we want to hold either a NormalizedYangData.


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