directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r191279 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/Filter.java
Date Sat, 18 Jun 2005 12:18:42 GMT
Author: elecharny
Date: Sat Jun 18 05:18:41 2005
New Revision: 191279

URL: http://svn.apache.org/viewcvs?rev=191279&view=rev
Log:
Deleted the filterSet member. It is now in a special class : ConnectorFilter. There is no
reason that classes like PresentFilter
sees this member, which is dedicated to AND/OR and NOT filters.

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/Filter.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/Filter.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/Filter.java?rev=191279&r1=191278&r2=191279&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/Filter.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/Filter.java
Sat Jun 18 05:18:41 2005
@@ -18,44 +18,24 @@
 
 import org.apache.asn1.Asn1Object;
 
-import java.util.ArrayList;
-
 
 /**
- * A ldapObject to store the filter. A filter is seen as a tree with a root.
+ * An abstract Asn1Object used to store the filter. A filter is seen as a tree with a root.
+ * This class does nothing, it's just the root of all the different filters.
+ * 
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 public abstract class Filter extends Asn1Object
 {
-    //~ Instance fields ----------------------------------------------------------------------------
-
-    /** The set of filters used by And/Or filters */
-    protected ArrayList filterSet;
-
     //~ Constructors -------------------------------------------------------------------------------
 
     /**
-     * The constructor. We wont initialize the ArrayList as they may not be used. 
+     * The constructor.  
      */
     public Filter()
     {
     }
 
     //~ Methods ------------------------------------------------------------------------------------
-
-    /**
-     * Add a new Filter to the list.
-     * @param filter The filter to add
-     */
-    public void addFilter( Filter filter )
-    {
-
-        if ( this.filterSet == null )
-        {
-            this.filterSet = new ArrayList();
-        }
-
-        this.filterSet.add( filter );
-    }
 }



Mime
View raw message