]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.g3d/src/org/simantics/g3d/objmap/annotations/RelatedElementsGet.java
3D framework (Simca 2012)
[simantics/3d.git] / org.simantics.g3d / src / org / simantics / g3d / objmap / annotations / RelatedElementsGet.java
diff --git a/org.simantics.g3d/src/org/simantics/g3d/objmap/annotations/RelatedElementsGet.java b/org.simantics.g3d/src/org/simantics/g3d/objmap/annotations/RelatedElementsGet.java
new file mode 100644 (file)
index 0000000..eb33e0d
--- /dev/null
@@ -0,0 +1,18 @@
+package org.simantics.g3d.objmap.annotations;\r
+\r
+import java.lang.annotation.ElementType;\r
+import java.lang.annotation.Retention;\r
+import java.lang.annotation.RetentionPolicy;\r
+import java.lang.annotation.Target;\r
+\r
+import org.simantics.g3d.objmap.annotations.factories.RelatedElementsRuleFactory;\r
+\r
+\r
+@Retention(RetentionPolicy.RUNTIME)\r
+@Target(ElementType.METHOD)\r
+@HasCollectionRuleFactory(RelatedElementsRuleFactory.class)\r
+@HasCollectionAdder(RelatedElementsAdd.class)\r
+@HasCollectionRemover(RelatedElementsRem.class)\r
+public @interface RelatedElementsGet {\r
+       String value();\r
+}\r