1 /*******************************************************************************
2 * Copyright (c) 2014 Association for Decentralized Information Management
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
10 * Semantum Oy - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.structural2.queries;
15 * @author Tuukka Lehtonen
16 * @see GetComponentLocation
18 public class ComponentLocation {
20 public final boolean insideStructure;
21 public final boolean insideModelConfiguration;
22 public final boolean hasRepresentation;
24 public ComponentLocation(boolean insideStructure, boolean insideConfiguration, boolean hasRepresentation) {
25 this.insideStructure = insideStructure;
26 this.insideModelConfiguration = insideConfiguration;
27 this.hasRepresentation = hasRepresentation;
31 public String toString() {
32 return "[inside structure=" + insideStructure + ", inside model configuration=" + insideModelConfiguration + ", has representation=" + hasRepresentation + "]";