Hide DataContainerCodecContext.getType()
[yangtools.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / mdsal / binding / dom / codec / impl / DataContainerCodecContext.java
index 342c5cc12890a0bee2df77fa5cb3a5113971f247..2c37161b9a6aaba157418b57ea39206214978517 100644 (file)
@@ -80,10 +80,6 @@ abstract sealed class DataContainerCodecContext<D extends DataObject, T extends
         this.prototype = requireNonNull(prototype);
     }
 
-    public final @NonNull T getType() {
-        return prototype.getType();
-    }
-
     @Override
     public final ChildAddressabilitySummary getChildAddressabilitySummary() {
         return prototype.getChildAddressabilitySummary();
@@ -97,6 +93,10 @@ abstract sealed class DataContainerCodecContext<D extends DataObject, T extends
         return prototype.getFactory();
     }
 
+    protected final @NonNull T type() {
+        return prototype.getType();
+    }
+
     @Override
     protected NodeIdentifier getDomPathArgument() {
         return prototype.getYangArg();