/// <summary>Constructor</summary> /// <param name="parentNode">the node which children shall be iterated.</param> /// <param name="parentPath">the full path of the former node without the leaf node.</param> public NodeIteratorChildren(XMPIteratorImpl _enclosing, XMPNode parentNode, string parentPath) : base(_enclosing) { this._enclosing = _enclosing; if (parentNode.GetOptions().IsSchemaNode()) { this._enclosing.SetBaseNS(parentNode.GetName()); } this.parentPath = this.AccumulatePath(parentNode, parentPath, 1); this.childrenIterator = parentNode.IterateChildren(); }
/// <summary>Constructor for the node iterator.</summary> /// <param name="visitedNode">the currently visited node</param> /// <param name="parentPath">the accumulated path of the node</param> /// <param name="index">the index within the parent node (only for arrays)</param> public NodeIterator(XMPIteratorImpl _enclosing, XMPNode visitedNode, string parentPath, int index) { this._enclosing = _enclosing; // EMPTY this.visitedNode = visitedNode; this.state = XMPIteratorImpl.NodeIterator.IterateNode; if (visitedNode.GetOptions().IsSchemaNode()) { this._enclosing.SetBaseNS(visitedNode.GetName()); } // for all but the root node and schema nodes this.path = this.AccumulatePath(visitedNode, parentPath, index); }
/// <summary>Default constructor</summary> public NodeIterator(XMPIteratorImpl _enclosing) { this._enclosing = _enclosing; }
/// <summary>Constructor</summary> /// <param name="parentNode">the node which children shall be iterated.</param> /// <param name="parentPath">the full path of the former node without the leaf node.</param> public NodeIteratorChildren(XMPIteratorImpl _enclosing, XMPNode parentNode, string parentPath) : base(_enclosing) { this._enclosing = _enclosing; if (parentNode.GetOptions().IsSchemaNode()) { this._enclosing.SetBaseNS(parentNode.GetName()); } this.parentPath = this.AccumulatePath(parentNode, parentPath, 1); this.childrenIterator = parentNode.IterateChildren(); }
/// <summary>Constructor for the node iterator.</summary> /// <param name="visitedNode">the currently visited node</param> /// <param name="parentPath">the accumulated path of the node</param> /// <param name="index">the index within the parent node (only for arrays)</param> public NodeIterator(XMPIteratorImpl _enclosing, XMPNode visitedNode, string parentPath, int index) { this._enclosing = _enclosing; // EMPTY this.visitedNode = visitedNode; this.state = XMPIteratorImpl.NodeIterator.IterateNode; if (visitedNode.GetOptions().IsSchemaNode()) { this._enclosing.SetBaseNS(visitedNode.GetName()); } // for all but the root node and schema nodes this.path = this.AccumulatePath(visitedNode, parentPath, index); }
/// <summary>Default constructor</summary> public NodeIterator(XMPIteratorImpl _enclosing) { this._enclosing = _enclosing; }