Package omero.gateway.util
Class Links
- java.lang.Object
-
- omero.gateway.util.Links
-
public class Links extends java.lang.ObjectSome helper methods dealing with XXXYYYLinkI IObjects, e.g. ImageAnnotationLinkI
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Class<? extends omero.model.IObject>getLinkClass(java.lang.Class<? extends DataObject> parent, java.lang.Class<? extends DataObject> child)Get the Link class for a certain child parent combination, e.g.static omero.model.IObjectsetObjects(omero.model.IObject link, DataObject parent, DataObject child)Set the parent, child or both of an existing link
-
-
-
Method Detail
-
getLinkClass
public static java.lang.Class<? extends omero.model.IObject> getLinkClass(java.lang.Class<? extends DataObject> parent, java.lang.Class<? extends DataObject> child) throws java.lang.ClassNotFoundException
Get the Link class for a certain child parent combination, e.g. parent: DatasetData, child: ImageData => omero.model.DatasetImageLinkI- Parameters:
parent- The parentchild- The child- Returns:
- See above
- Throws:
java.lang.ClassNotFoundException
-
setObjects
public static omero.model.IObject setObjects(omero.model.IObject link, DataObject parent, DataObject child) throws java.lang.ReflectiveOperationExceptionSet the parent, child or both of an existing link- Parameters:
link- The link objectparent- The parent (ornull)child- The child (ornull)- Returns:
- The link object
- Throws:
java.lang.ReflectiveOperationException
-
-