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

void org::apache::uima::analysis_engine::impl::ResultSpecification_impl::addCapabilities ( Capability[]  capabilities,
boolean  outputs 
) [inline]
See also:
org.apache.uima.analysis_engine.ResultSpecification::addCapabilities(org.apache.uima.resource.metadata.Capability[], boolean)

Implements org::apache::uima::analysis_engine::ResultSpecification.

Definition at line 774 of file ResultSpecification_impl.java.

References mDefaultLanguage.

                                                                          {
    if (null == capabilities) {
      return;
    }
    for (Capability capability : capabilities) {
      TypeOrFeature[] tofs = outputs ? capability.getOutputs() : capability.getInputs();
      String[] supportedLanguages = capability.getLanguagesSupported();
      if (null == supportedLanguages ||
          supportedLanguages.length == 0) {
        supportedLanguages = mDefaultLanguage;
      }
      for (TypeOrFeature tof : tofs) {
        addResultTypeOrFeatureAddLanguage(tof, supportedLanguages);
      }
    }
    setNeedsCompilation();
  }

Generated by  Doxygen 1.6.0   Back to index