/** * Compute the normalized (canonical) representation for the wrapped string. * If the wrapped String is null, the normalized form will be null too. * * @throws LdapException if the value cannot be properly normalized */ public void normalize() throws LdapException { // If the value is already normalized, get out. if ( normalized ) { return; } if ( attributeType != null ) { Normalizer normalizer = getNormalizer(); if ( normalizer == null ) { normalizedValue = wrappedValue; } else { normalizedValue = ( String ) normalizer.normalize( wrappedValue ); } normalized = true; } }