]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/annotations/LinkedList.java
Fix binding instance for CompoundRelatedGetValue method.
[simantics/platform.git] / bundles / org.simantics.objmap2 / src / org / simantics / objmap / graph / annotations / LinkedList.java
1 package org.simantics.objmap.graph.annotations;
2
3 /*******************************************************************************
4  * Copyright (c) 2019 Association for Decentralized Information Management
5  * in Industry THTH ry.
6  * All rights reserved. This program and the accompanying materials
7  * are made available under the terms of the Eclipse Public License v1.0
8  * which accompanies this distribution, and is available at
9  * http://www.eclipse.org/legal/epl-v10.html
10  *
11  * Contributors:
12  *     Semantum oy - initial API and implementation
13  *******************************************************************************/
14
15 import java.lang.annotation.ElementType;
16 import java.lang.annotation.Retention;
17 import java.lang.annotation.RetentionPolicy;
18 import java.lang.annotation.Target;
19
20 import org.simantics.layer0.Layer0;
21 import org.simantics.objmap.graph.annotations.meta.IsFieldRule;
22
23 /**
24  * This field is a java.util.List or an array type that represents the contents
25  * of a Layer0.List entity that is the single object of the given relation. 
26  */
27 @Retention(RetentionPolicy.RUNTIME)
28 @Target(ElementType.FIELD)
29 @IsFieldRule
30 public @interface LinkedList {
31         /**
32          * URI of a relation that has a Layer0.List as its object.
33          */
34         String value();
35         /**
36          * URI of the type of the list resource to create. 
37          */
38         String type() default Layer0.URIs.List;
39         boolean composition() default false;
40 }