Allow emission of operation input/output 79/111279/5
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 5 Apr 2024 09:49:23 +0000 (11:49 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 5 Apr 2024 13:21:23 +0000 (15:21 +0200)
commit8f5f0782ffb25f903946d23816b199bdfb41fcda
tree128ef686ab3ecdb3fe8a6a941302d5a82e4c6d6e
parent6eca72fb39e7151fd6b3c3f4108c41cd809ae713
Allow emission of operation input/output

Both XML and JSON codecs should be in a place where they can emit
RPC/action input/outputs -- except NormalizedNodeStreamWriterStack
cannot initialize there.

Rework NormalizedNodeStreamWriterStack internal tracking to work on
EffectiveStatements and lift this restriction.

JIRA: YANGTOOLS-1570
Change-Id: If45bb096ee30cc35bf2a40ec26e12217f71ca06c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
codec/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/JSONNormalizedNodeStreamWriter.java
codec/yang-data-codec-gson/src/test/java/org/opendaylight/yangtools/yang/data/codec/gson/YT1570Test.java [new file with mode: 0644]
codec/yang-data-codec-xml/src/main/java/org/opendaylight/yangtools/yang/data/codec/xml/SchemaAwareXMLStreamNormalizedNodeStreamWriter.java
codec/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/YT1570Test.java [new file with mode: 0644]
data/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/NormalizedNodeStreamWriterStack.java