use of org.osate.aadl2.FeatureClassifier in project osate2 by osate.
the class SetFeatureClassifierPropertySection method getAllFeatureClassifier.
private static EObject getAllFeatureClassifier(Feature feature) {
if (feature instanceof FeatureGroup) {
final FeatureGroup fg = (FeatureGroup) feature;
return fg.getAllClassifier();
}
FeatureClassifier result;
do {
result = feature.getFeatureClassifier();
feature = feature.getRefined();
} while (feature != null && result == null);
return result;
}
Aggregations