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
10 * Semantum Oy - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.structural2.queries;
\r
15 * @author Tuukka Lehtonen
\r
16 * @see GetComponentLocation
\r
18 public class ComponentLocation {
\r
20 public final boolean insideStructure;
\r
21 public final boolean insideModelConfiguration;
\r
22 public final boolean hasRepresentation;
\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
31 public String toString() {
\r
32 return "[inside structure=" + insideStructure + ", inside model configuration=" + insideModelConfiguration + ", has representation=" + hasRepresentation + "]";
\r