From c6f391dd4d48922b9cf1c5fac08aecc67008f869 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Mon, 04 Jun 2007 17:26:28 +0000
Subject: [PATCH] Various improvements to the PropertyDefinition classes:
---
opends/src/server/org/opends/server/admin/IntegerPropertyDefinition.java | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/opends/src/server/org/opends/server/admin/IntegerPropertyDefinition.java b/opends/src/server/org/opends/server/admin/IntegerPropertyDefinition.java
index d81a5f5..cedb8e9 100644
--- a/opends/src/server/org/opends/server/admin/IntegerPropertyDefinition.java
+++ b/opends/src/server/org/opends/server/admin/IntegerPropertyDefinition.java
@@ -45,12 +45,7 @@
* represented using a negative value or using the string "unlimited".
*/
public final class IntegerPropertyDefinition extends
- AbstractPropertyDefinition<Integer> {
-
- /**
- * Serialization ID.
- */
- private static final long serialVersionUID = 2819904868308720588L;
+ PropertyDefinition<Integer> {
// String used to represent unlimited.
private static final String UNLIMITED = "unlimited";
@@ -357,6 +352,16 @@
* {@inheritDoc}
*/
@Override
+ public <R, P> R accept(PropertyValueVisitor<R, P> v, Integer value, P p) {
+ return v.visitInteger(this, value, p);
+ }
+
+
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
public void toString(StringBuilder builder) {
super.toString(builder);
--
Gitblit v1.10.0