From dd1bb3f0d7b691f4134288b07d1b5f602c1df72c Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 01 Feb 2007 22:48:02 +0000
Subject: [PATCH] Fix various documentation problems with the Attribute constructor which takes two String arguments.  The documentation did not state that the provided name had to be in all lowercase characters, and it also suggested that it was possible to provide multiple values, which is not true.

---
 opends/src/server/org/opends/server/types/Attribute.java |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/opends/src/server/org/opends/server/types/Attribute.java b/opends/src/server/org/opends/server/types/Attribute.java
index a49f62f..d5d440d 100644
--- a/opends/src/server/org/opends/server/types/Attribute.java
+++ b/opends/src/server/org/opends/server/types/Attribute.java
@@ -145,19 +145,19 @@
 
 
   /**
-   * Creates a new attribute with the specified type, user-provided
-   * name, and set of values.
+   * Creates a new attribute with the specified name and value.
    *
-   * @param  typeString   The String representation of the attribute
-   *                      type for this attribute.
+   * @param  lowerName    The name or OID of the attribute type for
+   *                      this attribute, formatted in all lowercase
+   *                      characters.
    * @param  valueString  The String representation of the attribute
-   *                      value
+   *                      value.
    */
-  public Attribute(String typeString, String valueString)
+  public Attribute(String lowerName, String valueString)
   {
     this.attributeType =
-         DirectoryServer.getAttributeType(typeString, true);
-    this.name = typeString;
+         DirectoryServer.getAttributeType(lowerName, true);
+    this.name = lowerName;
     this.values = new LinkedHashSet<AttributeValue>();
     this.values.add(new AttributeValue(this.attributeType,
                                        valueString));

--
Gitblit v1.10.0