mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
25.31.2008 de3fde4c481bcb00df7b0ce60e80f1482e538a85
opends/src/server/org/opends/server/tools/dsconfig/SubCommandHandler.java
@@ -70,6 +70,7 @@
import org.opends.server.admin.client.ManagedObjectDecodingException;
import org.opends.server.admin.client.ManagementContext;
import org.opends.server.tools.ClientException;
import org.opends.server.types.CommonSchemaElements;
import org.opends.server.util.ServerConstants;
import org.opends.server.util.args.Argument;
import org.opends.server.util.args.ArgumentException;
@@ -1227,4 +1228,24 @@
    }
  }
  /**
   * Returns the string value for a given object as it will be displayed
   * in the equivalent command-line.
   * @param o the value.
   * @return the String value to be displayed in the equivalent command-line.
   */
  protected static String getArgumentValue(Object o)
  {
    String value;
    if (o instanceof CommonSchemaElements)
    {
      value = ((CommonSchemaElements)o).getOID();
    }
    else
    {
      value = String.valueOf(o);
    }
    return value;
  }
}