]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.objmap2/src/org/simantics/objmap/structural/annotations/TypeRelatedGetValue.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.objmap2 / src / org / simantics / objmap / structural / annotations / TypeRelatedGetValue.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.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.HasSetter;
20 import org.simantics.objmap.graph.annotations.meta.IsGetSetRule;
21 import org.simantics.objmap.graph.rules.adapters.IdentityAdapter;
22 import org.simantics.objmap.graph.rules.adapters.ValueAdapter;
23
24
25
26 @Retention(RetentionPolicy.RUNTIME)
27 @Target(ElementType.METHOD)
28 //@HasGetSetRuleFactory(RelatedGetSetValueRuleFactory.class)
29 @IsGetSetRule
30 @HasSetter(TypeRelatedSetValue.class)
31 public @interface TypeRelatedGetValue {
32         String value();
33          Class<? extends ValueAdapter> adapter() default IdentityAdapter.class;
34 }