Retain grouping/uses instantiation vectors
Description
Activity
Show:

Robert Varga June 15, 2021 at 11:48 PM
Done
Details
Details
Assignee

Reporter

Labels
Components
Fix versions
Priority
Created June 15, 2021 at 11:15 PM
Updated December 19, 2023 at 10:11 AM
Resolved December 19, 2023 at 10:11 AM
binding-dom-codec requires information about grouping instantiation within an instance of BindingRuntimeTypes to make leafref mapping predictable.
If can have the equivalent of
BindingRuntimeTypes { private final ListMultimap<JavaTypeName, JavaTypeName> groupingToInstantiation; }
populated for each encountered grouping, we can find the corresponding leafref resolution information available via the footprint left by AbstractTypeObjectGenerator.addAsGetterMethodOverride() in GeneratedType. Backreferences stored here should point to instantiation roots, i.e. where a uses statement causes a grouping (and all its referenced grouping) to be referenced when the corresponding SchemaInferenceStack.isGrouping() == false. The footprint can be examined by inquiring GeneratedType.getImplements() type hierarchy.