]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.objmap2/src/org/simantics/objmap/graph/annotations/RelatedValue.java
Support for linked lists in objmap2.
[simantics/platform.git] / bundles / org.simantics.objmap2 / src / org / simantics / objmap / graph / annotations / RelatedValue.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2013 Association for Decentralized Information Management
3  * in 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.graph.annotations;
13
14 import java.lang.annotation.ElementType;
15 import java.lang.annotation.Retention;
16 import java.lang.annotation.RetentionPolicy;
17 import java.lang.annotation.Target;
18
19 import org.simantics.objmap.graph.annotations.meta.IsFieldRule;
20 import org.simantics.objmap.graph.rules.adapters.IdentityAdapter;
21 import org.simantics.objmap.graph.rules.adapters.ValueAdapter;
22
23
24
25 /**
26  * Specifies a correspondence between a field and 
27  * functional property.
28  * @author Hannu Niemistö
29  */
30 @Retention(RetentionPolicy.RUNTIME)
31 @Target(ElementType.FIELD)
32 @IsFieldRule
33 public @interface RelatedValue {
34     String value();
35     Class<? extends ValueAdapter> adapter() default IdentityAdapter.class;
36 }