From 67b6605775cecd7b769991cf922ed6109f6c0d8c Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 1 Aug 2012 09:10:42 +0000 Subject: =?UTF-8?q?PDF=20Signator=20Schnittstelle=20mit=20EUML2=20in=20Ecl?= =?UTF-8?q?ipse=20f=C3=BCr=20Codegenerierung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12240 3a0b52a2-8410-0410-bc02-ff6273a87459 --- .../profileproperties/IntegerProfileProperty.java | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Spezifikation/PDFSignator Schnittstelle/src/at/asit/pdfover/pdfsignator/profileproperties/IntegerProfileProperty.java (limited to 'Spezifikation/PDFSignator Schnittstelle/src/at/asit/pdfover/pdfsignator/profileproperties/IntegerProfileProperty.java') diff --git a/Spezifikation/PDFSignator Schnittstelle/src/at/asit/pdfover/pdfsignator/profileproperties/IntegerProfileProperty.java b/Spezifikation/PDFSignator Schnittstelle/src/at/asit/pdfover/pdfsignator/profileproperties/IntegerProfileProperty.java new file mode 100644 index 00000000..7bb91226 --- /dev/null +++ b/Spezifikation/PDFSignator Schnittstelle/src/at/asit/pdfover/pdfsignator/profileproperties/IntegerProfileProperty.java @@ -0,0 +1,31 @@ +package at.asit.pdfover.pdfsignator.profileproperties; + +import at.asit.pdfover.pdfsignator.InvalidPropertyTypeException; +import at.asit.pdfover.pdfsignator.InvalidPropertyValueException; + +public class IntegerProfileProperty extends ProfileProperty { + + /** + * Integer value of property + */ + protected Integer ivalue = null; + + /** + * Sets the integer value of the Property + * @param value The integer value + * @throws InvalidPropertyValueException + * @throws InvalidPropertyTypeException + */ + public void SetValue(int value) throws InvalidPropertyValueException, InvalidPropertyTypeException { + this.SetTextValue(Integer.toString(value)); + this.ivalue = value; + } + + /** + * Gets the integer value + * @return the integer value of the property + */ + public Integer GetValue() { + return this.ivalue; + } +} -- cgit v1.2.3