directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r883054 - /directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java
Date Sun, 22 Nov 2009 09:40:12 GMT
Author: elecharny
Date: Sun Nov 22 09:40:11 2009
New Revision: 883054

URL: http://svn.apache.org/viewvc?rev=883054&view=rev
Log:
o The Usage filed is set to null by default.
o Added a clear() method to remove references to other elements

Modified:
    directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java

Modified: directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java?rev=883054&r1=883053&r2=883054&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java
Sun Nov 22 09:40:11 2009
@@ -181,7 +181,7 @@
     private boolean canUserModify = true;
 
     /** the usage for this attributeType */
-    private UsageEnum usage = UsageEnum.USER_APPLICATIONS;
+    private UsageEnum usage;
 
     /** the length of this attribute in bytes */
     private int syntaxLength = 0;
@@ -326,7 +326,6 @@
         }
     }
     
-    
 
     /**
      * Gets whether or not this AttributeType is a collective attribute.
@@ -931,4 +930,21 @@
         
         return copy;
     }
+    
+    
+    /**
+     * {@inheritDoc}
+     */
+    public void clear()
+    {
+        // Clear the common elements
+        super.clear();
+        
+        // Clear the references
+        equality = null;
+        ordering = null;
+        substring = null;
+        superior = null;
+        syntax = null;
+    }
 }



Mime
View raw message