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 PdfDocumentcmpDocumentprivate static java.lang.StringINITIAL_LINEprivate PdfDocumentoutDocument-
Fields inherited from class com.itextpdf.kernel.utils.objectpathitems.ObjectPath
path
-
-
Constructor Summary
Constructors Constructor Description TrailerPath(PdfDocument cmpDoc, PdfDocument outDoc)Creates newTrailerPathinstance with corresponding base objects in two documents.TrailerPath(PdfDocument cmpDoc, PdfDocument outDoc, java.util.Stack<LocalPathItem> path)Creates newTrailerPathinstance with corresponding base objects in two documents.TrailerPath(TrailerPath trailerPath)Creates newTrailerPathinstance from anotherTrailerPathobject, passed as argument.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Method returns true if thisTrailerPathinstance equals to the passed object.PdfDocumentgetCmpDocument()Method returns current cmpPdfDocumentobject.PdfDocumentgetOutDocument()Method returns current outPdfDocumentobject.inthashCode()Method returns a hash code of thisTrailerPathinstance.java.lang.StringtoString()Method returns a string representation of thisTrailerPathinstance.org.w3c.dom.NodetoXmlNode(org.w3c.dom.Document document)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
-
-
-
-
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 newTrailerPathinstance 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 newTrailerPathinstance from anotherTrailerPathobject, passed as argument.- Parameters:
trailerPath-TrailerPathto create new instance from
-
TrailerPath
public TrailerPath(PdfDocument cmpDoc, PdfDocument outDoc, java.util.Stack<LocalPathItem> path)
Creates newTrailerPathinstance 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 outPdfDocumentobject.- Returns:
- current out
PdfDocumentobject.
-
getCmpDocument
public PdfDocument getCmpDocument()
Method returns current cmpPdfDocumentobject.- Returns:
- current cmp
PdfDocumentobject.
-
toXmlNode
public org.w3c.dom.Node toXmlNode(org.w3c.dom.Document document)
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
public java.lang.String 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
public boolean equals(java.lang.Object obj)
Method returns true if thisTrailerPathinstance equals to the passed object.- Overrides:
equalsin classObjectPath- Returns:
- true - if this
TrailerPathinstance equals to the passed object.
-
-