public class ModelMapper extends Object
DataObject
s into their corresponding
IObject
s.Constructor and Description |
---|
ModelMapper() |
Modifier and Type | Method and Description |
---|---|
static Object |
convertRTypeToJava(omero.RType type)
Converts the passed OMERO type into its corresponding Java type.
|
static omero.model.Annotation |
createAnnotation(AnnotationData data)
Creates a new annotation
IObject . |
static omero.model.IObject |
createAnnotationAndLink(omero.model.IObject annotatedObject,
AnnotationData data)
Creates a new annotation
IObject . |
static omero.model.IObject |
createIObject(DataObject child)
Converts the specified
DataObject into its corresponding
IObject . |
static omero.model.IObject |
createIObject(DataObject child,
DataObject parent)
Converts the specified
DataObject into its corresponding
IObject . |
static void |
fillIObject(omero.model.IObject oldObject,
omero.model.IObject newObject)
Fills the new IObject with data from the old one.
|
static omero.model.IObject |
getAnnotatedObject(omero.model.IObject annotation)
Returns the annotated IObject related to the specified annotation.
|
static omero.model.IObject |
getAnnotationObject(omero.model.IObject link)
Returns the annotation represented by the specified link
|
static omero.model.IObject |
getChildFromLink(omero.model.IObject link)
Returns the child from the passed link.
|
static omero.model.IObject |
getParentFromLink(omero.model.IObject link)
Returns the child from the passed link.
|
static omero.model.IObject |
linkAnnotation(omero.model.IObject annotatedObject,
omero.model.Annotation annotation)
Links the annotation to the passed object.
|
static omero.model.IObject |
linkParentToChild(omero.model.IObject child,
omero.model.IObject parent)
Links the
child to its parent . |
static void |
linkParentToNewChild(omero.model.IObject child,
omero.model.IObject parent)
Links the newly created
child to its
parent . |
static omero.model.IObject |
removeIObject(omero.model.IObject child,
omero.model.IObject parent)
Unlinks the specified child and the parent and returns the
updated child
IObject . |
static void |
unloadCollections(omero.model.IObject object)
Unlinks the collections linked to the specified
IObject . |
public static void unloadCollections(omero.model.IObject object)
IObject
.object
- The object.public static omero.model.IObject getChildFromLink(omero.model.IObject link)
link
- The link to handle.public static omero.model.IObject getParentFromLink(omero.model.IObject link)
link
- The link to handle.public static omero.model.IObject linkParentToChild(omero.model.IObject child, omero.model.IObject parent)
child
to its parent
.child
- The child to handle.parent
- The parent to handle.public static void linkParentToNewChild(omero.model.IObject child, omero.model.IObject parent)
child
to its
parent
. This method should only be invoked to add a
newly created child.child
- The newly created child.parent
- The parent of the newly created child.public static omero.model.IObject createIObject(DataObject child)
DataObject
into its corresponding
IObject
.child
- The child to create.IObject
to create.public static omero.model.IObject createIObject(DataObject child, DataObject parent)
DataObject
into its corresponding
IObject
.child
- The child to create.parent
- The child's parent.IObject
to create.public static omero.model.IObject removeIObject(omero.model.IObject child, omero.model.IObject parent)
IObject
.child
- The child to remove.parent
- The parent of the child.public static omero.model.IObject createAnnotationAndLink(omero.model.IObject annotatedObject, AnnotationData data)
IObject
.annotatedObject
- The DataObject
to annotate.
Can either be a DatasetData
or a ImageData
. Mustn't be
null
.data
- The annotation to create.public static omero.model.Annotation createAnnotation(AnnotationData data)
IObject
.data
- The annotation to create.public static omero.model.IObject linkAnnotation(omero.model.IObject annotatedObject, omero.model.Annotation annotation)
annotatedObject
- The object to annotate.annotation
- The annotation to link.public static omero.model.IObject getAnnotatedObject(omero.model.IObject annotation)
annotation
- The annotation.public static omero.model.IObject getAnnotationObject(omero.model.IObject link)
link
- The annotation.public static void fillIObject(omero.model.IObject oldObject, omero.model.IObject newObject)
oldObject
- The old object.newObject
- The object to fill.public static Object convertRTypeToJava(omero.RType type)
type
- The type to handle.
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.