Fix GeneratorReactor.mapToGenerator() 94/97394/16
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 5 Sep 2021 22:48:00 +0000 (00:48 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 14 Oct 2021 18:11:41 +0000 (20:11 +0200)
commit73f9223a21ad3c7f42290af10f793723f5d10784
tree5aafba06370599310e40ea0f3bcf4d7934ad7921
parentb012a9b76f2a6d5cf8de094a5de4fc18607b49e7
Fix GeneratorReactor.mapToGenerator()

GeneratorReactor.mapToGenerator() relies on EffectiveStatements having
an identity, as it looks up only based on statement.

Rework the logic to operate on SchemaInferenceStack's state, which
provides hierarchical path which should match Generator layout. This
turns out to be a simple delegator job, but we need to switch matching
strategies when we go along the grouping or augment axis.

JIRA: MDSAL-694
Change-Id: Id87c54fdfc2ff37cdf44503e0603074a74c1c02c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/generator/impl/reactor/AbstractCompositeGenerator.java
binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/generator/impl/reactor/Generator.java
binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/generator/impl/reactor/GeneratorReactor.java
binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/generator/impl/reactor/MatchStrategy.java [new file with mode: 0644]