directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r549903 - in /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema: SchemaEntityFactory.java SchemaService.java SyntaxImpl.java
Date Fri, 22 Jun 2007 17:37:15 GMT
Author: elecharny
Date: Fri Jun 22 10:37:14 2007
New Revision: 549903

URL: http://svn.apache.org/viewvc?view=rev&rev=549903
Log:
Fixed a typo : readible instead of readable

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaEntityFactory.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SyntaxImpl.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaEntityFactory.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaEntityFactory.java?view=diff&rev=549903&r1=549902&r2=549903
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaEntityFactory.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaEntityFactory.java
Fri Jun 22 10:37:14 2007
@@ -542,10 +542,10 @@
         SyntaxImpl syntax = new SyntaxImpl( oid, targetRegistries.getSyntaxCheckerRegistry()
);
         syntax.setSchema( schema );
         
-        if ( entry.get( MetaSchemaConstants.X_HUMAN_READIBLE_AT ) != null )
+        if ( entry.get( MetaSchemaConstants.X_HUMAN_READABLE_AT ) != null )
         {
-            String val = ( String ) entry.get( MetaSchemaConstants.X_HUMAN_READIBLE_AT ).get();
-            syntax.setHumanReadible( val.toUpperCase().equals( "TRUE" ) );
+            String val = ( String ) entry.get( MetaSchemaConstants.X_HUMAN_READABLE_AT ).get();
+            syntax.setHumanReadable( val.toUpperCase().equals( "TRUE" ) );
         }
         
         if ( entry.get( MetaSchemaConstants.M_DESCRIPTION_AT ) != null )

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java?view=diff&rev=549903&r1=549902&r2=549903
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
Fri Jun 22 10:37:14 2007
@@ -1600,7 +1600,7 @@
                 continue;
             }
 
-            asBinary = !type.getSyntax().isHumanReadible();
+            asBinary = !type.getSyntax().isHumanReadable();
             asBinary = asBinary || ( ( binaries != null ) && ( binaries.contains(
type ) ) );
             asBinary = asBinary || binaries.contains( type );
 
@@ -1719,7 +1719,7 @@
         }
 
         // Check the attributes values and transform them to String if necessary
-        assertHumanReadible( entry );
+        assertHumanReadable( entry );
         
         // Now check the syntaxes
         assertSyntaxes( entry );
@@ -1903,10 +1903,10 @@
     }
     
     /**
-     * Check that all the attribute's values which are Human Readible can be transformed
+     * Check that all the attribute's values which are Human Readable can be transformed
      * to valid String if they are stored as byte[].
      */
-    private void assertHumanReadible( Attributes entry ) throws NamingException
+    private void assertHumanReadable( Attributes entry ) throws NamingException
     {
         NamingEnumeration attributes = entry.getAll();
         boolean isEntryModified = false;
@@ -1920,7 +1920,7 @@
             AttributeType attributeType = registries.getAttributeTypeRegistry().lookup( attribute.getID()
);
 
             // If the attributeType is H-R, check all of its values
-            if ( attributeType.getSyntax().isHumanReadible() )
+            if ( attributeType.getSyntax().isHumanReadable() )
             {
                 Enumeration values = attribute.getAll();
                 Attribute clone = null;
@@ -1962,7 +1962,7 @@
                     }
                     else
                     {
-                        throw new NamingException( "The value stored in an Human Readible
attribute is not a String" );
+                        throw new NamingException( "The value stored in an Human Readable
attribute is not a String" );
                     }
                 }
 

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SyntaxImpl.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SyntaxImpl.java?view=diff&rev=549903&r1=549902&r2=549903
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SyntaxImpl.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SyntaxImpl.java
Fri Jun 22 10:37:14 2007
@@ -53,9 +53,9 @@
     }
     
     
-    public void setHumanReadible( boolean humanReadible )
+    public void setHumanReadable( boolean humanReadable )
     {
-        super.setHumanReadible( humanReadible );
+        super.setHumanReadable( humanReadable );
     }
     
     



Mime
View raw message