[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 |
||
| 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 |