question: final private String attrDef2AttrDesc ( Attributes attrs ) throws NamingException { StringBuffer attrDesc = new StringBuffer ( "( " ) ; Attribute attr = null ; int count = 0 ; attr = attrs . get ( NUMERICOID_ID ) ; if ( attr != null ) { attrDesc . append ( writeNumericOID ( attr ) ) ; count ++ ; } else { throw new ConfigurationException ( "Attribute type doesn't" + "have a numeric OID" ) ; } attr = attrs . get ( NAME_ID ) ; if ( attr != null ) { attrDesc . append ( writeQDescrs ( attr ) ) ; count ++ ; } attr = attrs . get ( DESC_ID ) ; if ( attr != null ) { attrDesc . append ( writeQDString ( attr ) ) ; count ++ ; } attr = attrs . get ( OBSOLETE_ID ) ; if ( attr != null ) { attrDesc . append ( writeBoolean ( attr ) ) ; count ++ ; } attr = attrs . get ( SUP_ID ) ; if ( attr != null ) { attrDesc . append ( writeWOID ( attr ) ) ; count ++ ; } attr = attrs . get ( EQUALITY_ID ) ; if ( attr != null ) { attrDesc . append ( writeWOID ( attr ) ) ; count ++ ; } attr = attrs . get ( ORDERING_ID ) ; if ( attr != null ) { attrDesc . append ( writeWOID ( attr ) ) ; count ++ ; } attr = attrs . get ( SUBSTR_ID ) ; if ( attr != null ) { attrDesc . append ( writeWOID ( attr ) ) ; count ++ ; } attr = attrs . get ( SYNTAX_ID ) ; if ( attr != null ) { attrDesc . append ( writeWOID ( attr ) ) ; count ++ ; } attr = attrs . get ( SINGLE_VAL_ID ) ; if ( attr != null ) { attrDesc . append ( writeBoolean ( attr ) ) ; count ++ ; } attr = attrs . get ( COLLECTIVE_ID ) ; if ( attr != null ) { attrDesc . append ( writeBoolean ( attr ) ) ; count ++ ; } attr = attrs . get ( NO_USER_MOD_ID ) ; if ( attr != null ) { attrDesc . append ( writeBoolean ( attr ) ) ; count ++ ; } attr = attrs . get ( USAGE_ID ) ; if ( attr != null ) { attrDesc . append ( writeQDString ( attr ) ) ; count ++ ; } if ( count < attrs . size ( ) ) { String attrId = null ; for ( NamingEnumeration < ? extends Attribute > ae = attrs . getAll ( ) ; ae . hasMoreElements ( ) ; ) { attr = ae . next ( ) ; attrId = attr . getID ( ) ; if ( attrId . equals ( NUMERICOID_ID ) || attrId . equals ( NAME_ID ) || attrId . equals ( SYNTAX_ID ) || attrId . equals ( DESC_ID ) || attrId . equals ( SINGLE_VAL_ID ) || attrId . equals ( EQUALITY_ID ) || attrId . equals ( ORDERING_ID ) || attrId . equals ( SUBSTR_ID ) || attrId . equals ( NO_USER_MOD_ID ) || attrId . equals ( USAGE_ID ) || attrId . equals ( SUP_ID ) || attrId . equals ( COLLECTIVE_ID ) || attrId . equals ( OBSOLETE_ID ) ) { continue ; } else { attrDesc . append ( writeQDStrings ( attr ) ) ; } } } attrDesc . append ( ")" ) ; return attrDesc . toString ( ) ; }
target:  Translate attributes that describe an attribute definition into the string description as defined in RFC 2252.