KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ldap > server > schema > AbstractSyntaxChecker


1 /*
2  * Copyright 2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */

17 package org.apache.ldap.server.schema;
18
19
20 import org.apache.ldap.common.schema.SyntaxChecker;
21
22
23 /**
24  * Document me.
25  *
26  * @author <a HREF="mailto:dev@directory.apache.org">Apache Directory Project</a>
27  * @version $Rev: 169198 $
28  */

29 public abstract class AbstractSyntaxChecker implements SyntaxChecker
30 {
31     /** the oid of the syntax checker */
32     private String JavaDoc oid = null;
33
34
35     /**
36      * Creates a SyntaxChecker with a unique OID.
37      *
38      * @param oid the unique OID for the SyntaxChecker.
39      */

40     public AbstractSyntaxChecker( String JavaDoc oid )
41     {
42         this.oid = oid;
43     }
44
45
46     /**
47      * Gets the OID of this SyntaxChecker.
48      *
49      * @return the OID of this SyntaxChecker.
50      */

51     public String JavaDoc getSyntaxOid()
52     {
53         return oid;
54     }
55 }
56
Popular Tags