org.apache.ldap.server.schema
Interface AttributeTypeRegistry

All Known Implementing Classes:
BootstrapAttributeTypeRegistry, GlobalAttributeTypeRegistry

public interface AttributeTypeRegistry

An AttributeType registry service interface.

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

Method Summary
 java.lang.String getSchemaName(java.lang.String id)
          Gets the name of the schema this schema object is associated with.
 boolean hasAttributeType(java.lang.String id)
          Checks to see if an AttributeType exists.
 java.util.Iterator list()
          Gets an Iterator over the AttributeTypes within this registry.
 org.apache.ldap.common.schema.AttributeType lookup(java.lang.String id)
          Looks up an AttributeType by its unique Object Identifier or by its unique name.
 void register(java.lang.String schema, org.apache.ldap.common.schema.AttributeType attributeType)
          Registers a new AttributeType with this registry.
 

Method Detail

register

public void register(java.lang.String schema,
                     org.apache.ldap.common.schema.AttributeType attributeType)
              throws javax.naming.NamingException
Registers a new AttributeType with this registry.

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

lookup

public org.apache.ldap.common.schema.AttributeType lookup(java.lang.String id)
                                                   throws javax.naming.NamingException
Looks up an AttributeType by its unique Object Identifier or by its unique name.

Parameters:
id - the object identifier or name of the AttributeType
Returns:
the AttributeType instance for the oid
Throws:
javax.naming.NamingException - if the AttributeType does not exist

getSchemaName

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

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

hasAttributeType

public boolean hasAttributeType(java.lang.String id)
Checks to see if an AttributeType exists.

Parameters:
id - the object identifier or name of the AttributeType
Returns:
true if an AttributeType definition exists for the oid, false otherwise

list

public java.util.Iterator list()
Gets an Iterator over the AttributeTypes within this registry.

Returns:
an iterator over all AttributeTypes in registry


Copyright © 2002-2005 . All Rights Reserved.