use of org.bimserver.database.migrations.change.NewPackageChange in project BIMserver by opensourceBIM.
the class Schema method addEPackage.
public void addEPackage(EPackage ePackage) {
packages.put(ePackage.getName(), ePackage);
changes.add(new NewPackageChange(ePackage));
Set<EClass> newClasses = new HashSet<>();
for (EClassifier eClassifier : ePackage.getEClassifiers()) {
if (eClassifier instanceof EClass) {
newClasses.add((EClass) eClassifier);
}
}
addEClasses(ePackage, newClasses);
}
Aggregations