directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r431665 - /directory/sandbox/akarasulu/apacheds-2.0/schema/normalizers/src/main/java/org/apache/directory/server2/schema/normalizers/NoOpNormalizer.java
Date Tue, 15 Aug 2006 18:45:24 GMT
Author: akarasulu
Date: Tue Aug 15 11:45:24 2006
New Revision: 431665

URL: http://svn.apache.org/viewvc?rev=431665&view=rev
Log:
make no op normalizer compile

Modified:
    directory/sandbox/akarasulu/apacheds-2.0/schema/normalizers/src/main/java/org/apache/directory/server2/schema/normalizers/NoOpNormalizer.java

Modified: directory/sandbox/akarasulu/apacheds-2.0/schema/normalizers/src/main/java/org/apache/directory/server2/schema/normalizers/NoOpNormalizer.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/schema/normalizers/src/main/java/org/apache/directory/server2/schema/normalizers/NoOpNormalizer.java?rev=431665&r1=431664&r2=431665&view=diff
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/schema/normalizers/src/main/java/org/apache/directory/server2/schema/normalizers/NoOpNormalizer.java
(original)
+++ directory/sandbox/akarasulu/apacheds-2.0/schema/normalizers/src/main/java/org/apache/directory/server2/schema/normalizers/NoOpNormalizer.java
Tue Aug 15 11:45:24 2006
@@ -18,6 +18,9 @@
 
 
 import java.io.Serializable;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
 
 import org.apache.directory.server2.schema.descriptions.NormalizerDescription;
 
@@ -32,17 +35,39 @@
 {
     static final long serialVersionUID = -7817763636668562489L;
 
+    private final String matchingRuleNumericOid;
+    
+    
+    public NoOpNormalizer( String matchingRuleNumericOid )
+    {
+        this.matchingRuleNumericOid = matchingRuleNumericOid;
+    }
 
+    
     /**
      * Returns the value argument as-is without alterations all the time.
-     * 
-     * @param value
-     *            any value
-     * @return the value argument returned as-is
-     * @see org.apache.directory.shared.ldap.schema.NormalizerDescription#normalize(java.lang.Object)
      */
     public Object normalize( Object value )
     {
         return value;
+    }
+
+
+    public final String getMatchingRuleDescriptionOid()
+    {
+        return matchingRuleNumericOid;
+    }
+
+
+    public String getDescription()
+    {
+        return "Do nothing no operation normalizer";
+    }
+
+
+    @SuppressWarnings("unchecked")
+    public Map<String, List<String>> getExtensions()
+    {
+        return Collections.EMPTY_MAP;
     }
 }



Mime
View raw message