org.apache.directory.server.core.schema
Class ConcreteNameComponentNormalizer

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

public class ConcreteNameComponentNormalizer
extends java.lang.Object
implements org.apache.directory.shared.ldap.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: 437314 $
Author:
Apache Directory Project

Constructor Summary
ConcreteNameComponentNormalizer(AttributeTypeRegistry registry, OidRegistry oidRegistry)
          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.Object normalizeByName(java.lang.String name, byte[] value)
           
 java.lang.Object normalizeByName(java.lang.String name, java.lang.String value)
           
 java.lang.Object normalizeByOid(java.lang.String oid, byte[] value)
           
 java.lang.Object normalizeByOid(java.lang.String oid, java.lang.String value)
           
 java.lang.String normalizeName(java.lang.String attributeName)
           
 
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,
                                       OidRegistry oidRegistry)
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.Object normalizeByName(java.lang.String name,
                                        java.lang.String value)
                                 throws javax.naming.NamingException
Specified by:
normalizeByName in interface org.apache.directory.shared.ldap.name.NameComponentNormalizer
Throws:
javax.naming.NamingException
See Also:
NameComponentNormalizer.normalizeByName(String, String)

normalizeByName

public java.lang.Object normalizeByName(java.lang.String name,
                                        byte[] value)
                                 throws javax.naming.NamingException
Specified by:
normalizeByName in interface org.apache.directory.shared.ldap.name.NameComponentNormalizer
Throws:
javax.naming.NamingException
See Also:
NameComponentNormalizer.normalizeByName(String, String)

normalizeByOid

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

normalizeByOid

public java.lang.Object normalizeByOid(java.lang.String oid,
                                       byte[] value)
                                throws javax.naming.NamingException
Specified by:
normalizeByOid in interface org.apache.directory.shared.ldap.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.directory.shared.ldap.name.NameComponentNormalizer
See Also:
NameComponentNormalizer.isDefined(String)

normalizeName

public java.lang.String normalizeName(java.lang.String attributeName)
                               throws javax.naming.NamingException
Specified by:
normalizeName in interface org.apache.directory.shared.ldap.name.NameComponentNormalizer
Throws:
javax.naming.NamingException


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