directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r881385 - /directory/shared/branches/shared-schema/ldap-schema-loader/src/main/java/org/apache/directory/shared/schema/loader/ldif/SchemaEntityFactory.java
Date Tue, 17 Nov 2009 17:19:41 GMT
Author: elecharny
Date: Tue Nov 17 17:19:41 2009
New Revision: 881385

URL: http://svn.apache.org/viewvc?rev=881385&view=rev
Log:
Added the missing SyntaxLength creation

Modified:
    directory/shared/branches/shared-schema/ldap-schema-loader/src/main/java/org/apache/directory/shared/schema/loader/ldif/SchemaEntityFactory.java

Modified: directory/shared/branches/shared-schema/ldap-schema-loader/src/main/java/org/apache/directory/shared/schema/loader/ldif/SchemaEntityFactory.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap-schema-loader/src/main/java/org/apache/directory/shared/schema/loader/ldif/SchemaEntityFactory.java?rev=881385&r1=881384&r2=881385&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap-schema-loader/src/main/java/org/apache/directory/shared/schema/loader/ldif/SchemaEntityFactory.java
(original)
+++ directory/shared/branches/shared-schema/ldap-schema-loader/src/main/java/org/apache/directory/shared/schema/loader/ldif/SchemaEntityFactory.java
Tue Nov 17 17:19:41 2009
@@ -918,6 +918,15 @@
             attributeType.setSyntaxOid( mSyntax.getString() );
         }
         
+        // Syntax Length
+        EntryAttribute mSyntaxLength = entry.get( MetaSchemaConstants.M_LENGTH_AT );
+        
+        if ( mSyntaxLength != null )
+        {
+            attributeType.setSyntaxLength( Integer.parseInt( mSyntaxLength.getString() )
);
+        }
+
+        
         // Equality
         EntryAttribute mEquality = entry.get( MetaSchemaConstants.M_EQUALITY_AT );
         
@@ -1144,7 +1153,7 @@
         
         // The specification field
         /*
-         * TODO : create the M_SPECIFICATION_ATAT
+         * TODO : create the M_SPECIFICATION_AT
         EntryAttribute mSpecification = entry.get( MetaSchemaConstants.M_SPECIFICATION_AT
);
         
         if ( mSpecification != null )



Mime
View raw message