Node createChild(String child_name, String fqn, Node parent, String key, Object value) { Node child=null; if(child_name == null) return null; if(children == null) children=new TreeMap<>(); child=children.get(child_name); if(child != null) child.setData(key, value); else { child=new Node(child_name, fqn, parent, key, value); children.put(child_name, child); } return child; }
Node createChild(String child_name, String fqn, Node parent, HashMap<String,Object> data) { Node child=null; if(child_name == null) return null; if(children == null) children=new TreeMap<>(); child=children.get(child_name); if(child != null) child.setData(data); else { child=new Node(child_name, fqn, parent, data); children.put(child_name, child); } return child; }
Node createChild(String child_name, String fqn, Node parent, String key, Object value) { Node child=null; if(child_name == null) return null; if(children == null) children=new TreeMap<>(); child=children.get(child_name); if(child != null) child.setData(key, value); else { child=new Node(child_name, fqn, parent, key, value); children.put(child_name, child); } return child; }
public void _put(String fqn, String key, Object value) { Node n; StringHolder child_name=new StringHolder(); boolean child_exists=false; if(fqn == null || key == null || value == null) return; n=findParentNode(fqn, child_name, true); if(child_name.getValue() != null) { child_exists=n.childExists(child_name.getValue()); n.createChild(child_name.getValue(), fqn, n, key, value); } else { child_exists=true; n.setData(key, value); } if(child_exists) notifyNodeModified(fqn); else notifyNodeAdded(fqn); }
public void _put(String fqn, HashMap data) { Node n; StringHolder child_name=new StringHolder(); boolean child_exists=false; if(fqn == null) return; n=findParentNode(fqn, child_name, true); // create all nodes if they don't exist if(child_name.getValue() != null) { child_exists=n.childExists(child_name.getValue()); n.createChild(child_name.getValue(), fqn, n, data); } else { child_exists=true; n.setData(data); } if(child_exists) notifyNodeModified(fqn); else notifyNodeAdded(fqn); }
public void _put(String fqn, HashMap data) { Node n; StringHolder child_name=new StringHolder(); boolean child_exists=false; if(fqn == null) return; n=findParentNode(fqn, child_name, true); // create all nodes if they don't exist if(child_name.getValue() != null) { child_exists=n.childExists(child_name.getValue()); n.createChild(child_name.getValue(), fqn, n, data); } else { child_exists=true; n.setData(data); } if(child_exists) notifyNodeModified(fqn); else notifyNodeAdded(fqn); }
public void _put(String fqn, String key, Object value) { Node n; StringHolder child_name=new StringHolder(); boolean child_exists=false; if(fqn == null || key == null || value == null) return; n=findParentNode(fqn, child_name, true); if(child_name.getValue() != null) { child_exists=n.childExists(child_name.getValue()); n.createChild(child_name.getValue(), fqn, n, key, value); } else { child_exists=true; n.setData(key, value); } if(child_exists) notifyNodeModified(fqn); else notifyNodeAdded(fqn); }
Node createChild(String child_name, String fqn, Node parent, String key, Object value) { Node child=null; if(child_name == null) return null; if(children == null) children=new TreeMap(); child=(Node)children.get(child_name); if(child != null) child.setData(key, value); else { child=new Node(child_name, fqn, parent, key, value); children.put(child_name, child); } return child; }
Node createChild(String child_name, String fqn, Node parent, HashMap data) { Node child=null; if(child_name == null) return null; if(children == null) children=new TreeMap(); child=(Node)children.get(child_name); if(child != null) child.setData(data); else { child=new Node(child_name, fqn, parent, data); children.put(child_name, child); } return child; }
Node createChild(String child_name, String fqn, Node parent, HashMap<String,Object> data) { Node child=null; if(child_name == null) return null; if(children == null) children=new TreeMap<>(); child=children.get(child_name); if(child != null) child.setData(data); else { child=new Node(child_name, fqn, parent, data); children.put(child_name, child); } return child; }
public void _put(String fqn, HashMap data) { Node n; StringHolder child_name=new StringHolder(); boolean child_exists=false; if(fqn == null) return; n=findParentNode(fqn, child_name, true); // create all nodes if they don't exist if(child_name.getValue() != null) { child_exists=n.childExists(child_name.getValue()); n.createChild(child_name.getValue(), fqn, n, data); } else { child_exists=true; n.setData(data); } if(child_exists) notifyNodeModified(fqn); else notifyNodeAdded(fqn); }
public void _put(String fqn, String key, Object value) { Node n; StringHolder child_name=new StringHolder(); boolean child_exists=false; if(fqn == null || key == null || value == null) return; n=findParentNode(fqn, child_name, true); if(child_name.getValue() != null) { child_exists=n.childExists(child_name.getValue()); n.createChild(child_name.getValue(), fqn, n, key, value); } else { child_exists=true; n.setData(key, value); } if(child_exists) notifyNodeModified(fqn); else notifyNodeAdded(fqn); }