org.apache.directory.shared.ldap.schema
Class LdapDnNormalizer

java.lang.Object
  extended byorg.apache.directory.shared.ldap.schema.LdapDnNormalizer
All Implemented Interfaces:
Normalizer

public class LdapDnNormalizer
extends java.lang.Object
implements Normalizer

A distinguished name normalizer that works with a schema or without.

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

Constructor Summary
LdapDnNormalizer()
           
 
Method Summary
static java.lang.Object normalize(javax.naming.Name value)
          Normalizes the value if it is a Name or a String returning the String representation always.
 java.lang.Object normalize(java.lang.Object value)
          Gets the normalized value.
static java.lang.Object normalize(java.lang.String value)
          Normalizes the value if it is a Name or a String returning the String representation always.
static void setOidContainer(DnOidContainer oidContainer)
           
 java.lang.String toString()
          A String representation of this normalizer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LdapDnNormalizer

public LdapDnNormalizer()
Method Detail

setOidContainer

public static void setOidContainer(DnOidContainer oidContainer)

normalize

public java.lang.Object normalize(java.lang.Object value)
                           throws javax.naming.NamingException
Description copied from interface: Normalizer
Gets the normalized value.

Specified by:
normalize in interface Normalizer
Parameters:
value - the value to normalize. It must *not* be null !
Returns:
the normalized form for a value
Throws:
javax.naming.NamingException - if an error results during normalization
See Also:
Normalizer.normalize(java.lang.Object)

normalize

public static java.lang.Object normalize(javax.naming.Name value)
                                  throws javax.naming.NamingException
Normalizes the value if it is a Name or a String returning the String representation always. If the value is not a String or a Name the object is returned as is.

Throws:
javax.naming.NamingException
See Also:
Normalizer.normalize(java.lang.Object)

normalize

public static java.lang.Object normalize(java.lang.String value)
                                  throws javax.naming.NamingException
Normalizes the value if it is a Name or a String returning the String representation always. If the value is not a String or a Name the object is returned as is.

Throws:
javax.naming.NamingException
See Also:
Normalizer.normalize(java.lang.Object)

toString

public java.lang.String toString()
A String representation of this normalizer



Copyright © 2003-2006 . All Rights Reserved.