C# Class iTextSharp.xmp.impl.XmpIteratorImpl.NodeIterator

The XMPIterator implementation. It first returns the node itself, then recursivly the children and qualifier of the node. @since 29.06.2006
Inheritance: IEnumerator
Datei anzeigen Open project: nonorganic/dssnet

Public Methods

Method Description
MoveNext ( ) : bool

Prepares the next node to return if not already done.

NodeIterator ( XmpIteratorImpl outerInstance, XmpNode visitedNode, string parentPath, int index ) : System

Constructor for the node iterator.

Reset ( ) : void

Protected Methods

Method Description
AccumulatePath ( XmpNode currNode, string parentPath, int currentIndex ) : string
CreatePropertyInfo ( XmpNode node, string baseNs, string path ) : IXmpPropertyInfo

Creates a property info object from an XMPNode.

ReportNode ( ) : bool

Sets the returnProperty as next item or recurses into hasNext().

Private Methods

Method Description
IterateChildren ( IEnumerator iterator ) : bool

Handles the iteration of the children or qualfier

Method Details

AccumulatePath() protected method

protected AccumulatePath ( XmpNode currNode, string parentPath, int currentIndex ) : string
currNode XmpNode the node that will be added to the path.
parentPath string the path up to this node.
currentIndex int the current array index if an arrey is traversed
return string

CreatePropertyInfo() protected method

Creates a property info object from an XMPNode.
protected CreatePropertyInfo ( XmpNode node, string baseNs, string path ) : IXmpPropertyInfo
node XmpNode an XMPNode
baseNs string the base namespace to report
path string the full property path
return IXmpPropertyInfo

MoveNext() public method

Prepares the next node to return if not already done.
public MoveNext ( ) : bool
return bool

NodeIterator() public method

Constructor for the node iterator.
public NodeIterator ( XmpIteratorImpl outerInstance, XmpNode visitedNode, string parentPath, int index ) : System
outerInstance XmpIteratorImpl
visitedNode XmpNode the currently visited node
parentPath string the accumulated path of the node
index int the index within the parent node (only for arrays)
return System

ReportNode() protected method

Sets the returnProperty as next item or recurses into hasNext().
protected ReportNode ( ) : bool
return bool

Reset() public method

public Reset ( ) : void
return void