1 /*******************************************************************************
2 * Copyright (c) 2012, 2013 Association for Decentralized Information Management in
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 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.objmap.structural;
14 import java.util.List;
16 import org.simantics.db.Resource;
19 * Interface for structurally mapped Java objects.
21 * @author Marko Luukkainen <marko.luukkainen@vtt.fi>
24 public interface IStructuralObject {
27 * Context of an object.
30 public List<IStructuralObject> getContext();
33 * Sets object's context. Used by ObjMap, don't touch.
36 public void setContext(List<IStructuralObject> object);
39 * Return type resource for Structural instances. For other objects returns null.
42 public Resource getType();
45 * Sets object's type. Used by ObjMap, don't touch.
48 public void setType(Resource type);