use of com.archimatetool.model.IFolder in project archi-modelrepository-plugin by archi-contribs.
the class GraficoModelImporter method loadModel.
private IArchimateModel loadModel(File folder) throws IOException {
IArchimateModel model = (IArchimateModel) loadElement(new File(folder, IGraficoConstants.FOLDER_XML));
IFolder tmpFolder;
List<FolderType> folderList = new ArrayList<FolderType>();
folderList.add(FolderType.STRATEGY);
folderList.add(FolderType.BUSINESS);
folderList.add(FolderType.APPLICATION);
folderList.add(FolderType.TECHNOLOGY);
folderList.add(FolderType.MOTIVATION);
folderList.add(FolderType.IMPLEMENTATION_MIGRATION);
folderList.add(FolderType.OTHER);
folderList.add(FolderType.RELATIONS);
folderList.add(FolderType.DIAGRAMS);
// Loop based on FolderType enumeration
for (FolderType folderType : folderList) {
if ((tmpFolder = loadFolder(new File(folder, folderType.toString()))) != null) {
model.getFolders().add(tmpFolder);
}
}
return model;
}
Aggregations