Class TreeNodeFactory
java.lang.Object
org.openpdf.rups.model.TreeNodeFactory
A factory that creates TreeNode objects corresponding with PDF objects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ArrayList<PdfObjectTreeNode> An list containing the nodes of every indirect object.protected IndirectObjectFactoryThe factory that can produce all indirect objects. -
Constructor Summary
ConstructorsConstructorDescriptionTreeNodeFactory(IndirectObjectFactory objects) Creates a factory that can produce TreeNode objects corresponding with PDF objects. -
Method Summary
Modifier and TypeMethodDescriptionvoidexpandNode(PdfObjectTreeNode node) Creates the Child TreeNode objects for a PDF object TreeNode.getChildNode(PdfObjectTreeNode node, PdfName key) Finds a specific child of dictionary node.getNode(int ref) Gets a TreeNode for an indirect objects.
-
Field Details
-
objects
The factory that can produce all indirect objects. -
nodes
An list containing the nodes of every indirect object.
-
-
Constructor Details
-
TreeNodeFactory
Creates a factory that can produce TreeNode objects corresponding with PDF objects.- Parameters:
objects- a factory that can produce all the indirect objects of a PDF file.
-
-
Method Details
-
getNode
Gets a TreeNode for an indirect objects.- Parameters:
ref- the reference number of the indirect object.- Returns:
- the TreeNode representing the PDF object
-
expandNode
Creates the Child TreeNode objects for a PDF object TreeNode.- Parameters:
node- the parent node
-
getChildNode
Finds a specific child of dictionary node.- Parameters:
node- the node with a dictionary among its childrenkey- the key of the item corresponding with the node we need- Returns:
- the PdfObjectTreeNode that is the child of the dictionary node
-