use of org.bimserver.database.migrations.change.NewClassChange in project BIMserver by opensourceBIM.
the class Schema method createEClass.
public EClass createEClass(EPackage ePackage, String name, EClass... superClasses) {
EClass eClass = EcoreFactory.eINSTANCE.createEClass();
eClass.setName(name);
changes.add(new NewClassChange(eClass));
for (EClass superClass : superClasses) {
eClass.getESuperTypes().add(superClass);
}
ePackage.getEClassifiers().add(eClass);
return eClass;
}
Aggregations