Add SchemaInferenceStack.effectiveStatus() 32/104132/5
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 25 Jan 2023 04:32:22 +0000 (05:32 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 26 Oct 2023 20:28:12 +0000 (22:28 +0200)
commit384edb753b10971da6bfcb7bfb9bf84b78fb270a
tree0f1c3c184caacc14e48479a5cd1993ecc313467e
parent14971b30a214b9ca9dd6ea638bdf54d0c7a761c2
Add SchemaInferenceStack.effectiveStatus()

EffectiveStatements are lacking the equivalent of
DocumentedNode.WithStatus.getStatus().

This patch introduces a utility method in SchemaInferenceStack, which
acts as a replacement producing results well-defined in
EffectiveStatement world.

JIRA: YANGTOOLS-1272
Change-Id: I1b07d4ab2eb43c62090d526326ac10df901e8bfb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
model/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/SchemaInferenceStack.java
model/yang-model-util/src/test/java/org/opendaylight/yangtools/yang/model/util/SchemaInferenceStackTest.java
model/yang-model-util/src/test/resources/schema-context-util/my-module.yang