public class Links
extends java.lang.Object
Modifier and Type | Method and 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.IObject |
setObjects(omero.model.IObject link,
DataObject parent,
DataObject child)
Set the parent, child or both of an existing link
|
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
parent
- The parentchild
- The childjava.lang.ClassNotFoundException
public static omero.model.IObject setObjects(omero.model.IObject link, DataObject parent, DataObject child) throws java.lang.ReflectiveOperationException
link
- The link objectparent
- The parent (or null
)child
- The child (or null
)java.lang.ReflectiveOperationException