Add support for odl-pretty-print
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / legacy / QueryParameters.java
index 52a72c8cbbcf0e19c196514609ae2f9858c39f8a..e30b18b44e5e9e01e779f5e4437ee26f89fe5430 100644 (file)
@@ -15,6 +15,7 @@ import java.util.Set;
 import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.jdt.annotation.Nullable;
 import org.opendaylight.restconf.nb.rfc8040.DepthParam;
+import org.opendaylight.restconf.nb.rfc8040.PrettyPrintParam;
 import org.opendaylight.restconf.nb.rfc8040.ReadDataParams;
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
@@ -65,6 +66,9 @@ public final class QueryParameters {
         return params.depth();
     }
 
+    public @Nullable PrettyPrintParam prettyPrint() {
+        return params.prettyPrint();
+    }
 
     public @Nullable List<Set<QName>> fields() {
         return fields;
@@ -73,8 +77,4 @@ public final class QueryParameters {
     public @Nullable List<YangInstanceIdentifier> fieldPaths() {
         return fieldPaths;
     }
-
-    public boolean prettyPrint() {
-        return params.prettyPrint();
-    }
 }