[YANGTOOLS-1098] Remove references to SchemaNode.getPath() in TypeDefinitions Created: 17/Apr/20 Updated: 10/Apr/22 Resolved: 01/Oct/20 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.0 |
| Type: | Task | Priority: | High |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Epic Link: | Get rid of SchemaNode.getPath() | ||||||||||||
| Description |
|
TypeDefinition hashCode/equality is defined in terms of utility methods. These currently rely on the definition's SchemaPath. Redefine these methods to refer only to the type's QName instead. |
| Comments |
| Comment by Robert Varga [ 17/Apr/20 ] |
|
Non-exhaustive list of methods:
|
| Comment by Robert Varga [ 03/Jul/20 ] |
|
The leitmotiv here is that a TypeDefinition is not a SchemaNode, but rather a DocumentedNode.WithStatus which also happens to have a QName. I think the QName part should be isolated into a separate interface during this. |