org.apache.directory.server.core.schema
Interface SyntaxCheckerRegistry

All Known Implementing Classes:
BootstrapSyntaxCheckerRegistry, GlobalSyntaxCheckerRegistry

public interface SyntaxCheckerRegistry

SyntaxChecker registry component's service interface.

Version:
$Rev: 434579 $
Author:
Apache Directory Project

Method Summary
 java.lang.String getSchemaName(java.lang.String oid)
          Gets the name of the schema this schema object is associated with.
 boolean hasSyntaxChecker(java.lang.String oid)
          Checks to see if a SyntaxChecker exists.
 org.apache.directory.shared.ldap.schema.SyntaxChecker lookup(java.lang.String oid)
          Looks up a SyntaxChecker by its unique Object Identifier.
 void register(java.lang.String schema, java.lang.String oid, org.apache.directory.shared.ldap.schema.SyntaxChecker syntaxChecker)
          Registers a SyntaxChecker with this registry.
 

Method Detail

register

void register(java.lang.String schema,
              java.lang.String oid,
              org.apache.directory.shared.ldap.schema.SyntaxChecker syntaxChecker)
              throws javax.naming.NamingException
Registers a SyntaxChecker with this registry.

Parameters:
schema - the name of the schema the SyntaxChecker is associated with
syntaxChecker - the SyntaxChecker to register
Throws:
javax.naming.NamingException - if the SyntaxChecker is already registered or the registration operation is not supported

lookup

org.apache.directory.shared.ldap.schema.SyntaxChecker lookup(java.lang.String oid)
                                                             throws javax.naming.NamingException
Looks up a SyntaxChecker by its unique Object Identifier.

Parameters:
oid - the object identifier
Returns:
the SyntaxChecker for the oid
Throws:
javax.naming.NamingException - if there is a backing store failure or the SyntaxChecker does not exist.

getSchemaName

java.lang.String getSchemaName(java.lang.String oid)
                               throws javax.naming.NamingException
Gets the name of the schema this schema object is associated with.

Parameters:
oid - the object identifier
Returns:
the schema name
Throws:
javax.naming.NamingException - if the schema object does not exist

hasSyntaxChecker

boolean hasSyntaxChecker(java.lang.String oid)
Checks to see if a SyntaxChecker exists. Backing store failures simply return false.

Parameters:
oid - the object identifier
Returns:
true if a SyntaxChecker definition exists for the oid, false otherwise


Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.