Rename CaseNodeCodecContext.Prototype
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / mdsal / binding / dom / codec / impl / CaseNodeCodecContext.java
index 69c94c6a93f07c14bf7356a07da27cb973a6e146..6d15c2077049ac5a35240168560e87b5684503b1 100644 (file)
@@ -14,23 +14,11 @@ import org.opendaylight.mdsal.binding.runtime.api.CaseRuntimeType;
 import org.opendaylight.yangtools.yang.binding.DataObject;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier.PathArgument;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
-import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
 import org.opendaylight.yangtools.yang.data.api.schema.ChoiceNode;
 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
 
 final class CaseNodeCodecContext<D extends DataObject> extends DataObjectCodecContext<D, CaseRuntimeType> {
-    static final class Prototype extends DataObjectCodecPrototype<CaseRuntimeType> {
-        Prototype(final Class<?> cls, final CaseRuntimeType type, final CodecContextFactory factory) {
-            super(cls, NodeIdentifier.create(type.statement().argument()), type, factory);
-        }
-
-        @Override
-        DataContainerCodecContext<?, CaseRuntimeType> createInstance() {
-            return new CaseNodeCodecContext<>(this);
-        }
-    }
-
-    private CaseNodeCodecContext(final Prototype prototype) {
+    CaseNodeCodecContext(final CaseCodecPrototype prototype) {
         super(prototype, CodecItemFactory.of(prototype.getBindingClass()));
     }