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