Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 35199 invoked from network); 16 Feb 2011 13:20:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Feb 2011 13:20:08 -0000 Received: (qmail 81791 invoked by uid 500); 16 Feb 2011 13:20:08 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 81739 invoked by uid 500); 16 Feb 2011 13:20:06 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 81732 invoked by uid 99); 16 Feb 2011 13:20:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Feb 2011 13:20:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Feb 2011 13:20:03 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 532302388A38; Wed, 16 Feb 2011 13:19:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1071237 - /directory/shared/branches/m1/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java Date: Wed, 16 Feb 2011 13:19:42 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110216131942.532302388A38@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: elecharny Date: Wed Feb 16 13:19:41 2011 New Revision: 1071237 URL: http://svn.apache.org/viewvc?rev=1071237&view=rev Log: Added some javadoc Modified: directory/shared/branches/m1/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java Modified: directory/shared/branches/m1/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java?rev=1071237&r1=1071236&r2=1071237&view=diff ============================================================================== --- directory/shared/branches/m1/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java (original) +++ directory/shared/branches/m1/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java Wed Feb 16 13:19:41 2011 @@ -495,10 +495,10 @@ public final class Dn implements Iterabl /** - * Return the normalized Dn as a String. It returns the same value as the - * getNormName method + * Return the user provided Dn as a String. It returns the same value as the + * getName method * - * @return A String representing the normalized Dn + * @return A String representing the user provided Dn */ @Override public String toString() @@ -666,9 +666,9 @@ public final class Dn implements Iterabl /** - * Get the initial Dn + * Get the user provided Dn * - * @return The Dn as a String + * @return The user provided Dn as a String */ public String getName() { @@ -683,14 +683,19 @@ public final class Dn implements Iterabl * * @param upName the new up name */ - void setUpName( String upName ) + /* No qualifier */ void setUpName( String upName ) { this.upName = upName; } /** - * Get the normalized Dn + * Get the normalized Dn. If the Dn is schema aware, the AttributeType + * will be represented using its OID :
+ *
+     * Dn dn = new Dn( schemaManager, "ou = Example , ou = com" );
+     * assert( "2.5.4.11=example,2.5.4.11=com".equals( dn.getNormName ) );
+     * 
* * @return The Dn as a String */ @@ -706,7 +711,8 @@ public final class Dn implements Iterabl /** - * {@inheritDoc} + * Get the number of RDNs present in the DN + * @return The umber of RDNs in the DN */ public int size() {