use of org.obeonetwork.dsl.environment.Namespace in project InformationSystem by ObeoNetwork.
the class AbstractTransformationTest method getRootObject.
private EObject getRootObject(URI modelURI) {
ResourceSet set = getResourceSet();
Resource resource = set.getResource(modelURI, true);
for (Iterator<EObject> it = resource.getAllContents(); it.hasNext(); ) {
EObject object = it.next();
if (object instanceof TableContainer || object instanceof Root || object instanceof Namespace || object instanceof ScaffoldInfo) {
return object;
}
}
return null;
}
Aggregations