X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.g3d%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fobjmap%2Fannotations%2FRelatedGetValue.java;fp=org.simantics.g3d%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fobjmap%2Fannotations%2FRelatedGetValue.java;h=1f39513e0307be1eefb3b49af4e7959df8554ad8;hb=87b3241ec277ba3d8e414b26186a032c9cdcaeed;hp=0000000000000000000000000000000000000000;hpb=1f0bcd66274375f2278d2e6c486cb28257a5f7b2;p=simantics%2F3d.git diff --git a/org.simantics.g3d/src/org/simantics/g3d/objmap/annotations/RelatedGetValue.java b/org.simantics.g3d/src/org/simantics/g3d/objmap/annotations/RelatedGetValue.java new file mode 100644 index 00000000..1f39513e --- /dev/null +++ b/org.simantics.g3d/src/org/simantics/g3d/objmap/annotations/RelatedGetValue.java @@ -0,0 +1,20 @@ +package org.simantics.g3d.objmap.annotations; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +import org.simantics.g3d.objmap.annotations.factories.RelatedGetSetValueRuleFactory; +import org.simantics.objmap.rules.adapters.IdentityAdapter; +import org.simantics.objmap.rules.adapters.ValueAdapter; + + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.METHOD) +@HasGetSetRuleFactory(RelatedGetSetValueRuleFactory.class) +@HasSetter(RelatedSetValue.class) +public @interface RelatedGetValue { + String value(); + Class adapter() default IdentityAdapter.class; +}