Class RatingAnnotationWrapper

    • Field Detail

      • LEVEL_ZERO

        public static final int LEVEL_ZERO
        Indicates the object is not rated.
        See Also:
        Constant Field Values
      • LEVEL_ONE

        public static final int LEVEL_ONE
        Indicates the object is rated with one star.
        See Also:
        Constant Field Values
      • LEVEL_TWO

        public static final int LEVEL_TWO
        Indicates the object is rated with two stars.
        See Also:
        Constant Field Values
      • LEVEL_THREE

        public static final int LEVEL_THREE
        Indicates the object is rated with three stars.
        See Also:
        Constant Field Values
      • LEVEL_FOUR

        public static final int LEVEL_FOUR
        Indicates the object is rated with four stars.
        See Also:
        Constant Field Values
      • LEVEL_FIVE

        public static final int LEVEL_FIVE
        Indicates the object is rated with five stars.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RatingAnnotationWrapper

        public RatingAnnotationWrapper​(RatingAnnotationData object)
        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 Detail

      • 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.