]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.structural2/src/org/simantics/structural2/queries/ComponentLocation.java
Paster.getGraph() method for overriding classes.
[simantics/platform.git] / bundles / org.simantics.structural2 / src / org / simantics / structural2 / queries / ComponentLocation.java
1 /*******************************************************************************
2  * Copyright (c) 2014 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  *     Semantum Oy - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.structural2.queries;
13
14 /**
15  * @author Tuukka Lehtonen
16  * @see GetComponentLocation
17  */
18 public class ComponentLocation {
19
20     public final boolean insideStructure;
21     public final boolean insideModelConfiguration;
22     public final boolean hasRepresentation;
23
24     public ComponentLocation(boolean insideStructure, boolean insideConfiguration, boolean hasRepresentation) {
25         this.insideStructure = insideStructure;
26         this.insideModelConfiguration = insideConfiguration;
27         this.hasRepresentation = hasRepresentation;
28     }
29
30     @Override
31     public String toString() {
32         return "[inside structure=" + insideStructure + ", inside model configuration=" + insideModelConfiguration + ", has representation=" + hasRepresentation + "]";
33     }
34
35 }