From e114a899bbc0df59f5135f195d24797bf6c1b778 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Thu, 02 Jan 2014 09:33:43 +0000
Subject: [PATCH] Checkpoint commit for OPENDJ-1235 : Migrate configuration framework

---
 opendj-sdk/opendj-admin/src/main/java/org/opends/server/admin/PropertyDefinition.java |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/opendj-sdk/opendj-admin/src/main/java/org/opends/server/admin/PropertyDefinition.java b/opendj-sdk/opendj-admin/src/main/java/org/opends/server/admin/PropertyDefinition.java
index ebd89fb..e9bd5ba 100644
--- a/opendj-sdk/opendj-admin/src/main/java/org/opends/server/admin/PropertyDefinition.java
+++ b/opendj-sdk/opendj-admin/src/main/java/org/opends/server/admin/PropertyDefinition.java
@@ -244,7 +244,7 @@
      * <p>
      * This method only casts the object to the required type; it does not
      * validate the value once it has been cast. Subsequent validation should be
-     * performed using the method {@link #validateValue(Object)}.
+     * performed using the method {@link #validateValue(Object, PropertyDefinitionsOptions)}.
      * <p>
      * This method guarantees the following expression is always
      * <code>true</code>:
@@ -318,11 +318,13 @@
      *
      * @param value
      *            The property string value (must not be <code>null</code>).
+     * @param options
+     *            Options to use when decoding value.
      * @return Returns the decoded property value.
      * @throws IllegalPropertyValueStringException
      *             If the property value string is invalid.
      */
-    public abstract T decodeValue(String value);
+    public abstract T decodeValue(String value, PropertyDefinitionsOptions options);
 
     /**
      * Encode the provided property value into its string representation.
@@ -508,7 +510,7 @@
      * This method may throw an exception if the provided value is invalid.
      * However, applications should not assume that implementations of this
      * method will always validate a value. This task is the responsibility of
-     * {@link #validateValue(Object)}.
+     * {@link #validateValue(Object, PropertyDefinitionsOptions)}.
      * <p>
      * This default implementation simply returns the string representation of
      * the provided value. Sub-classes might want to override this method if
@@ -562,10 +564,12 @@
      *
      * @param value
      *            The property value (must not be <code>null</code>).
+     * @param options
+     *            Options to use when decoding value.
      * @throws IllegalPropertyValueException
      *             If the property value is invalid.
      */
-    public abstract void validateValue(T value);
+    public abstract void validateValue(T value, PropertyDefinitionsOptions options);
 
     /**
      * Performs any run-time initialization required by this property

--
Gitblit v1.10.0