directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r568062 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/ObjectClassImpl.java
Date Tue, 21 Aug 2007 11:19:51 GMT
Author: elecharny
Date: Tue Aug 21 04:19:46 2007
New Revision: 568062

URL: http://svn.apache.org/viewvc?rev=568062&view=rev
Log:
Added three methods : isStructural(), isAbstract() and isAuxilliary()
Renamed the objectClassTypeEnum member to objectClassType

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/ObjectClassImpl.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/ObjectClassImpl.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/ObjectClassImpl.java?rev=568062&r1=568061&r2=568062&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/ObjectClassImpl.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/ObjectClassImpl.java
Tue Aug 21 04:19:46 2007
@@ -45,7 +45,7 @@
     
     private final Registries registries;
 
-    private ObjectClassTypeEnum objectClassTypeEnum;
+    private ObjectClassTypeEnum objectClassType;
     private ObjectClass[] superClasses;
     private AttributeType[] mayList = EMPTY_AT_ARRAY;
     private AttributeType[] mustList = EMPTY_AT_ARRAY;
@@ -180,12 +180,30 @@
 
     public ObjectClassTypeEnum getType()
     {
-        return objectClassTypeEnum;
+        return objectClassType;
     }
     
     
-    void setType( ObjectClassTypeEnum objectClassTypeEnum )
+    public boolean isStructural()
     {
-        this.objectClassTypeEnum = objectClassTypeEnum;
+    	return objectClassType == ObjectClassTypeEnum.STRUCTURAL;
+    }
+
+
+    public boolean isAbstract()
+    {
+    	return objectClassType == ObjectClassTypeEnum.ABSTRACT;
+    }
+
+    
+    public boolean isAuxiliary()
+    {
+    	return objectClassType == ObjectClassTypeEnum.AUXILIARY;
+    }
+
+    
+    void setType( ObjectClassTypeEnum objectClassType )
+    {
+        this.objectClassType = objectClassType;
     }
 }



Mime
View raw message