public void BuildBranch(string name) { JSONBranch branch = new JSONBranch(name, false, currentBranch); currentBranch.AddChild(branch); currentBranch = branch; }
public JSONLeaf(string name, string content, JSONBranch parent) { _name = name; _content = content; _parent = parent; }
public JSONBuilder() { root = new JSONBranch("root", true, null); root.SetParent(root); currentBranch = root; }
public void CloseBranch() { currentBranch = currentBranch.GetParent(); }
public void SetParent(JSONBranch parent) { _parent = parent; }
public JSONBranch(string name, bool isRoot, JSONBranch parent) { _name = name; _isRoot = isRoot; _parent = parent; }