X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=binding%2Fmdsal-binding-dom-codec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fmdsal%2Fbinding%2Fdom%2Fcodec%2Fimpl%2FValueNodeCodecContext.java;h=311ec98e9cd3964d03a4ea4d2d916b282a220ea1;hb=74ef67db283874e6024413355267120c77a6095c;hp=13b4406f1cb2df0efc30a4878d7404ca4b549554;hpb=d9a219f471cbb1228ccb1f8e63b0e06aeb37f201;p=mdsal.git diff --git a/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/ValueNodeCodecContext.java b/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/ValueNodeCodecContext.java index 13b4406f1c..311ec98e9c 100644 --- a/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/ValueNodeCodecContext.java +++ b/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/ValueNodeCodecContext.java @@ -17,8 +17,10 @@ import org.opendaylight.yangtools.yang.model.api.DataSchemaNode; * Abstract base class for atomic nodes. These are nodes which are not decomposed in the Binding Specification, such * as LeafNodes and LeafSetNodes. */ -abstract class ValueNodeCodecContext extends NodeCodecContext implements NodeContextSupplier { - abstract static class WithCodec extends ValueNodeCodecContext { +abstract sealed class ValueNodeCodecContext extends CodecContext implements CodecContextSupplier + permits AbstractOpaqueCodecContext, ValueNodeCodecContext.WithCodec { + abstract static sealed class WithCodec extends ValueNodeCodecContext + permits LeafNodeCodecContext, LeafSetNodeCodecContext { private final @NonNull ValueCodec valueCodec; WithCodec(final DataSchemaNode schema, final ValueCodec codec, final String getterName, @@ -51,7 +53,7 @@ abstract class ValueNodeCodecContext extends NodeCodecContext implements NodeCon } @Override - public final NodeCodecContext get() { + public final CodecContext getCodecContext() { return this; }