Class TrailerPath


  • public final class TrailerPath
    extends ObjectPath
    Direct path item (see ObjectPath), which describes transition to the trailer entry which value is now a currently comparing direct object.
    • Constructor Detail

      • TrailerPath

        public TrailerPath​(PdfDocument cmpDoc,
                           PdfDocument outDoc)
        Creates new TrailerPath instance with corresponding base objects in two documents.
        Parameters:
        cmpDoc - base object in the cmp document
        outDoc - base object in the out document
      • TrailerPath

        public TrailerPath​(PdfDocument cmpDoc,
                           PdfDocument outDoc,
                           java.util.Stack<LocalPathItem> path)
        Creates new TrailerPath instance 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 Detail

      • toXmlNode

        public org.w3c.dom.Node toXmlNode​(org.w3c.dom.Document document)
        Creates xml node that describes this TrailerPath instance.
        Overrides:
        toXmlNode in class ObjectPath
        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 this TrailerPath instance.
        Overrides:
        toString in class ObjectPath
        Returns:
        a string representation of this TrailerPath instance.
      • equals

        public boolean equals​(java.lang.Object obj)
        Method returns true if this TrailerPath instance equals to the passed object.
        Overrides:
        equals in class ObjectPath
        Returns:
        true - if this TrailerPath instance equals to the passed object.