public static Set < String > getLanguages ( final ITextNode [ ] textNodes ) { SortedSet < String > languages = new TreeSet < String > ( ) ; for ( ITextNode textNode : textNodes ) { IValueNode [ ] valueNodes = textNode . getValueNodes ( ) ; for ( IValueNode valueNode : valueNodes ) { languages . add ( valueNode . getLanguage ( ) ) ; } } return languages ; }
Gets the languages of all value nodes whose parents are a given array of text nodes .