iText 8.0.2 API
|
Class that helps to find two corresponding objects in the compared documents and also keeps track of the already met during comparing process parent indirect objects. More...
Public Member Functions |
|
ObjectPath () | |
Creates empty ObjectPath. More... |
|
ObjectPath (iText.Kernel.Utils.Objectpathitems.ObjectPath objectPath) | |
Creates an ObjectPath object from another ObjectPath object, passed as argument. More... |
|
ObjectPath (PdfIndirectReference baseCmpObject, PdfIndirectReference baseOutObject) | |
Creates CompareObjectPath with corresponding base objects in two documents. More... |
|
ObjectPath (PdfIndirectReference baseCmpObject, PdfIndirectReference baseOutObject, Stack< LocalPathItem > path, Stack< IndirectPathItem > indirects) | |
virtual iText.Kernel.Utils.Objectpathitems.ObjectPath | ResetDirectPath (PdfIndirectReference baseCmpObject, PdfIndirectReference baseOutObject) |
Creates a new ObjectPath instance with two new given base objects, which are supposed to be nested in the base objects of the current instance of the ObjectPath. More... |
|
virtual bool | IsComparing (PdfIndirectReference cmpObject, PdfIndirectReference outObject) |
This method is used to define if given objects were already met in the path to the current base objects. More... |
|
virtual void | PushArrayItemToPath (int index) |
Adds array item to the direct path. More... |
|
virtual void | PushDictItemToPath (PdfName key) |
Adds dictionary item to the direct path. More... |
|
virtual void | PushOffsetToPath (int offset) |
Adds offset item to the direct path. More... |
|
virtual void | Pop () |
Removes the last path item from the direct path. More... |
|
virtual Stack< LocalPathItem > | GetLocalPath () |
Gets local (or direct) path that denotes sequence of the path items from base object to the comparing direct object. More... |
|
virtual Stack< IndirectPathItem > | GetIndirectPath () |
Gets indirect path which denotes sequence of the indirect references that were passed in comparing process to get to the current base objects. More... |
|
virtual PdfIndirectReference | GetBaseCmpObject () |
Method returns current base iText.Kernel.Pdf.PdfIndirectReference object in the cmp document. More... |
|
virtual PdfIndirectReference | GetBaseOutObject () |
Method returns current base iText.Kernel.Pdf.PdfIndirectReference object in the out document. More... |
|
virtual XmlNode | ToXmlNode (XmlDocument document) |
Creates an xml node that describes a direct path stored in this ObjectPath instance. More... |
|
override String | ToString () |
Method returns a string representation of the direct path stored in this ObjectPath instance. More... |
|
override int | GetHashCode () |
Method returns a hash code of this ObjectPath instance. More... |
|
override bool | Equals (Object obj) |
Method returns true if this ObjectPath instance equals to the passed object. More... |
|
Class that helps to find two corresponding objects in the compared documents and also keeps track of the already met during comparing process parent indirect objects.
Class that helps to find two corresponding objects in the compared documents and also keeps track of the already met during comparing process parent indirect objects.
You could say that CompareObjectPath instance consists of two parts: direct path and indirect path. Direct path defines path to the currently comparing objects in relation to base objects. It could be empty, which would mean that currently comparing objects are base objects themselves. Base objects are the two indirect objects from the comparing documents which are in the same position in the pdf trees. Another part, indirect path, defines which indirect objects were met during comparison process to get to the current base objects. Indirect path is needed to avoid infinite loops during comparison.
|
inline |
Creates empty ObjectPath.
|
inline |
Creates an ObjectPath object from another ObjectPath object, passed as argument.
objectPath | an ObjectPath object to create from. |
|
inline |
Creates CompareObjectPath with corresponding base objects in two documents.
baseCmpObject | base object in cmp document. |
baseOutObject | base object in out document. |
|
inline |
Method returns true if this ObjectPath instance equals to the passed object.
|
inlinevirtual |
Method returns current base iText.Kernel.Pdf.PdfIndirectReference object in the cmp document.
|
inlinevirtual |
Method returns current base iText.Kernel.Pdf.PdfIndirectReference object in the out document.
|
inline |
Method returns a hash code of this ObjectPath instance.
|
inlinevirtual |
Gets indirect path which denotes sequence of the indirect references that were passed in comparing process to get to the current base objects.
|
inlinevirtual |
Gets local (or direct) path that denotes sequence of the path items from base object to the comparing direct object.
|
inlinevirtual |
This method is used to define if given objects were already met in the path to the current base objects.
This method is used to define if given objects were already met in the path to the current base objects. If this method returns true it basically means that we found a loop in the objects structure and that we already compared these objects.
cmpObject | cmp object to check if it was already met in base objects path. |
outObject | out object to check if it was already met in base objects path. |
|
inlinevirtual |
Removes the last path item from the direct path.
|
inlinevirtual |
Adds array item to the direct path.
Adds array item to the direct path. See ArrayPathItem.
index | index in the array of the direct object to be compared. |
|
inlinevirtual |
Adds dictionary item to the direct path.
Adds dictionary item to the direct path. See DictPathItem.
key | key in the dictionary to which corresponds direct object to be compared. |
|
inlinevirtual |
Adds offset item to the direct path.
Adds offset item to the direct path. See OffsetPathItem.
offset | offset to the specific byte in the stream that is compared. |
|
inlinevirtual |
Creates a new ObjectPath instance with two new given base objects, which are supposed to be nested in the base objects of the current instance of the ObjectPath.
Creates a new ObjectPath instance with two new given base objects, which are supposed to be nested in the base objects of the current instance of the ObjectPath. This method is used to avoid infinite loop in case of circular references in pdf documents objects structure.
Basically, this method creates copy of the current CompareObjectPath instance, but resets information of the direct paths, and also adds current CompareObjectPath instance base objects to the indirect references chain that denotes a path to the new base objects.
baseCmpObject | new base object in cmp document. |
baseOutObject | new base object in out document. |
|
inline |
Method returns a string representation of the direct path stored in this ObjectPath instance.
|
inlinevirtual |
Creates an xml node that describes a direct path stored in this ObjectPath instance.
document | xml document, to which this xml node will be added. |
Reimplemented in iText.Kernel.Utils.Objectpathitems.TrailerPath.