directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r474740 - /directory/branches/apacheds-schema/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/UsageEnum.java
Date Tue, 14 Nov 2006 11:23:42 GMT
Author: elecharny
Date: Tue Nov 14 03:23:41 2006
New Revision: 474740

URL: http://svn.apache.org/viewvc?view=rev&rev=474740
Log:
Fixed some errors in test due to Enum modifications

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

Modified: directory/branches/apacheds-schema/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/UsageEnum.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds-schema/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/UsageEnum.java?view=diff&rev=474740&r1=474739&r2=474740
==============================================================================
--- directory/branches/apacheds-schema/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/UsageEnum.java
(original)
+++ directory/branches/apacheds-schema/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/UsageEnum.java
Tue Nov 14 03:23:41 2006
@@ -48,9 +48,9 @@
     DISTRIBUTED_OPERATION( 2 ),
 
     /** value for attributes with dSAOperation usage */
-    DS_AOPERATION( 3 );
+    DSA_OPERATION( 3 );
 
-    private int usage;
+    private int value;
 
     /**
      * Private construct so no other instances can be created other than the
@@ -61,9 +61,9 @@
      * @param value
      *            the integer value of the enumeration.
      */
-    private UsageEnum( int usage )
+    private UsageEnum( int value )
     {
-        this.usage = usage;
+        this.value = value;
     }
 
 
@@ -78,5 +78,14 @@
     public static UsageEnum getUsage( String usage )
     {
         return valueOf( usage );
+    }
+    
+    /**
+     * 
+     * @return The value associated with the current element.
+     */
+    public int getValue()
+    {
+    	return value;
     }
 }



Mime
View raw message