directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r514291 - /directory/ldapstudio/trunk/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/model/schema/ObjectClassDescription.java
Date Sun, 04 Mar 2007 00:28:44 GMT
Author: seelmann
Date: Sat Mar  3 16:28:43 2007
New Revision: 514291

URL: http://svn.apache.org/viewvc?view=rev&rev=514291
Log:
Added method.

Modified:
    directory/ldapstudio/trunk/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/model/schema/ObjectClassDescription.java

Modified: directory/ldapstudio/trunk/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/model/schema/ObjectClassDescription.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/model/schema/ObjectClassDescription.java?view=diff&rev=514291&r1=514290&r2=514291
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/model/schema/ObjectClassDescription.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/model/schema/ObjectClassDescription.java
Sat Mar  3 16:28:43 2007
@@ -286,6 +286,21 @@
         this.superiorObjectClassDescriptionNames = superiorObjectClassDescriptionNames;
     }
 
+    
+    /**
+     * 
+     * @return all superior (parent) object class descriptions, may be an empty array
+     */
+    public ObjectClassDescription[] getSuperiorObjectClassDescriptions()
+    {
+        String[] names = getSuperiorObjectClassDescriptionNames();
+        ObjectClassDescription[] superiorOcds = new ObjectClassDescription[names.length];
+        for ( int i = 0; i < superiorOcds.length; i++ )
+        {
+            superiorOcds[i] = getSchema().getObjectClassDescription( names[i] );
+        }
+        return superiorOcds;
+    }
 
     /**
      * 



Mime
View raw message