[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
Platform: PC



 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
LeafrefType.getPathStatement()



 Comments   
Comment by Martin Vitez [ 01/Apr/14 ]

Proposed patch:

https://git.opendaylight.org/gerrit/#/c/5132/

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.

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