org.apache.directory.shared.ldap.name
Interface NameComponentNormalizer

All Known Implementing Classes:
SimpleNameComponentNormalizer

public interface NameComponentNormalizer

Normalizers of ldap name component attributes and their values.

Version:
$Revision: 379008 $
Author:
Alex Karasulu, $Author: akarasulu $

Method Summary
 boolean isDefined(java.lang.String id)
          Checks to see if an attribute name/oid is defined.
 java.lang.String normalizeByName(java.lang.String attributeName, byte[] value)
          Normalizes an attribute's value given the name of the attribute - short names like 'cn' as well as 'commonName' should work here.
 java.lang.String normalizeByName(java.lang.String attributeName, java.lang.String value)
          Normalizes an attribute's value given the name of the attribute - short names like 'cn' as well as 'commonName' should work here.
 java.lang.String normalizeByOid(java.lang.String attributeOid, byte[] value)
          Normalizes an attribute's value given the OID of the attribute.
 java.lang.String normalizeByOid(java.lang.String attributeOid, java.lang.String value)
          Normalizes an attribute's value given the OID of the attribute.
 

Method Detail

isDefined

public boolean isDefined(java.lang.String id)
Checks to see if an attribute name/oid is defined.

Parameters:
id - the name/oid of the attribute to see if it is defined
Returns:
true if it is, false otherwise

normalizeByName

public java.lang.String normalizeByName(java.lang.String attributeName,
                                        java.lang.String value)
                                 throws javax.naming.NamingException
Normalizes an attribute's value given the name of the attribute - short names like 'cn' as well as 'commonName' should work here.

Parameters:
attributeName - the name of the attribute
value - the value of the attribute to normalize
Returns:
the normalized value
Throws:
javax.naming.NamingException - if there is a recognition problem or a syntax issue

normalizeByName

public java.lang.String normalizeByName(java.lang.String attributeName,
                                        byte[] value)
                                 throws javax.naming.NamingException
Normalizes an attribute's value given the name of the attribute - short names like 'cn' as well as 'commonName' should work here.

Parameters:
attributeName - the name of the attribute
value - the value of the attribute to normalize
Returns:
the normalized value
Throws:
javax.naming.NamingException - if there is a recognition problem or a syntax issue

normalizeByOid

public java.lang.String normalizeByOid(java.lang.String attributeOid,
                                       java.lang.String value)
                                throws javax.naming.NamingException
Normalizes an attribute's value given the OID of the attribute.

Parameters:
attributeOid - the OID of the attribute
value - the value of the attribute to normalize
Returns:
the normalized value
Throws:
javax.naming.NamingException - if there is a recognition problem or a syntax issue

normalizeByOid

public java.lang.String normalizeByOid(java.lang.String attributeOid,
                                       byte[] value)
                                throws javax.naming.NamingException
Normalizes an attribute's value given the OID of the attribute.

Parameters:
attributeOid - the OID of the attribute
value - the value of the attribute to normalize
Returns:
the normalized value
Throws:
javax.naming.NamingException - if there is a recognition problem or a syntax issue


Copyright © 2003-2006 . All Rights Reserved.