Class ObjectModification

java.lang.Object
eu.europa.esig.dss.pdf.modifications.ObjectModification

public class ObjectModification extends Object
This object represents a modification occurred in a PDF document
  • Method Details

    • create

      public static ObjectModification create(PdfObjectTree objectTree, Object finalObject)
      Creates ObjectModification for a new object creation change
      Parameters:
      objectTree - PdfObjectTree
      finalObject - final revision object
      Returns:
      ObjectModification
    • delete

      public static ObjectModification delete(PdfObjectTree objectTree, Object originalObject)
      Creates ObjectModification for an object removal change
      Parameters:
      objectTree - PdfObjectTree
      originalObject - signed revision object
      Returns:
      ObjectModification
    • modify

      public static ObjectModification modify(PdfObjectTree objectTree, Object originalObject, Object finalObject)
      Creates ObjectModification for an object modification change
      Parameters:
      objectTree - PdfObjectTree
      originalObject - signed revision object
      finalObject - final revision object
      Returns:
      ObjectModification
    • getObjectTree

      public PdfObjectTree getObjectTree()
      Returns an object tree
      Returns:
      PdfObjectTree
    • getOriginalObject

      public Object getOriginalObject()
      Gets a signed revision object
      Returns:
      original object
    • getFinalObject

      public Object getFinalObject()
      Gets a final document revision object
      Returns:
      final object
    • getActionType

      public PdfObjectModificationType getActionType()
      Returns a corresponding object modification type
      Returns:
      PdfObjectModificationType
    • getFieldName

      public String getFieldName()
      Returns a name of the changed field object, when applicable NOTE: the object shall be a type of field. Returns null for other objects.
      Returns:
      String field name, when applicable. NULL otherwise.
    • getType

      public String getType()
      Returns a type of concerned object, when applicable
      Returns:
      String type
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object