]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.objmap2/src/org/simantics/objmap/structural/IStructuralObject.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.objmap2 / src / org / simantics / objmap / structural / IStructuralObject.java
1 /*******************************************************************************
2  * Copyright (c) 2012, 2013 Association for Decentralized Information Management in
3  * 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  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.objmap.structural;
13
14 import java.util.List;
15
16 import org.simantics.db.Resource;
17
18 /**
19  * Interface for structurally mapped Java objects.
20  * 
21  * @author Marko Luukkainen <marko.luukkainen@vtt.fi>
22  *
23  */
24 public interface IStructuralObject {
25         
26         /**
27          * Context of an object. 
28          * @return
29          */
30         public List<IStructuralObject> getContext();
31
32         /**
33          * Sets object's context. Used by ObjMap, don't touch. 
34          * @param object
35          */
36         public void setContext(List<IStructuralObject> object);
37         
38         /**
39          * Return type resource for Structural instances. For other objects returns null.
40          * @return
41          */
42         public Resource getType();
43         
44         /**
45          * Sets object's type. Used by ObjMap, don't touch.
46          * @param object
47          */
48         public void setType(Resource type);
49 }