private JSONArray getAlternativeNames ( Collection < List < ? > > alternativeNames ) { if ( alternativeNames == null || alternativeNames . size ( ) == 0 ) { return null ; } JSONArray altNames = new JSONArray ( ) ; for ( List < ? > altName : alternativeNames ) { //int altNameType = (Integer) altName.get(0); // XXX For now we're going to ignore the type // // We might want to do something special later. String altNameValue = altName . get ( 1 ) . toString ( ) ; altNames . put ( altNameValue ) ; } return altNames ; }
Given an AlternativeNames structure return a JSONArray with the name strings .