Class Links


  • public class Links
    extends java.lang.Object
    Some 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.IObject setObjects​(omero.model.IObject link, DataObject parent, DataObject child)
      Set the parent, child or both of an existing link
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 parent
        child - 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.ReflectiveOperationException
        Set the parent, child or both of an existing link
        Parameters:
        link - The link object
        parent - The parent (or null)
        child - The child (or null)
        Returns:
        The link object
        Throws:
        java.lang.ReflectiveOperationException