[YANGTOOLS-1205] Refactor IdentifierNamespace Created: 13/Jan/21  Updated: 27/Oct/22  Resolved: 19/Apr/21

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

Type: Improvement 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:
Issue split
split to YANGTOOLS-1459 Do not use Class for IdentifierNamesp... Resolved

 Description   

org.opendaylight.yangtools.yang.model.api.meta.IdentifierNamespace is an interface specifying a get() method, which is not directly implemented anywhere.

The reality is that this interface is not really meant to be instantiated – there are no yang-model-api-level means to acquire an instance of it, as all lookups operate on the .class object instead.

Since the parser internals will be disconnected from this interface with YANGTOOLS-1204, reconsider the overall design of this class. It certainly needs to lose the get() method and it probably should be turned into an abstract class, whose sole constructor will prevent any attempts at instantiation.


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