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

diff --git a/opends/src/server/org/opends/server/admin/ClassPropertyDefinition.java b/opends/src/server/org/opends/server/admin/ClassPropertyDefinition.java
index e59e1a7..fa17520 100644
--- a/opends/src/server/org/opends/server/admin/ClassPropertyDefinition.java
+++ b/opends/src/server/org/opends/server/admin/ClassPropertyDefinition.java
@@ -52,8 +52,7 @@
  * validation in the client by calling the static method
  * {@link #setAllowClassValidation(boolean)}.
  */
-public final class ClassPropertyDefinition extends
-    AbstractPropertyDefinition<String> {
+public final class ClassPropertyDefinition extends PropertyDefinition<String> {
 
   /**
    * An interface for incrementally constructing class property
@@ -129,11 +128,6 @@
 
   }
 
-  /**
-   * Serialization ID.
-   */
-  private static final long serialVersionUID = -7775867133238274392L;
-
   // Regular expression for validating class names.
   private static final String CLASS_RE =
     "^([A-Za-z]+[A-Za-z0-9_]*)*(\\.[A-Za-z]+[A-Za-z0-9_]*)"
@@ -234,6 +228,16 @@
    * {@inheritDoc}
    */
   @Override
+  public <R, P> R accept(PropertyValueVisitor<R, P> v, String value, P p) {
+    return v.visitClass(this, value, p);
+  }
+
+
+
+  /**
+   * {@inheritDoc}
+   */
+  @Override
   public String decodeValue(String value)
       throws IllegalPropertyValueStringException {
     ensureNotNull(value);

--
Gitblit v1.10.0