Logo Search packages:      
Sourcecode: uimaj version File versions  Download package

boolean org::apache::uima::analysis_engine::impl::ResultSpecification_impl::languageMatches ( ToF_Languages  tof_langs,
String  language 
) [inline, private]

Languages matches if the query language is xxx-yyy and result spec languages contains: x-unspecified xxx-yyy xxx

Parameters:
tof_langs
language
Returns:

Definition at line 725 of file ResultSpecification_impl.java.

Referenced by containsFeature(), containsType(), and getResultTypesAndFeatures().

                                                                            {
    if (null == tof_langs) {
      return false;
    }    
    BitSet languages = tof_langs.languages;
    if (languages.get(UNSPECIFIED_LANGUAGE_INDEX) ||
        languages.get(getLanguageIndex(language))) {
      return true;
    }
    String baseLanguage = getBaseLanguage(language);
    return baseLanguage != language &&  // the != means the base language is different from the language
                                        // != is OK here
           languages.get(getLanguageIndex(baseLanguage));
  }

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index