Package com.itextpdf.forms.xfdf
Class IdsObject
- java.lang.Object
-
- com.itextpdf.forms.xfdf.IdsObject
-
public class IdsObject extends java.lang.Object
Represents ids element, child of the xfdf element. Corresponds to the ID key in the file dictionary. The two attributes are file identifiers for the source or target file designated by the f element, taken from the ID entry in the file’s trailer dictionary. Attributes: original, modified. For more details see paragraph 6.2.3 in Xfdf document specification.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
modified
The attribute contains a unique identifier for the modified version of the pdf and corresponding xfdf document.private java.lang.String
original
This attribute corresponds to the permanent identifier which is based on the contents of the file at the time it was originally created.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getModified()
Gets the string value of the unique identifier for the modified version of the pdf and corresponding xfdf document.java.lang.String
getOriginal()
Gets the string value of the permanent identifier which is based on the contents of the file at the time it was originally created.IdsObject
setModified(java.lang.String modified)
Sets the string value of the unique identifier for the modified version of the pdf and corresponding xfdf document.IdsObject
setOriginal(java.lang.String original)
Sets the string value of the permanent identifier which is based on the contents of the file at the time it was originally created.
-
-
-
Field Detail
-
original
private java.lang.String original
This attribute corresponds to the permanent identifier which is based on the contents of the file at the time it was originally created. This value does not change when the file is incrementally updated. The value shall be a hexadecimal number. A common value for this is an MD5 checksum.
-
modified
private java.lang.String modified
The attribute contains a unique identifier for the modified version of the pdf and corresponding xfdf document. The modified attribute corresponds to the changing identifier that is based on the file's contents at the time it was last updated. The value shall be a hexadecimal number. A common value for this is an MD5 checksum.
-
-
Constructor Detail
-
IdsObject
public IdsObject()
Creates an instance ofIdsObject
.
-
-
Method Detail
-
getOriginal
public java.lang.String getOriginal()
Gets the string value of the permanent identifier which is based on the contents of the file at the time it was originally created. This value does not change when the file is incrementally updated. The value shall be a hexadecimal number.- Returns:
- the permanent identifier value.
-
setOriginal
public IdsObject setOriginal(java.lang.String original)
Sets the string value of the permanent identifier which is based on the contents of the file at the time it was originally created. This value does not change when the file is incrementally updated. The value shall be a hexadecimal number. A common value for this is an MD5 checksum.- Parameters:
original
- the permanent identifier value- Returns:
- current
ids object
.
-
getModified
public java.lang.String getModified()
Gets the string value of the unique identifier for the modified version of the pdf and corresponding xfdf document. The modified attribute corresponds to the changing identifier that is based on the file's contents at the time it was last updated. The value shall be a hexadecimal number.- Returns:
- the unique identifier value.
-
setModified
public IdsObject setModified(java.lang.String modified)
Sets the string value of the unique identifier for the modified version of the pdf and corresponding xfdf document. The modified attribute corresponds to the changing identifier that is based on the file's contents at the time it was last updated. The value shall be a hexadecimal number. A common value for this is an MD5 checksum.- Parameters:
modified
- the unique identifier value- Returns:
- current
ids object
.
-
-