X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.graph.db%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Fdb%2FImportResult.java;fp=bundles%2Forg.simantics.graph.db%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Fdb%2FImportResult.java;h=1d986da09e539580325445589ad0fb1d99c5bbb2;hb=9acebe9584f8f2a78f0322b6e0e24438e7ceb984;hp=0000000000000000000000000000000000000000;hpb=081bf7e08a67c0af23c5846e163be39bb19f12cb;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.graph.db/src/org/simantics/graph/db/ImportResult.java b/bundles/org.simantics.graph.db/src/org/simantics/graph/db/ImportResult.java new file mode 100644 index 000000000..1d986da09 --- /dev/null +++ b/bundles/org.simantics.graph.db/src/org/simantics/graph/db/ImportResult.java @@ -0,0 +1,36 @@ +/******************************************************************************* + * Copyright (c) 2017 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Semamtum Oy - initial API and implementation + *******************************************************************************/ +package org.simantics.graph.db; + +import java.util.Set; + +/** + * @author Tuukka Lehtonen + * @since 1.28.0 + */ +public class ImportResult { + + /** + * This lists externals that the import was missing and has created in the + * database as L0.ExternalEntity place-holders for now. + */ + public final Set missingExternals; + + public ImportResult(Set missingExternals) { + this.missingExternals = missingExternals; + } + + public boolean hasMissingExternals() { + return !missingExternals.isEmpty(); + } + +}