protected void processLabels ( List < MonolingualTextValue > labels ) { for ( MonolingualTextValue label : labels ) { String lang = label . getLanguageCode ( ) ; NameWithUpdate currentValue = newLabels . get ( lang ) ; if ( currentValue == null || ! currentValue . value . equals ( label ) ) { newLabels . put ( lang , new NameWithUpdate ( label , true ) ) ; // Delete any alias that matches the new label AliasesWithUpdate currentAliases = newAliases . get ( lang ) ; if ( currentAliases != null && currentAliases . aliases . contains ( label ) ) { deleteAlias ( label ) ; } } } }
Adds labels to the item