directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 54913 - incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/bootstrap
Date Sat, 16 Oct 2004 09:23:16 GMT
Author: akarasulu
Date: Sat Oct 16 02:23:15 2004
New Revision: 54913

Modified:
   incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/bootstrap/CoreSyntaxProducer.java
Log:
switched over to being a producer now

Modified: incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/bootstrap/CoreSyntaxProducer.java
==============================================================================
--- incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/bootstrap/CoreSyntaxProducer.java
(original)
+++ incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/bootstrap/CoreSyntaxProducer.java
Sat Oct 16 02:23:15 2004
@@ -17,7 +17,9 @@
 package org.apache.eve.schema.bootstrap;
 
 
-import org.apache.ldap.common.schema.BaseSyntax;
+import org.apache.ldap.common.schema.AbstractSyntax;
+import org.apache.ldap.common.schema.SyntaxChecker;
+import org.apache.eve.schema.SyntaxCheckerRegistry;
 
 import javax.naming.NamingException;
 
@@ -111,6 +113,7 @@
     public void produce( BootstrapRegistries registries, ProducerCallback cb )
         throws NamingException
     {
+        SyntaxCheckerRegistry syntaxCheckerRegistry = registries.getSyntaxCheckerRegistry();
         MutableSyntax syntax;
 
         /*
@@ -131,52 +134,52 @@
          * 8 Certificate List                N  1.3.6.1.4.1.1466.115.121.1.9
          * 9 Certificate Pair                N  1.3.6.1.4.1.1466.115.121.1.10
          */
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.1" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.1", syntaxCheckerRegistry
);
         syntax.setName( "ACI Item" );
         syntax.setHumanReadible( false );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.2" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.2", syntaxCheckerRegistry
);
         syntax.setName( "Access Point" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.3" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.3", syntaxCheckerRegistry
);
         syntax.setName( "Attribute Type Description" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.4" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.4", syntaxCheckerRegistry
);
         syntax.setName( "Audio" );
         syntax.setHumanReadible( false );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.5" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.5", syntaxCheckerRegistry
);
         syntax.setName( "Binary" );
         syntax.setHumanReadible( false );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.6" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.6", syntaxCheckerRegistry
);
         syntax.setName( "Bit String" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.7" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.7", syntaxCheckerRegistry
);
         syntax.setName( "Boolean" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.8" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.8", syntaxCheckerRegistry
);
         syntax.setName( "Certificate" );
         syntax.setHumanReadible( false );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.9" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.9", syntaxCheckerRegistry
);
         syntax.setName( "Certificate List" );
         syntax.setHumanReadible( false );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.10" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.10", syntaxCheckerRegistry
);
         syntax.setName( "Certificate Pair" );
         syntax.setHumanReadible( false );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
