[MDSAL-406] Tag generated types with a marker interface Created: 14/Dec/18  Updated: 16/Mar/19  Resolved: 16/Mar/19

Status: Resolved
Project: mdsal
Component/s: Binding codegen
Affects Version/s: None
Fix Version/s: 4.0.0, 3.0.7

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Jie Han
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
blocks MDSAL-407 Teach BindingNormalizedNodeCache to c... Resolved

 Description   

When we are generating a derived type, either as part of a leaf definition or a typedef, there is no marker interface identifying the fact that the type has a relationship with binding. This leads to our inability to provide services for such types in a type-safe manner.

Define a suitable yang-binding marker interface and make sure all GeneratedTypes carry it. Since GeneratedType is a superclass of GeneratedTransferObject, we need to make sure this tag is applied only to types which are not DataObjects – the reasoning being that DataObjects and these wrappers have different needs.

Also consider a 'BindingObject' type of interface, which would serve as the base for DataObject and this tagging interface.


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