From 40818a70d58f4918563ced5f85321116576ca6b5 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Mon, 11 Jun 2007 10:51:15 +0000
Subject: [PATCH] Define encoder for attribute type properties (previously the entire attribute type definition was being generated as a result of the default encoder).

---
 opends/src/server/org/opends/server/admin/AttributeTypePropertyDefinition.java |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/admin/AttributeTypePropertyDefinition.java b/opends/src/server/org/opends/server/admin/AttributeTypePropertyDefinition.java
index df112fe..b10a687 100644
--- a/opends/src/server/org/opends/server/admin/AttributeTypePropertyDefinition.java
+++ b/opends/src/server/org/opends/server/admin/AttributeTypePropertyDefinition.java
@@ -197,6 +197,17 @@
    * {@inheritDoc}
    */
   @Override
+  public String encodeValue(AttributeType value)
+      throws IllegalPropertyValueException {
+    return value.getNameOrOID();
+  }
+
+
+
+  /**
+   * {@inheritDoc}
+   */
+  @Override
   public void validateValue(AttributeType value)
       throws IllegalPropertyValueException {
     ensureNotNull(value);

--
Gitblit v1.10.0