directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r892667 - in /directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries: DefaultSchema.java Schema.java
Date Sun, 20 Dec 2009 22:13:29 GMT
Author: elecharny
Date: Sun Dec 20 22:13:28 2009
New Revision: 892667

URL: http://svn.apache.org/viewvc?rev=892667&view=rev
Log:
Added the missing addDependencies() method

Modified:
    directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultSchema.java
    directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Schema.java

Modified: directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultSchema.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultSchema.java?rev=892667&r1=892666&r2=892667&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultSchema.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultSchema.java
Sun Dec 20 22:13:28 2009
@@ -147,6 +147,19 @@
     /**
      * {@inheritDoc}
      */
+    public void addDependencies( String... dependencies )
+    {
+        if ( dependencies != null )
+        {
+            this.dependencies = new String[dependencies.length];
+            System.arraycopy( this.dependencies, 0, dependencies, 0, dependencies.length
);
+        }
+    }
+
+    
+    /**
+     * {@inheritDoc}
+     */
     public String getOwner()
     {
         return owner;

Modified: directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Schema.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Schema.java?rev=892667&r1=892666&r2=892667&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Schema.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Schema.java
Sun Dec 20 22:13:28 2009
@@ -88,6 +88,14 @@
     
     
     /**
+     * Add a set of dependencies this schema uses.
+     *
+     * @param strings The dependencies to add
+     */
+    void addDependencies( String... dependencies );
+    
+    
+    /**
      * Gets the set of SchemaObject elements declared in this schema
      *
      * @return The Set of associated SchemaObjects



Mime
View raw message