internal Enumerator( NameTree <TValue> nameTree ) { this.nameTree = nameTree; container = nameTree.Container; PdfDictionary rootNode = nameTree.BaseDataObject; PdfDirectObject kidsObject = rootNode[PdfName.Kids]; if (kidsObject == null) // Leaf node. { PdfDirectObject namesObject = rootNode[PdfName.Names]; if (namesObject is PdfReference) { container = ((PdfReference)namesObject).IndirectObject; } names = (PdfArray)File.Resolve(namesObject); } else // Intermediate node. { if (kidsObject is PdfReference) { container = ((PdfReference)kidsObject).IndirectObject; } kids = (PdfArray)File.Resolve(kidsObject); } }
internal ValuesFiller(NameTree <TValue> nameTree) { this.nameTree = nameTree; }