use of org.apache.uima.resource.metadata.FeatureDescription in project webanno by webanno.
the class TypeSystemAnalysis method analyzeFeatures.
private void analyzeFeatures(AnnotationLayer aLayer, TypeSystem aTS, TypeDescription aTD, Optional<? extends LayerDetails> aDetails) {
Type type = aTS.getType(aTD.getName());
for (FeatureDescription fd : aTD.getFeatures()) {
Feature feat = type.getFeatureByBaseName(fd.getName());
// We do not need to set up built-in features
if (isBuiltInFeature(feat)) {
continue;
}
if (aDetails.isPresent() && aDetails.get().isHiddenFeature(feat)) {
continue;
}
AnnotationFeature f = analyzeFeature(aTS, fd, feat);
features.put(aLayer.getName(), f);
}
}
Aggregations