org.apache.directory.server.schema.registries
Interface SyntaxRegistry

All Superinterfaces:
SchemaObjectRegistry
All Known Implementing Classes:
DefaultSyntaxRegistry

public interface SyntaxRegistry
extends SchemaObjectRegistry

Manages the lookup and registration of Syntaxes within the system by OID.

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

Method Summary
 boolean hasSyntax(java.lang.String id)
          Checks to see if a Syntax exists.
 java.util.Iterator<org.apache.directory.shared.ldap.schema.Syntax> iterator()
          Lists all the Syntaxes within this registry.
 org.apache.directory.shared.ldap.schema.Syntax lookup(java.lang.String id)
          Looks up a Syntax by its unique Object Identifier or by name.
 void register(org.apache.directory.shared.ldap.schema.Syntax syntax)
          Registers a Syntax with this registry.
 
Methods inherited from interface org.apache.directory.server.schema.registries.SchemaObjectRegistry
getSchemaName, unregister
 

Method Detail

lookup

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

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

register

void register(org.apache.directory.shared.ldap.schema.Syntax syntax)
              throws javax.naming.NamingException
Registers a Syntax with this registry.

Parameters:
syntax - the Syntax to register
Throws:
javax.naming.NamingException - if the syntax is already registered or the registration operation is not supported

hasSyntax

boolean hasSyntax(java.lang.String id)
Checks to see if a Syntax exists. Backing store failures simply return false.

Parameters:
id - the object identifier or name
Returns:
true if a Syntax definition exists for the id, false otherwise

iterator

java.util.Iterator<org.apache.directory.shared.ldap.schema.Syntax> iterator()
Lists all the Syntaxes within this registry.

Specified by:
iterator in interface SchemaObjectRegistry
Returns:
an Iterator over all the Syntaxes within this registry


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