directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r951707 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/DN.java
Date Sat, 05 Jun 2010 12:54:00 GMT
Author: elecharny
Date: Sat Jun  5 12:54:00 2010
New Revision: 951707

URL: http://svn.apache.org/viewvc?rev=951707&view=rev
Log:
forgot to commit :
o Added a isRootDSE() method in the DN class

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/DN.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/DN.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/DN.java?rev=951707&r1=951706&r2=951707&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/DN.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/DN.java
Sat Jun  5 12:54:00 2010
@@ -745,12 +745,25 @@ public class DN implements Cloneable, Se
     
     
     /**
-     * {@inheritDoc}
+     * Tells if the DN contains no RDN
+     * 
+     * @return <code>true</code> if the DN is empty
      */
     public boolean isEmpty()
     {
         return ( rdns.size() == 0 );
     }
+    
+    
+    /**
+     * Tells if the DN is the RootDSE DN (ie, an empty DN)
+     * 
+     * @return <code>true</code> if the DN is the RootDSE's DN
+     */
+    public boolean isRootDSE()
+    {
+        return ( rdns.size() == 0 );
+    }
 
 
     /**



Mime
View raw message