]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.structural2/src/org/simantics/structural2/queries/ComponentLocation.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.structural2 / src / org / simantics / structural2 / queries / ComponentLocation.java
diff --git a/bundles/org.simantics.structural2/src/org/simantics/structural2/queries/ComponentLocation.java b/bundles/org.simantics.structural2/src/org/simantics/structural2/queries/ComponentLocation.java
new file mode 100644 (file)
index 0000000..b5face0
--- /dev/null
@@ -0,0 +1,35 @@
+/*******************************************************************************\r
+ * Copyright (c) 2014 Association for Decentralized Information Management\r
+ * in Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ *     Semantum Oy - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.structural2.queries;\r
+\r
+/**\r
+ * @author Tuukka Lehtonen\r
+ * @see GetComponentLocation\r
+ */\r
+public class ComponentLocation {\r
+\r
+    public final boolean insideStructure;\r
+    public final boolean insideModelConfiguration;\r
+    public final boolean hasRepresentation;\r
+\r
+    public ComponentLocation(boolean insideStructure, boolean insideConfiguration, boolean hasRepresentation) {\r
+        this.insideStructure = insideStructure;\r
+        this.insideModelConfiguration = insideConfiguration;\r
+        this.hasRepresentation = hasRepresentation;\r
+    }\r
+\r
+    @Override\r
+    public String toString() {\r
+        return "[inside structure=" + insideStructure + ", inside model configuration=" + insideModelConfiguration + ", has representation=" + hasRepresentation + "]";\r
+    }\r
+\r
+}
\ No newline at end of file