directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r406359 - /directory/branches/elecharny/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/add/AddRequest.java
Date Sun, 14 May 2006 15:27:05 GMT
Author: elecharny
Date: Sun May 14 08:27:04 2006
New Revision: 406359

URL: http://svn.apache.org/viewcvs?rev=406359&view=rev
Log:
Added a method addAttributeType which takes the attributeType as a String, not a LdapString

Modified:
    directory/branches/elecharny/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/add/AddRequest.java

Modified: directory/branches/elecharny/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/add/AddRequest.java
URL: http://svn.apache.org/viewcvs/directory/branches/elecharny/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/add/AddRequest.java?rev=406359&r1=406358&r2=406359&view=diff
==============================================================================
--- directory/branches/elecharny/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/add/AddRequest.java
(original)
+++ directory/branches/elecharny/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/add/AddRequest.java
Sun May 14 08:27:04 2006
@@ -144,6 +144,18 @@
         attributes.put( currentAttribute );
     }
 
+    /**
+     * Create a new attributeValue
+     * 
+     * @param type
+     *            The attribute's name (called 'type' in the grammar)
+     */
+    public void addAttributeType( String type )
+    {
+        currentAttribute = new BasicAttribute( type.toLowerCase() );
+        attributes.put( currentAttribute );
+    }
+
 
     /**
      * Add a new value to the current attribute



Mime
View raw message