Class ObjectModification
java.lang.Object
eu.europa.esig.dss.pdf.modifications.ObjectModification
This object represents a modification occurred in a PDF document
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectModificationcreate(PdfObjectTree objectTree, Object finalObject) CreatesObjectModificationfor a new object creation changestatic ObjectModificationdelete(PdfObjectTree objectTree, Object originalObject) CreatesObjectModificationfor an object removal changebooleanReturns a corresponding object modification typeReturns a name of the changed field object, when applicable NOTE: the object shall be a type of field.Gets a final document revision objectReturns an object treeGets a signed revision objectgetType()Returns a type of concerned object, when applicableinthashCode()static ObjectModificationmodify(PdfObjectTree objectTree, Object originalObject, Object finalObject) CreatesObjectModificationfor an object modification change
-
Method Details
-
create
CreatesObjectModificationfor a new object creation change- Parameters:
objectTree-PdfObjectTreefinalObject- final revision object- Returns:
ObjectModification
-
delete
CreatesObjectModificationfor an object removal change- Parameters:
objectTree-PdfObjectTreeoriginalObject- signed revision object- Returns:
ObjectModification
-
modify
public static ObjectModification modify(PdfObjectTree objectTree, Object originalObject, Object finalObject) CreatesObjectModificationfor an object modification change- Parameters:
objectTree-PdfObjectTreeoriginalObject- signed revision objectfinalObject- final revision object- Returns:
ObjectModification
-
getObjectTree
Returns an object tree- Returns:
PdfObjectTree
-
getOriginalObject
Gets a signed revision object- Returns:
- original object
-
getFinalObject
Gets a final document revision object- Returns:
- final object
-
getActionType
Returns a corresponding object modification type- Returns:
PdfObjectModificationType
-
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:
Stringfield name, when applicable. NULL otherwise.
-
getType
Returns a type of concerned object, when applicable- Returns:
Stringtype
-
equals
-
hashCode
public int hashCode()
-