Bug fix to add anyxml node.
[ccsdk/sli/plugins.git] / restconf-client / provider / src / main / java / org / onap / ccsdk / sli / plugins / yangserializers / pnserializer / PropertiesNode.java
index bb07382..7e0ad63 100644 (file)
@@ -38,6 +38,7 @@ public abstract class PropertiesNode {
     private PropertiesNode parent;
     private Object appInfo;
     private NodeType nodeType;
+    private boolean nonAppend;
     private Multimap<Object, PropertiesNode> augmentations = ArrayListMultimap.create();
 
     /**
@@ -106,6 +107,16 @@ public abstract class PropertiesNode {
         this.appInfo = appInfo;
     }
 
+    /**
+     * Sets to true if module name is required in forming a request; false
+     * otherwise.
+     *
+     * @param isNotReq true if required; false otherwise
+     */
+    public void nonAppend(boolean isNotReq) {
+        this.nonAppend = isNotReq;
+    }
+
     /**
      * Returns parent.
      *
@@ -160,6 +171,15 @@ public abstract class PropertiesNode {
         return nodeType;
     }
 
+    /**
+     * Returns if module name is required.
+     *
+     * @return status of module name if required
+     */
+    public boolean nonAppend() {
+        return nonAppend;
+    }
+
     /**
      * Returns augmentations.
      *