diff options
Diffstat (limited to 'pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/profileproperties/FileProfileProperty.java')
-rw-r--r-- | pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/profileproperties/FileProfileProperty.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/profileproperties/FileProfileProperty.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/profileproperties/FileProfileProperty.java new file mode 100644 index 00000000..46c5cd12 --- /dev/null +++ b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/profileproperties/FileProfileProperty.java @@ -0,0 +1,33 @@ +package at.asit.pdfover.pdfsignator.profileproperties; + +import java.io.File; + +import at.asit.pdfover.pdfsignator.InvalidPropertyTypeException; +import at.asit.pdfover.pdfsignator.InvalidPropertyValueException; + +public class FileProfileProperty extends ProfileProperty { + + /** + * File value of property + */ + protected File fvalue = null; + + /** + * Sets the file value of the Property + * @param value The file value + * @throws InvalidPropertyValueException + * @throws InvalidPropertyTypeException + */ + public void SetValue(File value) throws InvalidPropertyValueException, InvalidPropertyTypeException { + this.SetTextValue(value.getAbsolutePath()); + this.fvalue = value; + } + + /** + * Gets the file value + * @return the file value of the property + */ + public File GetValue() { + return this.fvalue; + } +} |