public void setNumber(List<TNumber> list) { this._number_.clear(); this._number_.addAll(list); for (TNumber e : list) { if (e.parent() != null) { e.parent().removeChild(e); } e.parent(this); } }
public void setNumber(TNumber node) { if (this._number_ != null) { this._number_.parent(null); } if (node != null) { if (node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } this._number_ = node; }