You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2006/05/14 17:27:05 UTC
svn commit: r406359 -
/directory/branches/elecharny/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/add/AddRequest.java
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