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 ObjectModification
create
(PdfObjectTree objectTree, Object finalObject) CreatesObjectModification
for a new object creation changestatic ObjectModification
delete
(PdfObjectTree objectTree, Object originalObject) CreatesObjectModification
for an object removal changeboolean
Returns 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 applicableint
hashCode()
static ObjectModification
modify
(PdfObjectTree objectTree, Object originalObject, Object finalObject) CreatesObjectModification
for an object modification change
-
Method Details
-
create
CreatesObjectModification
for a new object creation change- Parameters:
objectTree
-PdfObjectTree
finalObject
- final revision object- Returns:
ObjectModification
-
delete
CreatesObjectModification
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) CreatesObjectModification
for an object modification change- Parameters:
objectTree
-PdfObjectTree
originalObject
- 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:
String
field name, when applicable. NULL otherwise.
-
getType
Returns a type of concerned object, when applicable- Returns:
String
type
-
equals
-
hashCode
public int hashCode()
-