summaryrefslogtreecommitdiff
path: root/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/profileproperties/FloatProfileProperty.java
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/profileproperties/FloatProfileProperty.java')
-rw-r--r--pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/profileproperties/FloatProfileProperty.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/profileproperties/FloatProfileProperty.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/profileproperties/FloatProfileProperty.java
new file mode 100644
index 00000000..51c4089e
--- /dev/null
+++ b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/profileproperties/FloatProfileProperty.java
@@ -0,0 +1,30 @@
+package at.asit.pdfover.pdfsignator.profileproperties;
+
+import at.asit.pdfover.pdfsignator.InvalidPropertyTypeException;
+import at.asit.pdfover.pdfsignator.InvalidPropertyValueException;
+
+public class FloatProfileProperty extends ProfileProperty {
+ /**
+ * Float value of property
+ */
+ protected Float fvalue = null;
+
+ /**
+ * Sets the float value of the Property
+ * @param value The float value
+ * @throws InvalidPropertyValueException
+ * @throws InvalidPropertyTypeException
+ */
+ public void SetValue(float value) throws InvalidPropertyValueException, InvalidPropertyTypeException {
+ this.SetTextValue(Float.toString(value));
+ this.fvalue = value;
+ }
+
+ /**
+ * Gets the float value
+ * @return the float value of the property
+ */
+ public Float GetValue() {
+ return this.fvalue;
+ }
+}