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/DurationPropertyDefinition.java |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/opends/src/server/org/opends/server/admin/DurationPropertyDefinition.java b/opends/src/server/org/opends/server/admin/DurationPropertyDefinition.java
index d9346d9..816a9eb 100644
--- a/opends/src/server/org/opends/server/admin/DurationPropertyDefinition.java
+++ b/opends/src/server/org/opends/server/admin/DurationPropertyDefinition.java
@@ -63,13 +63,7 @@
  * Decoded values are represented using <code>long</code> values in
  * the base unit defined for the duration property definition.
  */
-public final class DurationPropertyDefinition extends
-    AbstractPropertyDefinition<Long> {
-
-  /**
-   * Serialization ID.
-   */
-  private static final long serialVersionUID = -1491050690542547075L;
+public final class DurationPropertyDefinition extends PropertyDefinition<Long> {
 
   // String used to represent unlimited durations.
   private static final String UNLIMITED = "unlimited";
@@ -564,6 +558,16 @@
    * {@inheritDoc}
    */
   @Override
+  public <R, P> R accept(PropertyValueVisitor<R, P> v, Long value, P p) {
+    return v.visitDuration(this, value, p);
+  }
+
+
+
+  /**
+   * {@inheritDoc}
+   */
+  @Override
   public void toString(StringBuilder builder) {
     super.toString(builder);
 

--
Gitblit v1.10.0