directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r412101 - in /directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap: name/LdapDN.java schema/OidNormalizer.java
Date Tue, 06 Jun 2006 11:50:33 GMT
Author: akarasulu
Date: Tue Jun  6 04:50:33 2006
New Revision: 412101

URL: http://svn.apache.org/viewvc?rev=412101&view=rev
Log:
modified OidNormalizer removing mutators

Modified:
    directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
    directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/schema/OidNormalizer.java

Modified: directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
URL: http://svn.apache.org/viewvc/directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java?rev=412101&r1=412100&r2=412101&view=diff
==============================================================================
--- directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
(original)
+++ directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
Tue Jun  6 04:50:33 2006
@@ -1231,7 +1231,7 @@
 
             if ( oidNormalizer != null )
             {
-                return new AttributeTypeAndValue( oidNormalizer.getName(), ( String ) oidNormalizer.getNormalizer()
+                return new AttributeTypeAndValue( oidNormalizer.getAttributeTypeOid(), (
String ) oidNormalizer.getNormalizer()
                     .normalize( atav.getValue() ) );
 
             }

Modified: directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/schema/OidNormalizer.java
URL: http://svn.apache.org/viewvc/directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/schema/OidNormalizer.java?rev=412101&r1=412100&r2=412101&view=diff
==============================================================================
--- directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/schema/OidNormalizer.java
(original)
+++ directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/schema/OidNormalizer.java
Tue Jun  6 04:50:33 2006
@@ -26,7 +26,7 @@
 public class OidNormalizer
 {
     /** The oid */
-    private String name;
+    private String attributeTypeOid;
 
     /** The normalizer to be used with this OID */
     private Normalizer normalizer;
@@ -35,14 +35,12 @@
     /**
      * A constructor which accept two parameters
      * 
-     * @param oid
-     *            The oid
-     * @param normalizer
-     *            The associated normalizer
+     * @param attributeTypeOid the oid of the attributeType mapped to the normalizer
+     * @param normalizer the associated equality match based normalizer
      */
-    public OidNormalizer(String name, Normalizer normalizer)
+    public OidNormalizer( String attributeTypeOid, Normalizer normalizer )
     {
-        this.name = name;
+        this.attributeTypeOid = attributeTypeOid;
         this.normalizer = normalizer;
     }
 
@@ -50,12 +48,11 @@
     /**
      * A copy constructor.
      * 
-     * @param oidNormalizer
-     *            The OidNormalizer to copy from
+     * @param oidNormalizer the OidNormalizer to copy from
      */
-    public OidNormalizer(OidNormalizer oidNormalizer)
+    public OidNormalizer( OidNormalizer oidNormalizer )
     {
-        name = oidNormalizer.name;
+        attributeTypeOid = oidNormalizer.attributeTypeOid;
         normalizer = oidNormalizer.normalizer;
     }
 
@@ -72,37 +69,13 @@
 
 
     /**
-     * Set the normalizer
-     * 
-     * @param The
-     *            normalizer to be associated to the current OID
-     */
-    public void setNormalizer( Normalizer normalizer )
-    {
-        this.normalizer = normalizer;
-    }
-
-
-    /**
      * Get the current name
      * 
      * @return The current name
      */
-    public String getName()
-    {
-        return name;
-    }
-
-
-    /**
-     * Set the current OID
-     * 
-     * @param The
-     *            current OID
-     */
-    public void setName( String name )
+    public String getAttributeTypeOid()
     {
-        this.name = name;
+        return attributeTypeOid;
     }
 
 
@@ -111,6 +84,6 @@
      */
     public String toString()
     {
-        return "OidNormalizer : { " + name + ", " + normalizer.toString() + "}";
+        return "OidNormalizer : { " + attributeTypeOid + ", " + normalizer.toString() + "}";
     }
 }



Mime
View raw message