directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r412561 - in /directory/branches/shared/optimization: ./ asn1/ ldap/ ldap/src/main/java/org/apache/directory/shared/ldap/filter/LeafNode.java ldap/src/main/java/org/apache/directory/shared/ldap/filter/SimpleNode.java
Date Wed, 07 Jun 2006 21:44:53 GMT
Author: akarasulu
Date: Wed Jun  7 14:44:53 2006
New Revision: 412561

URL: http://svn.apache.org/viewvc?rev=412561&view=rev
Log:
ignore netbeans files

Modified:
    directory/branches/shared/optimization/   (props changed)
    directory/branches/shared/optimization/asn1/   (props changed)
    directory/branches/shared/optimization/ldap/   (props changed)
    directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/filter/LeafNode.java
    directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SimpleNode.java

Propchange: directory/branches/shared/optimization/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed Jun  7 14:44:53 2006
@@ -1,3 +1,5 @@
 *.iml
 *.ipr
 *.iws
+
+nbproject

Propchange: directory/branches/shared/optimization/asn1/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed Jun  7 14:44:53 2006
@@ -14,3 +14,5 @@
 classes
 bin
 build
+
+nbproject

Propchange: directory/branches/shared/optimization/ldap/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed Jun  7 14:44:53 2006
@@ -10,3 +10,5 @@
 .project
 .classpath
 *~
+
+nbproject

Modified: directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/filter/LeafNode.java
URL: http://svn.apache.org/viewvc/directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/filter/LeafNode.java?rev=412561&r1=412560&r2=412561&view=diff
==============================================================================
--- directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/filter/LeafNode.java
(original)
+++ directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/filter/LeafNode.java
Wed Jun  7 14:44:53 2006
@@ -26,22 +26,19 @@
 public abstract class LeafNode extends AbstractExprNode
 {
     /** attribute on which this leaf is based */
-    private final String m_attribute;
+    private String attribute;
 
 
     /**
      * Creates a leaf node.
      * 
-     * @param a_attribute
-     *            the attribute this node is based on
-     * @param a_type
-     *            the type of this leaf node
+     * @param attribute the attribute this node is based on
+     * @param type the type of this leaf node
      */
-    protected LeafNode(String a_attribute, int a_type)
+    protected LeafNode( String attribute, int type )
     {
-        super( a_type );
-
-        m_attribute = a_attribute;
+        super( type );
+        this.attribute = attribute;
     }
 
 
@@ -63,7 +60,18 @@
      */
     public final String getAttribute()
     {
-        return m_attribute;
+        return attribute;
+    }
+    
+    
+    /**
+     * Sets the attribute this leaf node is based on.
+     * 
+     * @param attribute the attribute that is asserted by this filter node
+     */
+    public void setAttribute( String attribute )
+    {
+        this.attribute = attribute;
     }
 
 
@@ -94,6 +102,6 @@
             return false;
         }
 
-        return m_attribute.equals( ( ( LeafNode ) other ).getAttribute() );
+        return attribute.equals( ( ( LeafNode ) other ).getAttribute() );
     }
 }

Modified: directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SimpleNode.java
URL: http://svn.apache.org/viewvc/directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SimpleNode.java?rev=412561&r1=412560&r2=412561&view=diff
==============================================================================
--- directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SimpleNode.java
(original)
+++ directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SimpleNode.java
Wed Jun  7 14:44:53 2006
@@ -42,7 +42,7 @@
      * @param type
      *            the type of the assertion
      */
-    public SimpleNode(String attribute, byte[] value, int type)
+    public SimpleNode( String attribute, byte[] value, int type )
     {
         this( attribute, StringTools.utf8ToString( value ), type );
     }
@@ -58,7 +58,7 @@
      * @param type
      *            the type of the assertion
      */
-    public SimpleNode(String attribute, String value, int type)
+    public SimpleNode( String attribute, String value, int type )
     {
         super( attribute, type );
         this.value = value;



Mime
View raw message