use of com.rockwellcollins.atc.agree.agree.LinearizationDef in project AGREE by loonwerks.
the class AgreeValidator method getParentNames.
private Set<String> getParentNames(ComponentImplementation ci) {
Set<String> result = new HashSet<>();
ComponentType ct = ci.getType();
for (AgreeSubclause subclause : EcoreUtil2.getAllContentsOfType(ct, AgreeSubclause.class)) {
List<NamedElement> es = EcoreUtil2.getAllContentsOfType(subclause, NamedElement.class);
for (NamedElement e : es) {
if (!(e.eContainer() instanceof NodeDef || e.eContainer() instanceof LinearizationDef || e.eContainer() instanceof RecordDef || e instanceof NamedSpecStatement)) {
result.add(e.getName());
}
}
}
return result;
}
Aggregations