|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.name.SimpleNameComponentNormalizer
A simple NameComponentNormalizer which uses the same Normalizer to always normalize the value the same way regardless of the attribute the value is for.
Constructor Summary | |
SimpleNameComponentNormalizer(Normalizer normalizer)
Creates a new SimpleNameComponentNormalizer with the normalizer it uses ever time irrespective of the attribute name or oid. |
Method Summary | |
boolean |
isDefined(java.lang.String oid)
Checks to see if an attribute name/oid is defined. |
java.lang.String |
normalizeByName(java.lang.String name,
byte[] val)
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 name,
java.lang.String val)
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 oid,
byte[] val)
Normalizes an attribute's value given the OID of the attribute. |
java.lang.String |
normalizeByOid(java.lang.String oid,
java.lang.String val)
Normalizes an attribute's value given the OID of the attribute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleNameComponentNormalizer(Normalizer normalizer)
normalizer
- the Normalizer to use for all normalization requestsMethod Detail |
public java.lang.String normalizeByName(java.lang.String name, java.lang.String val) throws javax.naming.NamingException
NameComponentNormalizer
normalizeByName
in interface NameComponentNormalizer
name
- the name of the attributeval
- the value of the attribute to normalize
javax.naming.NamingException
- if there is a recognition problem or a syntax issuepublic java.lang.String normalizeByName(java.lang.String name, byte[] val) throws javax.naming.NamingException
NameComponentNormalizer
normalizeByName
in interface NameComponentNormalizer
name
- the name of the attributeval
- the value of the attribute to normalize
javax.naming.NamingException
- if there is a recognition problem or a syntax issuepublic java.lang.String normalizeByOid(java.lang.String oid, java.lang.String val) throws javax.naming.NamingException
NameComponentNormalizer
normalizeByOid
in interface NameComponentNormalizer
oid
- the OID of the attributeval
- the value of the attribute to normalize
javax.naming.NamingException
- if there is a recognition problem or a syntax issuepublic java.lang.String normalizeByOid(java.lang.String oid, byte[] val) throws javax.naming.NamingException
NameComponentNormalizer
normalizeByOid
in interface NameComponentNormalizer
oid
- the OID of the attributeval
- the value of the attribute to normalize
javax.naming.NamingException
- if there is a recognition problem or a syntax issuepublic boolean isDefined(java.lang.String oid)
NameComponentNormalizer
isDefined
in interface NameComponentNormalizer
oid
- the name/oid of the attribute to see if it is defined
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |