1 /*******************************************************************************
2 * Copyright (c) 2007, 2013 Association for Decentralized Information Management
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
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.objmap.graph.annotations;
14 import java.lang.annotation.ElementType;
15 import java.lang.annotation.Retention;
16 import java.lang.annotation.RetentionPolicy;
17 import java.lang.annotation.Target;
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;
26 * Specifies a correspondence between a field and
27 * functional property.
28 * @author Hannu Niemistö
30 @Retention(RetentionPolicy.RUNTIME)
31 @Target(ElementType.FIELD)
33 public @interface RelatedValue {
35 Class<? extends ValueAdapter> adapter() default IdentityAdapter.class;