Separate out DataContainerPrototype
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / mdsal / binding / dom / codec / impl / CommonDataObjectCodecContext.java
index 5c5fa04e63a9ee763bf1d9088375efaade44ac9d..cae761a9bb2db286a26641e80c73ac7e291fb065 100644 (file)
@@ -26,24 +26,24 @@ abstract sealed class CommonDataObjectCodecContext<D extends DataObject, T exten
     final @NonNull CommonDataObjectCodecPrototype<T> prototype;
 
     CommonDataObjectCodecContext(final CommonDataObjectCodecPrototype<T> prototype) {
-        super(prototype.getType());
+        super(prototype.runtimeType());
         this.prototype = requireNonNull(prototype);
     }
 
     @SuppressWarnings("unchecked")
     @Override
     public final Class<D> getBindingClass() {
-        return Class.class.cast(prototype.getBindingClass());
+        return Class.class.cast(prototype.javaClass());
     }
 
     @Override
     protected final CodecContextFactory factory() {
-        return prototype.getFactory();
+        return prototype.contextFactory();
     }
 
     @Override
     protected final T type() {
-        return prototype.getType();
+        return prototype.runtimeType();
     }
 
     @Override