org.apache.ldap.server.schema
Class ConcreteNameComponentNormalizer

java.lang.Object
  extended by org.apache.ldap.server.schema.ConcreteNameComponentNormalizer
All Implemented Interfaces:
org.apache.ldap.common.name.NameComponentNormalizer

public class ConcreteNameComponentNormalizer
extends java.lang.Object
implements org.apache.ldap.common.name.NameComponentNormalizer

A DN Name component Normalizer which uses the bootstrap registries to find the appropriate normalizer for the attribute of the name component with which to normalize the name component value.

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

Constructor Summary
ConcreteNameComponentNormalizer(AttributeTypeRegistry registry)
          Creates a DN Name component Normalizer which uses the bootstrap registries to find the appropriate normalizer for the attribute of the name component with which to normalize the name component value.
 
Method Summary
 boolean isDefined(java.lang.String id)
           
 java.lang.String normalizeByName(java.lang.String name, java.lang.String value)
           
 java.lang.String normalizeByOid(java.lang.String oid, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcreteNameComponentNormalizer

public ConcreteNameComponentNormalizer(AttributeTypeRegistry registry)
Creates a DN Name component Normalizer which uses the bootstrap registries to find the appropriate normalizer for the attribute of the name component with which to normalize the name component value.

Parameters:
registry - the at registry used to dynamically resolve Normalizers
Method Detail

normalizeByName

public java.lang.String normalizeByName(java.lang.String name,
                                        java.lang.String value)
                                 throws javax.naming.NamingException
Specified by:
normalizeByName in interface org.apache.ldap.common.name.NameComponentNormalizer
Throws:
javax.naming.NamingException
See Also:
NameComponentNormalizer.normalizeByName(String, String)

normalizeByOid

public java.lang.String normalizeByOid(java.lang.String oid,
                                       java.lang.String value)
                                throws javax.naming.NamingException
Specified by:
normalizeByOid in interface org.apache.ldap.common.name.NameComponentNormalizer
Throws:
javax.naming.NamingException
See Also:
NameComponentNormalizer.normalizeByOid(String, String)

isDefined

public boolean isDefined(java.lang.String id)
Specified by:
isDefined in interface org.apache.ldap.common.name.NameComponentNormalizer
See Also:
NameComponentNormalizer.isDefined(String)


Copyright © 2002-2005 . All Rights Reserved.