[YANGTOOLS-1120] Implement DocumentedNode methods in terms of EffectiveStatement Created: 03/Jul/20  Updated: 05/Jan/24

Status: Confirmed
Project: yangtools
Component/s: parser
Affects Version/s: None
Fix Version/s: 14.0.0

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Remove DocumentedNode

 Description   

Most of DocumentedNode/SchemaNode methods can be implemented in terms of EffectiveStatement lookup. Provide default implementations which defer to the EffectiveStatement view provided by YANGTOOLS-1119. We already have the interfaces to achieve these in yang.model.spi.EffectiveStatementMixins.

Most of them (except the withFlags() stuff) needs to be migrated to yang.model.api. There they need to be tied with EffectiveStatementEquivalent and then integrated into individual SchemaNode definitions.



 Comments   
Comment by Robert Varga [ 05/Oct/20 ]

The first iteration take care of only statement-specific methods. We will have a later follow-up to deal with common methods.

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