Add StatementDeclaration 32/109632/8
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 4 Jan 2024 15:41:46 +0000 (16:41 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 4 Jan 2024 16:56:32 +0000 (17:56 +0100)
commit89d9614350831bbba8e13475fc1a15567aa1ec5b
tree88ec823e53b2897ac87bd0322553b45413863b15
parent3abebd47e1c34b16b1ae8c596c1d2959bb8f096f
Add StatementDeclaration

We have only StatementInText capturing
StatementSourceReference+DeclarationReference. Add an explicit class to
hold this combination at model.api.meta level.

Also pull in the implementation of toHumanReadable() and add the
appropriate hooks.

JIRA: YANGTOOLS-1150
Change-Id: Ia6685a1a8d0d48ad12d223eefada2a2c527cb944
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
model/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/meta/StatementDeclaration.java [new file with mode: 0644]
parser/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/source/ExplicitStatement.java