/** * Construct a schema aware Ava. The AttributeType and value will be checked accordingly * to the SchemaManager. * <p> * Note that the upValue should <b>not</b> be null or empty, or resolve * to an empty string after having trimmed it. * * @param schemaManager The SchemaManager instance * @param upType The User Provided type * @param value The value */ private void createAva( SchemaManager schemaManager, String upType, Value value ) { StringBuilder sb = new StringBuilder(); normType = attributeType.getOid(); this.upType = upType; this.value = value; sb.append( upType ); sb.append( '=' ); if ( value != null ) { sb.append( Rdn.escapeValue( value.getValue() ) ); } upName = sb.toString(); hashCode(); }
/** * Construct a schema aware Ava. The AttributeType and value will be checked accordingly * to the SchemaManager. * <p> * Note that the upValue should <b>not</b> be null or empty, or resolve * to an empty string after having trimmed it. * * @param schemaManager The SchemaManager instance * @param upType The User Provided type * @param value The value */ private void createAva( SchemaManager schemaManager, String upType, Value value ) { StringBuilder sb = new StringBuilder(); normType = attributeType.getOid(); this.upType = upType; this.value = value; sb.append( upType ); sb.append( '=' ); if ( value != null ) { sb.append( Rdn.escapeValue( value.getValue() ) ); } upName = sb.toString(); hashCode(); }
/** * Construct a schema aware Ava. The AttributeType and value will be checked accordingly * to the SchemaManager. * <p> * Note that the upValue should <b>not</b> be null or empty, or resolve * to an empty string after having trimmed it. * * @param schemaManager The SchemaManager instance * @param upType The User Provided type * @param value The value */ private void createAva( SchemaManager schemaManager, String upType, Value value ) { StringBuilder sb = new StringBuilder(); normType = attributeType.getOid(); this.upType = upType; this.value = value; sb.append( upType ); sb.append( '=' ); if ( value != null ) { sb.append( Rdn.escapeValue( value.getValue() ) ); } upName = sb.toString(); hashCode(); }