]> gerrit.simantics Code Review - simantics/platform.git/blob - 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
1 /*******************************************************************************\r
2  * Copyright (c) 2014 Association for Decentralized Information Management\r
3  * in Industry THTH ry.\r
4  * All rights reserved. This program and the accompanying materials\r
5  * are made available under the terms of the Eclipse Public License v1.0\r
6  * which accompanies this distribution, and is available at\r
7  * http://www.eclipse.org/legal/epl-v10.html\r
8  *\r
9  * Contributors:\r
10  *     Semantum Oy - initial API and implementation\r
11  *******************************************************************************/\r
12 package org.simantics.structural2.queries;\r
13 \r
14 /**\r
15  * @author Tuukka Lehtonen\r
16  * @see GetComponentLocation\r
17  */\r
18 public class ComponentLocation {\r
19 \r
20     public final boolean insideStructure;\r
21     public final boolean insideModelConfiguration;\r
22     public final boolean hasRepresentation;\r
23 \r
24     public ComponentLocation(boolean insideStructure, boolean insideConfiguration, boolean hasRepresentation) {\r
25         this.insideStructure = insideStructure;\r
26         this.insideModelConfiguration = insideConfiguration;\r
27         this.hasRepresentation = hasRepresentation;\r
28     }\r
29 \r
30     @Override\r
31     public String toString() {\r
32         return "[inside structure=" + insideStructure + ", inside model configuration=" + insideModelConfiguration + ", has representation=" + hasRepresentation + "]";\r
33     }\r
34 \r
35 }