Class TrailerPath
java.lang.Object
com.itextpdf.kernel.utils.objectpathitems.ObjectPath
com.itextpdf.kernel.utils.objectpathitems.TrailerPath
Direct path item (see
ObjectPath), which describes transition to the trailer entry which value is now a currently comparing direct object.
-
Field Summary
Fields inherited from class com.itextpdf.kernel.utils.objectpathitems.ObjectPath
path -
Constructor Summary
ConstructorsConstructorDescriptionTrailerPath(PdfDocument cmpDoc, PdfDocument outDoc) Creates newTrailerPathinstance with corresponding base objects in two documents.TrailerPath(PdfDocument cmpDoc, PdfDocument outDoc, Stack<LocalPathItem> path) Creates newTrailerPathinstance with corresponding base objects in two documents.TrailerPath(TrailerPath trailerPath) Creates newTrailerPathinstance from anotherTrailerPathobject, passed as argument. -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethod returns true if thisTrailerPathinstance equals to the passed object.Method returns current cmpPdfDocumentobject.Method returns current outPdfDocumentobject.inthashCode()Method returns a hash code of thisTrailerPathinstance.toString()Method returns a string representation of thisTrailerPathinstance.Creates xml node that describes thisTrailerPathinstance.Methods inherited from class com.itextpdf.kernel.utils.objectpathitems.ObjectPath
getBaseCmpObject, getBaseOutObject, getIndirectPath, getLocalPath, isComparing, pop, pushArrayItemToPath, pushDictItemToPath, pushOffsetToPath, resetDirectPath
-
Constructor Details
-
TrailerPath
Creates newTrailerPathinstance with corresponding base objects in two documents.- Parameters:
-
cmpDoc- base object in the cmp document -
outDoc- base object in the out document
-
TrailerPath
Creates newTrailerPathinstance from anotherTrailerPathobject, passed as argument.- Parameters:
-
trailerPath-TrailerPathto create new instance from
-
TrailerPath
Creates newTrailerPathinstance with corresponding base objects in two documents.- Parameters:
-
cmpDoc- base object in the cmp document -
outDoc- base object in the out document -
path- local path that denotes sequence of the path items from base object to the comparing direct object
-
-
Method Details
-
getOutDocument
Method returns current outPdfDocumentobject.- Returns:
-
current out
PdfDocumentobject.
-
getCmpDocument
Method returns current cmpPdfDocumentobject.- Returns:
-
current cmp
PdfDocumentobject.
-
toXmlNode
Creates xml node that describes thisTrailerPathinstance.- Overrides:
-
toXmlNodein classObjectPath - Parameters:
-
document- xml document, to which this xml node will be added. - Returns:
-
xml node describing this
TrailerPathinstance.
-
toString
Method returns a string representation of thisTrailerPathinstance.- Overrides:
-
toStringin classObjectPath - Returns:
-
a string representation of this
TrailerPathinstance.
-
hashCode
public int hashCode()Method returns a hash code of thisTrailerPathinstance.- Overrides:
-
hashCodein classObjectPath - Returns:
-
a int hash code of this
TrailerPathinstance.
-
equals
Method returns true if thisTrailerPathinstance equals to the passed object.- Overrides:
-
equalsin classObjectPath - Returns:
-
true - if this
TrailerPathinstance equals to the passed object.
-