Class TrailerPath
- java.lang.Object
-
- com.itextpdf.kernel.utils.objectpathitems.ObjectPath
-
- com.itextpdf.kernel.utils.objectpathitems.TrailerPath
-
public final class TrailerPath extends ObjectPath
Direct path item (seeObjectPath
), which describes transition to the trailer entry which value is now a currently comparing direct object.
-
-
Field Summary
Fields Modifier and Type Field Description private PdfDocument
cmpDocument
private static java.lang.String
INITIAL_LINE
private PdfDocument
outDocument
-
Fields inherited from class com.itextpdf.kernel.utils.objectpathitems.ObjectPath
path
-
-
Constructor Summary
Constructors Constructor Description TrailerPath(PdfDocument cmpDoc, PdfDocument outDoc)
Creates newTrailerPath
instance with corresponding base objects in two documents.TrailerPath(PdfDocument cmpDoc, PdfDocument outDoc, java.util.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Method returns true if thisTrailerPath
instance equals to the passed object.PdfDocument
getCmpDocument()
Method returns current cmpPdfDocument
object.PdfDocument
getOutDocument()
Method returns current outPdfDocument
object.int
hashCode()
Method returns a hash code of thisTrailerPath
instance.java.lang.String
toString()
Method returns a string representation of thisTrailerPath
instance.org.w3c.dom.Node
toXmlNode(org.w3c.dom.Document document)
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 Detail
-
outDocument
private final PdfDocument outDocument
-
cmpDocument
private final PdfDocument cmpDocument
-
INITIAL_LINE
private static final java.lang.String INITIAL_LINE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TrailerPath
public TrailerPath(PdfDocument cmpDoc, PdfDocument outDoc)
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
public TrailerPath(TrailerPath trailerPath)
Creates newTrailerPath
instance from anotherTrailerPath
object, passed as argument.- Parameters:
trailerPath
-TrailerPath
to create new instance from
-
TrailerPath
public TrailerPath(PdfDocument cmpDoc, PdfDocument outDoc, java.util.Stack<LocalPathItem> path)
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 Detail
-
getOutDocument
public PdfDocument getOutDocument()
Method returns current outPdfDocument
object.- Returns:
- current out
PdfDocument
object.
-
getCmpDocument
public PdfDocument getCmpDocument()
Method returns current cmpPdfDocument
object.- Returns:
- current cmp
PdfDocument
object.
-
toXmlNode
public org.w3c.dom.Node toXmlNode(org.w3c.dom.Document document)
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
public java.lang.String 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
public boolean equals(java.lang.Object obj)
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.
-
-