Move WriterParameters.tagged
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / legacy / QueryParameters.java
index 7fa4deb822cdcb5c93136660f29143b3d3259525..220d5ff383f6cc6232cc80ae38c40fcee1b26b02 100644 (file)
@@ -24,6 +24,7 @@ public final class QueryParameters extends WriterParameters {
         private List<YangInstanceIdentifier> fieldPaths;
         private List<Set<QName>> fields;
         private String withDefault;
+        private boolean tagged;
         private String content;
 
         Builder() {
@@ -45,6 +46,11 @@ public final class QueryParameters extends WriterParameters {
             return this;
         }
 
+        public Builder setTagged(final boolean tagged) {
+            this.tagged = tagged;
+            return this;
+        }
+
         public Builder setWithDefault(final String withDefault) {
             this.withDefault = withDefault;
             return this;
@@ -61,6 +67,7 @@ public final class QueryParameters extends WriterParameters {
     private final List<YangInstanceIdentifier> fieldPaths;
     private final List<Set<QName>> fields;
     private final String withDefault;
+    private final boolean tagged;
     private final String content;
 
     private QueryParameters(final Builder builder) {
@@ -68,6 +75,7 @@ public final class QueryParameters extends WriterParameters {
         content = builder.content;
         fields = builder.fields;
         fieldPaths = builder.fieldPaths;
+        tagged = builder.tagged;
         withDefault = builder.withDefault;
     }
 
@@ -94,4 +102,8 @@ public final class QueryParameters extends WriterParameters {
     public String getWithDefault() {
         return withDefault;
     }
+
+    public boolean isTagged() {
+        return tagged;
+    }
 }