directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r185059 - in /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters: ./ AndFilterPOJO.java AttributeValueAssertionFilterPOJO.java FilterPOJO.java NotFilterPOJO.java OrFilterPOJO.java
Date Mon, 06 Jun 2005 22:20:10 GMT
Author: elecharny
Date: Mon Jun  6 15:20:08 2005
New Revision: 185059

URL: http://svn.apache.org/viewcvs?rev=185059&view=rev
Log:
Added some of the POJOs used to decode a SearchRequest message. 

Added:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/AndFilterPOJO.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/AttributeValueAssertionFilterPOJO.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/FilterPOJO.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/NotFilterPOJO.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/OrFilterPOJO.java

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/AndFilterPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/AndFilterPOJO.java?rev=185059&view=auto
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/AndFilterPOJO.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/AndFilterPOJO.java
Mon Jun  6 15:20:08 2005
@@ -0,0 +1,50 @@
+/*
+ *   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;
+
+/**
+ * And Filter POJO to store the And filter.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class AndFilterPOJO extends FilterPOJO
+{
+    //~ Instance fields ----------------------------------------------------------------------------
+
+    //~ Methods ------------------------------------------------------------------------------------
+
+    /**
+     * The constructor. We wont initialize the ArrayList as they may not be used. 
+     */
+    public AndFilterPOJO()
+    {
+        super();
+    }
+    
+    /**
+     * Get the AndFilter.
+     *
+     * @return Returns the andFilter.
+     */
+    public ArrayList getAndFilter()
+    {
+        return filterSet;
+    }
+
+}

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/AttributeValueAssertionFilterPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/AttributeValueAssertionFilterPOJO.java?rev=185059&view=auto
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/AttributeValueAssertionFilterPOJO.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/AttributeValueAssertionFilterPOJO.java
Mon Jun  6 15:20:08 2005
@@ -0,0 +1,61 @@
+/*
+ *   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 org.apache.asn1.ldap.pojo.AttributeValueAssertionPOJO;
+
+
+/**
+ * POJO to store the filter. A filter is seen as a tree with a root.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class AttributeValueAssertionFilterPOJO extends FilterPOJO
+{
+    //~ Instance fields ----------------------------------------------------------------------------
+    /** The assertion. */
+    private AttributeValueAssertionPOJO assertion;
+
+    //~ Methods ------------------------------------------------------------------------------------
+
+    /**
+     * The constructor. 
+     */
+    public AttributeValueAssertionFilterPOJO()
+    {
+    }
+    
+    /**
+     * Get the assertion
+     *
+     * @return Returns the assertion.
+     */
+    public AttributeValueAssertionPOJO getAssertion()
+    {
+        return assertion;
+    }
+
+    /**
+     * Set the assertion
+     *
+     * @param assertion The assertion to set.
+     */
+    public void setAssertion( AttributeValueAssertionPOJO assertion )
+    {
+        this.assertion = assertion;
+    }
+}

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/FilterPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/FilterPOJO.java?rev=185059&view=auto
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/FilterPOJO.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/FilterPOJO.java
Mon Jun  6 15:20:08 2005
@@ -0,0 +1,82 @@
+/*
+ *   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 org.apache.asn1.AbstractPOJO;
+import org.apache.asn1.ldap.pojo.SubstringFilterPOJO;
+
+import java.util.ArrayList;
+
+
+/**
+ * POJO to store the filter. A filter is seen as a tree with a root.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public abstract class FilterPOJO extends AbstractPOJO
+{
+    //~ Instance fields ----------------------------------------------------------------------------
+    /** The set of filters used by And/Or filters */
+    protected ArrayList filterSet;
+
+    /** The 'substrings' filter */
+    private SubstringFilterPOJO SubStrings;
+
+    //~ Methods ------------------------------------------------------------------------------------
+
+    /**
+     * The constructor. We wont initialize the ArrayList as they may not be used. 
+     */
+    public FilterPOJO()
+    {
+    }
+    
+    /**
+     * Add a new Filter to the list.
+     * @param Filter The Filter to add
+     */
+    public void addFilter( FilterPOJO filter )
+    {
+        if (this.filterSet == null)
+        {
+            this.filterSet = new ArrayList();
+        }
+        
+        this.filterSet.add( filter );
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @return Returns the subStrings.
+     */
+    public SubstringFilterPOJO getSubStrings()
+    {
+        return SubStrings;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @param subStrings The subStrings to set.
+     */
+    public void setSubStrings( SubstringFilterPOJO subStrings )
+    {
+        SubStrings = subStrings;
+    }
+
+}

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/NotFilterPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/NotFilterPOJO.java?rev=185059&view=auto
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/NotFilterPOJO.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/NotFilterPOJO.java
Mon Jun  6 15:20:08 2005
@@ -0,0 +1,68 @@
+/*
+ *   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;
+
+/**
+ * Not Filter POJO to store the Not filter.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class NotFilterPOJO extends FilterPOJO
+{
+    //~ Instance fields ----------------------------------------------------------------------------
+    /** The 'not' filter. */
+    private FilterPOJO notFilter;
+
+    //~ Methods ------------------------------------------------------------------------------------
+
+    /**
+     * The constructor. 
+     */
+    public NotFilterPOJO()
+    {
+    }
+    
+    /**
+     * Subclass the addFilterMethod, as this is specific for a NotFilter
+     * (we cannot have many elements).
+     * @param Filter The Filter to add
+     */
+    public void addFilter( FilterPOJO filter )
+    {
+        notFilter = filter;
+    }
+
+    /**
+     * Get the NotFilter
+     *
+     * @return Returns the notFilter.
+     */
+    public FilterPOJO getNotFilter()
+    {
+        return notFilter;
+    }
+
+    /**
+     * Set the NotFilter
+     *
+     * @param not The notFilter to set.
+     */
+    public void setNotFilter( FilterPOJO notFilter )
+    {
+        this.notFilter = notFilter;
+    }
+}

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/OrFilterPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/OrFilterPOJO.java?rev=185059&view=auto
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/OrFilterPOJO.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/OrFilterPOJO.java
Mon Jun  6 15:20:08 2005
@@ -0,0 +1,49 @@
+/*
+ *   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;
+
+
+/**
+ * Or Filter POJO to store the Or filter.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class OrFilterPOJO extends FilterPOJO
+{
+    //~ Instance fields ----------------------------------------------------------------------------
+
+    //~ Methods ------------------------------------------------------------------------------------
+
+    /**
+     * The constructor. We wont initialize the ArrayList as they may not be used. 
+     */
+    public OrFilterPOJO()
+    {
+    }
+    
+    /**
+     * Get the OrFilter
+     *
+     * @return Returns the orFilter.
+     */
+    public ArrayList getOrFilter()
+    {
+        return filterSet;
+    }
+}



Mime
View raw message