Rework ExtensibleObject interface 06/106006/6
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 16 May 2023 22:38:58 +0000 (00:38 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 17 May 2023 10:34:46 +0000 (12:34 +0200)
commit6349afdfa5c9b21b0af05b2290dc5efe942b2274
tree08ee491dad9d1e097a5478293fc09e2bc0399cd8
parentade2d28ae29e2c8d4be322cc1b3f8a6f0f31dc1c
Rework ExtensibleObject interface

Exposing a simple ClassToInstanceMap() ends up being ugly from caller
perspective. Exposing simple access/enumerator methods has much better
ergonomics.

JIRA: YANGTOOLS-1509
Change-Id: I643e48ee2dabec251357fafe98d5376dc20d09c6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 files changed:
codec/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/JSONNormalizedNodeStreamWriter.java
codec/yang-data-codec-xml/src/main/java/org/opendaylight/yangtools/yang/data/codec/xml/XMLStreamNormalizedNodeStreamWriter.java
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/ExtensibleObject.java
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/ObjectExtensions.java [deleted file]
data/rfc8528-data-util/src/main/java/org/opendaylight/yangtools/rfc8528/data/util/MountPointNormalizedNodeWriter.java
data/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/stream/AbstractIndentingNormalizedNodeStreamWriter.java
data/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/stream/ForwardingNormalizedNodeStreamWriter.java
data/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/stream/NormalizedNodeStreamWriter.java
data/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/ImmutableMetadataNormalizedNodeStreamWriter.java
data/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/ImmutableMountPointNormalizedNodeStreamWriter.java
data/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/AbstractNodeDataWithSchema.java
data/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/MountPointData.java
data/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/NormalizedMetadataWriter.java