[YANGTOOLS-1459] Do not use Class for IdentifierNamespace identification Created: 27/Oct/22  Updated: 28/Oct/22  Resolved: 28/Oct/22

Status: Resolved
Project: yangtools
Component/s: model-api
Affects Version/s: None
Fix Version/s: 10.0.0

Type: Improvement Priority: Medium
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:
Issue split
split from YANGTOOLS-1205 Refactor IdentifierNamespace Resolved

 Description   

The object model for namespaces in yang-model-api is awkward:
1. it requires Map<K, V>, where there are two classes of users: iterators and lookups
2. it requires weird abstract classes and Class<?> objects being passed around
3. it is a universally required, but there are a number of statement classes which do not care about namespaces

Revisit the definitions here, so that we replace access through EffectiveStatement.get(Class<? extends IdentifierNamespace>) by dedicated methods for each namespace.


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