directory-commits mailing list archives

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

URL: http://svn.apache.org/viewcvs?rev=191280&view=rev
Log:
Added this intermediate class for AndFilter, OrFilter and NotFilter.

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

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/ConnectorFilter.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/ConnectorFilter.java?rev=191280&view=auto
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/ConnectorFilter.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/ConnectorFilter.java
Sat Jun 18 05:19:42 2005
@@ -0,0 +1,60 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.asn1.ldap.pojo.filters;
+
+import java.util.ArrayList;
+
+
+/**
+ * This Filter abstract class is used to store a set of filters used by OR/AND/NOT
+ * filters. 
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public abstract class ConnectorFilter extends Filter
+{
+    //~ Instance fields ----------------------------------------------------------------------------
+
+    /** The set of filters used by And/Or filters */
+    protected ArrayList filterSet;
+
+    //~ Constructors -------------------------------------------------------------------------------
+
+    /**
+     * The constructor. We wont initialize the ArrayList as it may not be used. 
+     */
+    public ConnectorFilter()
+    {
+    }
+
+    //~ 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