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 2005/10/26 23:16:21 UTC
svn commit: r328737 -
/directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/filter/SimpleNode.java
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.