]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.graph.db/src/org/simantics/graph/db/ImportResult.java
Collect model dependencies in reversed topological order
[simantics/platform.git] / bundles / org.simantics.graph.db / src / org / simantics / graph / db / ImportResult.java
1 /*******************************************************************************
2  * Copyright (c) 2017 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     Semamtum Oy - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.graph.db;
13
14 import java.util.Set;
15
16 /**
17  * @author Tuukka Lehtonen
18  * @since 1.28.0
19  */
20 public class ImportResult {
21
22         /**
23          * This lists externals that the import was missing and has created in the
24          * database as L0.ExternalEntity place-holders for now.
25          */
26         public final Set<String> missingExternals;
27
28         public ImportResult(Set<String> missingExternals) {
29                 this.missingExternals = missingExternals;
30         }
31
32         public boolean hasMissingExternals() {
33                 return !missingExternals.isEmpty();
34         }
35
36 }