public Group(Group parent) { Parent = parent; this.GroupType = GroupType.None; Occurrence = Occurrence.Required; this.members = new ArrayList(); this.symbols = new Set<string>(); }
public void PushGroup() { Model = new Group(Model); CurrentDepth++; }
public ContentModel() { Model = new Group(null); }
public int PopGroup() { if (CurrentDepth == 0) { return -1; } CurrentDepth--; Model.Parent.AddGroup(Model); Model = Model.Parent; return CurrentDepth; }
public void AddGroup(Group g) { this.members.Add(g); }