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

void org::apache::uima::analysis_engine::impl::ResultSpecification_impl::addResultType ( String  name,
boolean  allAnnotatorFeatures,
BitSet  languages 
) [inline, private]

version used by compile to add subtypes

Parameters:
aTypeName
aAllAnnotatorFeatures
languages

Definition at line 448 of file ResultSpecification_impl.java.

References org::apache::uima::resource::metadata::MetaDataObject::clone(), org::apache::uima::analysis_engine::TypeOrFeature::isAllAnnotatorFeatures(), and org::apache::uima::analysis_engine::TypeOrFeature::setAllAnnotatorFeatures().

                                                                                          {
    ToF_Languages tof_langs = withSubtypesName2tof_langs.get(name);
    
    if (null == tof_langs) {
      withSubtypesName2tof_langs.put(
          name, 
          new ToF_Languages(createTypeOrFeature(name, true, allAnnotatorFeatures), (BitSet)languages.clone()));
      return;
    }

    // tof_langs entry for this name exists, so update it
    if (allAnnotatorFeatures) {
      if (!tof_langs.tof.isAllAnnotatorFeatures()) {
        tof_langs.tof.setAllAnnotatorFeatures(true);
      }
    }

    // update the languages by adding the new languages passed in
    tof_langs.languages.or(languages); 
  }

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index