org.apache.directory.server.schema
Class DnNormalizer

java.lang.Object
  extended by org.apache.directory.server.schema.DnNormalizer
All Implemented Interfaces:
java.io.Serializable, org.apache.directory.shared.ldap.schema.Normalizer

public class DnNormalizer
extends java.lang.Object
implements org.apache.directory.shared.ldap.schema.Normalizer

Normalizer a DN

Version:
$Rev$
Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
static DnNormalizer INSTANCE
          A static instance of this normalizer
 
Constructor Summary
DnNormalizer()
          Empty constructor
DnNormalizer(AttributeTypeRegistry attrRegistry)
           
 
Method Summary
 java.lang.String normalize(org.apache.directory.shared.ldap.name.LdapDN value)
          Normalize a DN
 java.lang.String normalize(java.lang.String value)
          
 org.apache.directory.shared.ldap.entry.Value<?> normalize(org.apache.directory.shared.ldap.entry.Value<?> value)
          
 void setRegistries(Registries registries)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DnNormalizer INSTANCE
A static instance of this normalizer

Constructor Detail

DnNormalizer

public DnNormalizer(AttributeTypeRegistry attrRegistry)

DnNormalizer

public DnNormalizer()
Empty constructor

Method Detail

setRegistries

public void setRegistries(Registries registries)

normalize

public org.apache.directory.shared.ldap.entry.Value<?> normalize(org.apache.directory.shared.ldap.entry.Value<?> value)
                                                          throws javax.naming.NamingException

Specified by:
normalize in interface org.apache.directory.shared.ldap.schema.Normalizer
Throws:
javax.naming.NamingException

normalize

public java.lang.String normalize(java.lang.String value)
                           throws javax.naming.NamingException

Specified by:
normalize in interface org.apache.directory.shared.ldap.schema.Normalizer
Throws:
javax.naming.NamingException

normalize

public java.lang.String normalize(org.apache.directory.shared.ldap.name.LdapDN value)
                           throws javax.naming.NamingException
Normalize a DN

Parameters:
value - The DN to normalize
Returns:
A normalized DN
Throws:
javax.naming.NamingException


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