Hide NormalizedNodeContext and WriterParameters
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / netconf / sal / rest / impl / WriterParameters.java
diff --git a/restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/rest/impl/WriterParameters.java b/restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/rest/impl/WriterParameters.java
new file mode 100644 (file)
index 0000000..1ad6985
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+ * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.netconf.sal.rest.impl;
+
+@Deprecated(forRemoval = true, since = "2.0.6")
+public final class WriterParameters {
+    static final WriterParameters EMPTY = new WriterParametersBuilder().build();
+
+    private final Integer depth;
+    private final boolean prettyPrint;
+
+    private WriterParameters(final WriterParametersBuilder builder) {
+        depth = builder.depth;
+        prettyPrint = builder.prettyPrint;
+    }
+
+    public Integer getDepth() {
+        return depth;
+    }
+
+    public boolean isPrettyPrint() {
+        return prettyPrint;
+    }
+
+    @Deprecated(forRemoval = true, since = "2.0.6")
+    public static final class WriterParametersBuilder {
+        private Integer depth;
+        private boolean prettyPrint;
+
+        public WriterParametersBuilder setDepth(final int depth) {
+            this.depth = depth;
+            return this;
+        }
+
+        public WriterParametersBuilder setPrettyPrint(final boolean prettyPrint) {
+            this.prettyPrint = prettyPrint;
+            return this;
+        }
+
+        public WriterParameters build() {
+            return new WriterParameters(this);
+        }
+    }
+}