@@ -195,52 +198,52 @@
          * 18 DSA Quality Syntax              Y  1.3.6.1.4.1.1466.115.121.1.19
          * 19 DSE Type                        Y  1.3.6.1.4.1.1466.115.121.1.20
          */
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.11" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.11", syntaxCheckerRegistry
);
         syntax.setName( "Country String" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.12" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.12", syntaxCheckerRegistry
);
         syntax.setName( "DN" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.13" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.13", syntaxCheckerRegistry
);
         syntax.setName( "Data Quality Syntax" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.14" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.14", syntaxCheckerRegistry
);
         syntax.setName( "Delivery Method" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.15" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.15", syntaxCheckerRegistry
);
         syntax.setName( "Directory String" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.16" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.16", syntaxCheckerRegistry
);
         syntax.setName( "DIT Content Rule Description" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.17" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.17", syntaxCheckerRegistry
);
         syntax.setName( "DIT Structure Rule Description" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.18" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.18", syntaxCheckerRegistry
);
         syntax.setName( "DL Submit Permission" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.19" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.19", syntaxCheckerRegistry
);
         syntax.setName( "DSA Quality Syntax" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.20" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.20", syntaxCheckerRegistry
);
         syntax.setName( "DSE Type" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
@@ -259,52 +262,52 @@
          * 28 Master And Shadow Access Points Y  1.3.6.1.4.1.1466.115.121.1.29
          * 29 Matching Rule Description       Y  1.3.6.1.4.1.1466.115.121.1.30
          */
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.21" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.21", syntaxCheckerRegistry
);
         syntax.setName( "Enhanced Guide" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.22" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.22", syntaxCheckerRegistry
);
         syntax.setName( "Facsimile Telephone Number" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.23" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.23", syntaxCheckerRegistry
);
         syntax.setName( "Fax" );
         syntax.setHumanReadible( false );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.24" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.24", syntaxCheckerRegistry
);
         syntax.setName( "Generalized Time" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.25" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.25", syntaxCheckerRegistry
);
         syntax.setName( "Guide" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.26" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.26", syntaxCheckerRegistry
);
         syntax.setName( "IA5 String" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.27" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.27", syntaxCheckerRegistry
);
         syntax.setName( "INTEGER" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.28" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.28", syntaxCheckerRegistry
);
         syntax.setName( "JPEG" );
         syntax.setHumanReadible( false );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.29" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.29", syntaxCheckerRegistry
);
         syntax.setName( "Master And Shadow Access Points" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.30" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.30", syntaxCheckerRegistry
);
         syntax.setName( "Matching Rule Description" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
@@ -323,52 +326,52 @@
          * 38 Other Mailbox                   Y  1.3.6.1.4.1.1466.115.121.1.39
          * 39 Octet String                    Y  1.3.6.1.4.1.1466.115.121.1.40
          */
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.31" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.31", syntaxCheckerRegistry
);
         syntax.setName( "Matching Rule Use Description" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.32" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.32", syntaxCheckerRegistry
);
         syntax.setName( "Mail Preference" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.33" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.33", syntaxCheckerRegistry
);
         syntax.setName( "MHS OR Address" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.34" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.34", syntaxCheckerRegistry
);
         syntax.setName( "Name And Optional UID" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.35" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.35", syntaxCheckerRegistry
);
         syntax.setName( "Name Form Description" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.36" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.36", syntaxCheckerRegistry
);
         syntax.setName( "Numeric String" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.37" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.37", syntaxCheckerRegistry
);
         syntax.setName( "Object Class Description" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.38" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.38", syntaxCheckerRegistry
);
         syntax.setName( "OID" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.39" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.39", syntaxCheckerRegistry
);
         syntax.setName( "Other Mailbox" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.40" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.40", syntaxCheckerRegistry
);
         syntax.setName( "Octet String" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
@@ -387,52 +390,52 @@
          * 48 Supported Algorithm             N  1.3.6.1.4.1.1466.115.121.1.49
          * 49 Telephone Number                Y  1.3.6.1.4.1.1466.115.121.1.50
          */
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.41" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.41", syntaxCheckerRegistry
);
         syntax.setName( "Postal Address" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.42" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.42", syntaxCheckerRegistry
);
         syntax.setName( "Protocol Information" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.43" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.43", syntaxCheckerRegistry
);
         syntax.setName( "Presentation Address" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.44" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.44", syntaxCheckerRegistry
);
         syntax.setName( "Printable String" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.45" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.45", syntaxCheckerRegistry
);
         syntax.setName( "Subtree Specification" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.46" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.46", syntaxCheckerRegistry
);
         syntax.setName( "Supplier Information" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.47" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.47", syntaxCheckerRegistry
);
         syntax.setName( "Supplier Or Consumer" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.48" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.48", syntaxCheckerRegistry
);
         syntax.setName( "Supplier And Consumer" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.49" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.49", syntaxCheckerRegistry
);
         syntax.setName( "Supported Algorithm" );
         syntax.setHumanReadible( false );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.50" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.50", syntaxCheckerRegistry
);
         syntax.setName( "Telephone Number" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
@@ -449,42 +452,42 @@
          * 56 LDAP BootstrapSchema Description         Y  1.3.6.1.4.1.1466.115.121.1.57
          * 57 Substring Assertion             Y  1.3.6.1.4.1.1466.115.121.1.58
          */
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.51" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.51", syntaxCheckerRegistry
);
         syntax.setName( "Teletex Terminal Identifier" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.52" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.52", syntaxCheckerRegistry
);
         syntax.setName( "Telex Number" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.53" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.53", syntaxCheckerRegistry
);
         syntax.setName( "UTC Time" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.54" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.54", syntaxCheckerRegistry
);
         syntax.setName( "LDAP Syntax Description" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.55" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.55", syntaxCheckerRegistry
);
         syntax.setName( "Modify Rights" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.56" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.56", syntaxCheckerRegistry
);
         syntax.setName( "LDAP BootstrapSchema Definition" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.57" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.57", syntaxCheckerRegistry
);
         syntax.setName( "LDAP BootstrapSchema Description" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
 
-        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.58" );
+        syntax = new MutableSyntax( "1.3.6.1.4.1.1466.115.121.1.58", syntaxCheckerRegistry
);
         syntax.setName( "Substring Assertion" );
         syntax.setHumanReadible( true );
         cb.schemaObjectProduced( this, syntax.getOid(), syntax );
@@ -492,13 +495,18 @@
 
 
     /**
-     * Used to access protected mutators of BaseSyntax from within this class.
+     * Used to access protected mutators of AbstractSyntax from within this class.
      */
-    private static class MutableSyntax extends BaseSyntax
+    private static class MutableSyntax extends AbstractSyntax
     {
-        protected MutableSyntax( String oid )
+        final SyntaxCheckerRegistry registry;
+
+
+        protected MutableSyntax( String oid, SyntaxCheckerRegistry registry )
         {
             super( oid );
+
+            this.registry = registry;
         }
 
 
@@ -511,6 +519,12 @@
         protected void setName( String name )
         {
             super.setName( name );
+        }
+
+
+        public SyntaxChecker getSyntaxChecker( ) throws NamingException
+        {
+            return registry.lookup( getOid() );
         }
     }
 }

Mime
View raw message