directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r808384 - in /directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries: DefaultSchema.java Registries.java
Date Thu, 27 Aug 2009 12:07:05 GMT
Author: akarasulu
Date: Thu Aug 27 12:07:04 2009
New Revision: 808384

URL: http://svn.apache.org/viewvc?rev=808384&view=rev
Log:
adding toString() method to default schema implementation

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/Registries.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=808384&r1=808383&r2=808384&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
Thu Aug 27 12:07:04 2009
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.ldap.schema.registries;
 
+import java.util.Arrays;
+
 
 
 /**
@@ -141,4 +143,18 @@
     {
         this.disabled = false;
     }
+    
+    
+    public String toString()
+    {
+        StringBuilder sb = new StringBuilder( "\tSchema Name: " );
+        sb.append( this.name );
+        sb.append( "\n\t\tDisabled: " );
+        sb.append( this.disabled );
+        sb.append( "\n\t\tOwner: " );
+        sb.append( this.owner );
+        sb.append( "\n\t\tDependencies: " );
+        sb.append( Arrays.toString( dependencies ) );
+        return sb.toString();
+    }
 }

Modified: directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java?rev=808384&r1=808383&r2=808384&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java
Thu Aug 27 12:07:04 2009
@@ -326,7 +326,7 @@
 
 
     /**
-     * Gets a schema that has been loaded into these registries.
+     * Gets a schema that has been loaded into these Registries.
      * 
      * @param schemaName the name of the schema to lookup
      * @return the loaded Schema if one corresponding to the name exists



Mime
View raw message