directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r328737 - /directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/filter/SimpleNode.java
Date Wed, 26 Oct 2005 21:16:21 GMT
Author: elecharny
Date: Wed Oct 26 14:16:15 2005
New Revision: 328737

URL: http://svn.apache.org/viewcvs?rev=328737&view=rev
Log:
Added a new constructor which accepts a String value. It will call internally the constructor
which accept a byte[]

Modified:
    directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/filter/SimpleNode.java

Modified: directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/filter/SimpleNode.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/filter/SimpleNode.java?rev=328737&r1=328736&r2=328737&view=diff
==============================================================================
--- directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/filter/SimpleNode.java
(original)
+++ directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/filter/SimpleNode.java
Wed Oct 26 14:16:15 2005
@@ -32,6 +32,17 @@
     /** the value */
     private byte[] value ;
 
+    /**
+     * Creates a new SimpleNode object.
+     *
+     * @param attribute the attribute name
+     * @param value the value to test for
+     * @param type the type of the assertion
+     */
+    public SimpleNode( String attribute, String value, int type )
+    {
+        this( attribute, StringUtils.getBytesUtf8( value ), type );
+    }
 
     /**
      * Creates a new SimpleNode object.



Mime
View raw message