Package fr.igred.omero.annotations
Class RatingAnnotationWrapper
java.lang.Object
fr.igred.omero.GenericObjectWrapper<T>
fr.igred.omero.annotations.GenericAnnotationWrapper<RatingAnnotationData>
fr.igred.omero.annotations.RatingAnnotationWrapper
Class containing a RatingAnnotationData object.
Wraps function calls to the RatingAnnotationData contained.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Indicates the object is rated with five stars.static final int
Indicates the object is rated with four stars.static final int
Indicates the object is rated with one star.static final int
Indicates the object is rated with three stars.static final int
Indicates the object is rated with two stars.static final int
Indicates the object is not rated.Fields inherited from class fr.igred.omero.GenericObjectWrapper
data
-
Constructor Summary
ConstructorDescriptionRatingAnnotationWrapper
(int value) Creates a new Textual Annotation with the provided text.Constructor of the RatingAnnotationWrapper class. -
Method Summary
Methods inherited from class fr.igred.omero.annotations.GenericAnnotationWrapper
countAnnotationLinks, getDatasets, getDescription, getFolders, getImages, getLastModified, getNameSpace, getPlateAcquisitions, getPlates, getProjects, getScreens, getWells, setDescription, setNameSpace
Methods inherited from class fr.igred.omero.GenericObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, flatten, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrap
-
Field Details
-
LEVEL_ZERO
public static final int LEVEL_ZEROIndicates the object is not rated.- See Also:
-
LEVEL_ONE
public static final int LEVEL_ONEIndicates the object is rated with one star.- See Also:
-
LEVEL_TWO
public static final int LEVEL_TWOIndicates the object is rated with two stars.- See Also:
-
LEVEL_THREE
public static final int LEVEL_THREEIndicates the object is rated with three stars.- See Also:
-
LEVEL_FOUR
public static final int LEVEL_FOURIndicates the object is rated with four stars.- See Also:
-
LEVEL_FIVE
public static final int LEVEL_FIVEIndicates the object is rated with five stars.- See Also:
-
-
Constructor Details
-
RatingAnnotationWrapper
Constructor of the RatingAnnotationWrapper class.- Parameters:
object
- RatingAnnotationData to wrap.
-
RatingAnnotationWrapper
public RatingAnnotationWrapper(int value) Creates a new Textual Annotation with the provided text.- Parameters:
value
- The rating value. One of the constants defined by this class.
-
-
Method Details
-
getRating
public int getRating()Returns the rating value.- Returns:
- See above.
-
setRating
public void setRating(int value) Sets the rating value.- Parameters:
value
- The value to set. Must be one of the constants defined by this class.
-