directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r224564 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/AttributeValueAssertionFilter.java
Date Sat, 23 Jul 2005 22:46:49 GMT
Author: elecharny
Date: Sat Jul 23 15:46:46 2005
New Revision: 224564

URL: http://svn.apache.org/viewcvs?rev=224564&view=rev
Log:
- Added a filterType member. This is necessary to be able to distinguish filters
- Added a toString method

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

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/AttributeValueAssertionFilter.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/AttributeValueAssertionFilter.java?rev=224564&r1=224563&r2=224564&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/AttributeValueAssertionFilter.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/filters/AttributeValueAssertionFilter.java
Sat Jul 23 15:46:46 2005
@@ -27,18 +27,26 @@
 public class AttributeValueAssertionFilter extends Filter
 {
     //~ Instance fields ----------------------------------------------------------------------------
+
     /** The assertion. */
     private AttributeValueAssertion assertion;
 
-    //~ Methods ------------------------------------------------------------------------------------
+    /** The filter type */
+    private int filterType;
+
+    //~ Constructors -------------------------------------------------------------------------------
 
     /**
      * The constructor. 
-     */
-    public AttributeValueAssertionFilter()
+     * @param filterType DOCUMENT ME!
+    */
+    public AttributeValueAssertionFilter(  int filterType )
     {
+        this.filterType = filterType;
     }
-    
+
+    //~ Methods ------------------------------------------------------------------------------------
+
     /**
      * Get the assertion
      *
@@ -57,5 +65,35 @@
     public void setAssertion( AttributeValueAssertion assertion )
     {
         this.assertion = assertion;
+    }
+
+    /**
+     * Get the filter type
+     *
+     * @return Returns the filterType.
+     */
+    public int getFilterType()
+    {
+        return filterType;
+    }
+
+    /**
+     * Set the filter type
+     *
+     * @param filterType The filterType to set.
+     */
+    public void setFilterType( int filterType )
+    {
+        this.filterType = filterType;
+    }
+
+    /**
+     * Return a string compliant with RFC 2254 representing an item filter
+     *
+     * @return The item filter string
+     */
+    public String toString()
+    {
+        return assertion.toStringRFC2254( filterType );
     }
 }



Mime
View raw message