summaryrefslogtreecommitdiff
path: root/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/profileproperties/DateProfileProperty.java
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 18:49:01 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 18:49:01 +0000
commit3f5eda3adbea29aa8ad2cca5d300cef3f3a444a5 (patch)
treebf4948a55beed5a9ab64bc59caa1898703ce5e2b /pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/profileproperties/DateProfileProperty.java
parent93d4e1db036224b937fc03fdb3ef0ea7bbaa25a2 (diff)
downloadmocca-3f5eda3adbea29aa8ad2cca5d300cef3f3a444a5.tar.gz
mocca-3f5eda3adbea29aa8ad2cca5d300cef3f3a444a5.tar.bz2
mocca-3f5eda3adbea29aa8ad2cca5d300cef3f3a444a5.zip
Added Maven project for PDF-OVER 4.0 (Includes Spezification Diagramms)
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@2 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/profileproperties/DateProfileProperty.java')
-rw-r--r--pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/profileproperties/DateProfileProperty.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/profileproperties/DateProfileProperty.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/profileproperties/DateProfileProperty.java
new file mode 100644
index 00000000..ac5df52a
--- /dev/null
+++ b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/profileproperties/DateProfileProperty.java
@@ -0,0 +1,36 @@
+package at.asit.pdfover.pdfsignator.profileproperties;
+
+import java.util.Date;
+
+import at.asit.pdfover.pdfsignator.InvalidPropertyTypeException;
+import at.asit.pdfover.pdfsignator.InvalidPropertyValueException;
+
+/**
+ * A Date Property
+ */
+public class DateProfileProperty extends ProfileProperty {
+
+ /**
+ * Date value of property
+ */
+ protected Date dvalue = null;
+
+ /**
+ * Sets the date value of the Property
+ * @param value The date value
+ * @throws InvalidPropertyValueException
+ * @throws InvalidPropertyTypeException
+ */
+ public void SetValue(Date value) throws InvalidPropertyValueException, InvalidPropertyTypeException {
+ this.SetTextValue(value.toString());
+ this.dvalue = value;
+ }
+
+ /**
+ * Gets the date value
+ * @return the date value of the property
+ */
+ public Date GetValue() {
+ return this.dvalue;
+ }
+}