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
FieldsModifier and TypeFieldDescriptionprivate final PdfDocument
private static final String
private final PdfDocument
Fields inherited from class com.itextpdf.kernel.utils.objectpathitems.ObjectPath
path
-
Constructor Summary
ConstructorsConstructorDescriptionTrailerPath
(PdfDocument cmpDoc, PdfDocument outDoc) Creates newTrailerPath
instance with corresponding base objects in two documents.TrailerPath
(PdfDocument cmpDoc, PdfDocument outDoc, Stack<LocalPathItem> path) Creates newTrailerPath
instance with corresponding base objects in two documents.TrailerPath
(TrailerPath trailerPath) Creates newTrailerPath
instance from anotherTrailerPath
object, passed as argument. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Method returns true if thisTrailerPath
instance equals to the passed object.Method returns current cmpPdfDocument
object.Method returns current outPdfDocument
object.int
hashCode()
Method returns a hash code of thisTrailerPath
instance.toString()
Method returns a string representation of thisTrailerPath
instance.Creates xml node that describes thisTrailerPath
instance.Methods inherited from class com.itextpdf.kernel.utils.objectpathitems.ObjectPath
getBaseCmpObject, getBaseOutObject, getIndirectPath, getLocalPath, isComparing, pop, pushArrayItemToPath, pushDictItemToPath, pushOffsetToPath, resetDirectPath
-
Field Details
-
outDocument
-
cmpDocument
-
INITIAL_LINE
- See Also:
-
-
Constructor Details
-
TrailerPath
Creates newTrailerPath
instance with corresponding base objects in two documents.- Parameters:
cmpDoc
- base object in the cmp documentoutDoc
- base object in the out document
-
TrailerPath
Creates newTrailerPath
instance from anotherTrailerPath
object, passed as argument.- Parameters:
trailerPath
-TrailerPath
to create new instance from
-
TrailerPath
Creates newTrailerPath
instance with corresponding base objects in two documents.- Parameters:
cmpDoc
- base object in the cmp documentoutDoc
- base object in the out documentpath
- local path that denotes sequence of the path items from base object to the comparing direct object
-
-
Method Details
-
getOutDocument
Method returns current outPdfDocument
object.- Returns:
- current out
PdfDocument
object.
-
getCmpDocument
Method returns current cmpPdfDocument
object.- Returns:
- current cmp
PdfDocument
object.
-
toXmlNode
Creates xml node that describes thisTrailerPath
instance.- Overrides:
toXmlNode
in classObjectPath
- Parameters:
document
- xml document, to which this xml node will be added.- Returns:
- xml node describing this
TrailerPath
instance.
-
toString
Method returns a string representation of thisTrailerPath
instance.- Overrides:
toString
in classObjectPath
- Returns:
- a string representation of this
TrailerPath
instance.
-
hashCode
public int hashCode()Method returns a hash code of thisTrailerPath
instance.- Overrides:
hashCode
in classObjectPath
- Returns:
- a int hash code of this
TrailerPath
instance.
-
equals
Method returns true if thisTrailerPath
instance equals to the passed object.- Overrides:
equals
in classObjectPath
- Returns:
- true - if this
TrailerPath
instance equals to the passed object.
-