1 package org.simantics.objmap.graph.annotations;
3 /*******************************************************************************
4 * Copyright (c) 2019 Association for Decentralized Information Management
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
12 * Semantum oy - initial API and implementation
13 *******************************************************************************/
15 import java.lang.annotation.ElementType;
16 import java.lang.annotation.Retention;
17 import java.lang.annotation.RetentionPolicy;
18 import java.lang.annotation.Target;
20 import org.simantics.layer0.Layer0;
21 import org.simantics.objmap.graph.annotations.meta.IsFieldRule;
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.
27 @Retention(RetentionPolicy.RUNTIME)
28 @Target(ElementType.FIELD)
30 public @interface LinkedList {
32 * URI of a relation that has a Layer0.List as its object.
36 * URI of the type of the list resource to create.
38 String type() default Layer0.URIs.List;
39 boolean composition() default false;