}
catch ( LdapException le )
{
String message = I18n.err( I18n.ERR_04188 );
LOG.error( message );
throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, message, le );
}
if ( this.attributeType == attributeType )
{
// No need to normalize again
return;
}
else
{
this.attributeType = attributeType;
}
normType = attributeType.getOid();
if ( normValue != null )
{
return;
}
try
{
// We use the Equality matching rule to normalize the value
MatchingRule equalityMatchingRule = attributeType.getEquality();
if ( equalityMatchingRule != null )
{
this.normValue = equalityMatchingRule.getNormalizer().normalize( upValue );
}
else
{
this.normValue = upValue;
}
}
catch ( LdapException le )
{
String message = I18n.err( I18n.ERR_04188 );
LOG.error( message );
throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, message, le );
}
hashCode();
}
}