public void Add(IQueryNode child) { if (IsLeaf || this.clauses == null || child == null) { throw new ArgumentException(NLS .GetLocalizedMessage(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED)); } this.clauses.Add(child); ((QueryNode)child).SetParent(this); }
public void Add(IList <IQueryNode> children) { if (IsLeaf || this.clauses == null) { throw new ArgumentException(NLS .GetLocalizedMessage(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED)); } foreach (IQueryNode child in children) { Add(child); } }