Propagate WriteDataParams in utilities
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / WriteDataParams.java
index 6004c8b967aebb19ea9c464ca2bee0e84e8084bd..0d70ae422f3a65a9c6617cc6cf0c86e6e62c7992 100644 (file)
@@ -7,6 +7,9 @@
  */
 package org.opendaylight.restconf.nb.rfc8040;
 
+import static com.google.common.base.Verify.verifyNotNull;
+
+import com.google.common.annotations.Beta;
 import com.google.common.base.MoreObjects;
 import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.jdt.annotation.Nullable;
@@ -68,6 +71,12 @@ public final class WriteDataParams implements Immutable {
         return point;
     }
 
+    @Beta
+    // FIXME: it seems callers' structure should be able to cater with just point() and insert()
+    public @NonNull PointParam getPoint() {
+        return verifyNotNull(point);
+    }
+
     @Override
     public String toString() {
         final var helper = MoreObjects.toStringHelper(this).omitNullValues();