Reparent ChoiceCodecContext
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / mdsal / binding / dom / codec / impl / AugmentationCodecPrototype.java
index 9022c39744036928db0a50aa07f75150f4c32811..dccf09ae3ca6f02174d0c9020c80e7639a2a35cd 100644 (file)
@@ -14,27 +14,26 @@ import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.mdsal.binding.runtime.api.AugmentRuntimeType;
 import org.opendaylight.yangtools.yang.binding.DataObject;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier.Item;
-import org.opendaylight.yangtools.yang.common.QNameModule;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
 
-final class AugmentationCodecPrototype extends DataContainerCodecPrototype<AugmentRuntimeType> {
+final class AugmentationCodecPrototype extends CommonDataObjectCodecPrototype<AugmentRuntimeType> {
     private final @NonNull ImmutableSet<NodeIdentifier> childArgs;
 
     @SuppressWarnings("unchecked")
-    AugmentationCodecPrototype(final Class<?> cls, final QNameModule namespace, final AugmentRuntimeType type,
-            final CodecContextFactory factory, final ImmutableSet<NodeIdentifier> childArgs) {
-        super(Item.of((Class<? extends DataObject>) cls), namespace, type, factory);
+    AugmentationCodecPrototype(final Class<?> cls, final AugmentRuntimeType type, final CodecContextFactory factory,
+            final ImmutableSet<NodeIdentifier> childArgs) {
+        super(Item.of((Class<? extends DataObject>) cls), type, factory);
         this.childArgs = requireNonNull(childArgs);
     }
 
     @Override
-    NodeIdentifier getYangArg() {
+    NodeIdentifier yangArg() {
         throw new UnsupportedOperationException("Augmentation does not have PathArgument address");
     }
 
     @Override
-    AugmentationNodeContext<?> createInstance() {
-        return new AugmentationNodeContext<>(this);
+    AugmentationCodecContext<?> createInstance() {
+        return new AugmentationCodecContext<>(this);
     }
 
     // Guaranteed to be non-empty