[YANGTOOLS-58] Add method getReferencedSchemaNode() to LeafrefType Created: 27/Nov/13 Updated: 10/Apr/22 Resolved: 18/Mar/15 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Christopher Hartley | Assignee: | Tony Tkacik |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Windows |
||
| Description |
|
Add new method getPathNode() {or similar name}which returns a DataSchemaNode {parent of LeafSchemaNode and LeafListSchemaNode}. LeafrefType.getPathNode() will return the node referred to in |
| Comments |
| Comment by Martin Vitez [ 01/Apr/14 ] |
|
Proposed patch: |
| Comment by Tony Tkacik [ 01/Dec/14 ] |
|
This method is useful for proper implementation of leafref resolving and validating. |
| Comment by Tony Tkacik [ 18/Mar/15 ] |
|
SchemaContextUtil.getBaseTypeForLeafRef provides requested functionality. |