From 13a63611d24de8c5727e62a215b26354c1a22278 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 19 Mar 2008 18:09:56 +0000
Subject: [PATCH] Fix for issue 2197 (dsconfig: interactive mode should display the effective dsconfig command)

---
 opends/src/server/org/opends/server/admin/condition/ContainsCondition.java |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/opends/src/server/org/opends/server/admin/condition/ContainsCondition.java b/opends/src/server/org/opends/server/admin/condition/ContainsCondition.java
index ef2a4c2..12035b6 100644
--- a/opends/src/server/org/opends/server/admin/condition/ContainsCondition.java
+++ b/opends/src/server/org/opends/server/admin/condition/ContainsCondition.java
@@ -58,10 +58,10 @@
   private static final class Impl<T> implements Condition {
 
     // The property.
-    private final PropertyDefinition<T> pd;
+    final PropertyDefinition<T> pd;
 
     // The required property value.
-    private final T value;
+    final T value;
 
 
 
@@ -194,4 +194,21 @@
     this.impl = new Impl<T>(pd, value);
   }
 
+  /**
+   * Returns the property definition associated with this condition.
+   * @return the property definition associated with this condition.
+   */
+  public PropertyDefinition<?> getPropertyDefinition()
+  {
+    return impl.pd;
+  }
+
+  /**
+   * Returns the value that must be set for this condition to be fulfilled.
+   * @return the value that must be set for this condition to be fulfilled.
+   */
+  public Object getValue()
+  {
+    return impl.value;
+  }
 }

--
Gitblit v1.10.0