diff options
Diffstat (limited to 'Spezifikation/PDFSignator Schnittstelle/src/at/asit/pdfover/pdfsignator/profileproperties/DateProfileProperty.java')
-rw-r--r-- | Spezifikation/PDFSignator Schnittstelle/src/at/asit/pdfover/pdfsignator/profileproperties/DateProfileProperty.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Spezifikation/PDFSignator Schnittstelle/src/at/asit/pdfover/pdfsignator/profileproperties/DateProfileProperty.java b/Spezifikation/PDFSignator Schnittstelle/src/at/asit/pdfover/pdfsignator/profileproperties/DateProfileProperty.java new file mode 100644 index 00000000..ac5df52a --- /dev/null +++ b/Spezifikation/PDFSignator Schnittstelle/src/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; + } +} |