[YANGTOOLS-422] ImmutableMapEntryNodeBuilder should fill leafNodes Created: 17/Mar/15  Updated: 10/Apr/22  Resolved: 26/Mar/15

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

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



 Description   

We are using NodeIdentifierWithPredicates to check if leaves have correct values. This forces our users to do quite a bit of boilerplate code to ensure consistency.

Instead of just cross-checking, be proactive and fill out the leaves based on the key as soon as the identifier is set. Be careful not to make changes if the leaves are already present with correct values.



 Comments   
Comment by Robert Varga [ 17/Mar/15 ]

Actually, after further analysis, it may be a better idea to perform the completion lazily in the build() method and append leaves only if they are missing – and emit a message at debug level.

Comment by Robert Varga [ 22/Mar/15 ]

https://git.opendaylight.org/gerrit/16947
https://git.opendaylight.org/gerrit/16948

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