Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 1189 invoked from network); 23 Jul 2005 22:46:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jul 2005 22:46:51 -0000 Received: (qmail 86619 invoked by uid 500); 23 Jul 2005 22:46:50 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 86570 invoked by uid 500); 23 Jul 2005 22:46:50 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 86557 invoked by uid 99); 23 Jul 2005 22:46:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jul 2005 15:46:50 -0700 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 23 Jul 2005 15:46:45 -0700 Received: (qmail 1165 invoked by uid 65534); 23 Jul 2005 22:46:49 -0000 Message-ID: <20050723224649.1162.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.2 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 ); } }