1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.ldap.server.schema.bootstrap;
18
19
20 import org.apache.ldap.common.schema.AcceptAllSyntaxChecker;
21 import org.apache.ldap.common.schema.SyntaxChecker;
22
23 import javax.naming.NamingException;
24
25
26
27 /***
28 * A producer of SyntaxChecker objects for the nis schema. This code has been
29 * automatically generated using schema files in the OpenLDAP format along with
30 * the eve schema plugin for maven. This has been done to facilitate
31 * Eve<->OpenLDAP schema interoperability.
32 *
33 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
34 * @version $Rev: 159259 $
35 */
36 public class NisSyntaxCheckerProducer extends AbstractBootstrapProducer
37 {
38 public NisSyntaxCheckerProducer()
39 {
40 super( ProducerTypeEnum.SYNTAX_CHECKER_PRODUCER );
41 }
42
43
44
45
46
47
48
49 /***
50 * @see org.apache.ldap.server.schema.bootstrap.BootstrapProducer#produce(BootstrapRegistries, org.apache.ldap.server.schema.bootstrap.ProducerCallback)
51 */
52 public void produce( BootstrapRegistries registries, ProducerCallback cb )
53 throws NamingException
54 {
55 SyntaxChecker syntaxChecker;
56
57
58
59
60
61
62
63
64
65
66 syntaxChecker = new AcceptAllSyntaxChecker( "1.3.6.1.1.1.0.0" );
67 cb.schemaObjectProduced( this, syntaxChecker.getSyntaxOid(), syntaxChecker );
68
69
70 syntaxChecker = new AcceptAllSyntaxChecker( "1.3.6.1.1.1.0.1" );
71 cb.schemaObjectProduced( this, syntaxChecker.getSyntaxOid(), syntaxChecker );
72 }
73 }