Class RatingAnnotationWrapper


public class RatingAnnotationWrapper extends GenericAnnotationWrapper<RatingAnnotationData>
Class containing a RatingAnnotationData object.

Wraps function calls to the RatingAnnotationData contained.

  • Field Details

    • LEVEL_ZERO

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

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

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

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

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

      public static final int LEVEL_FIVE
      Indicates the object is rated with five stars.
      See Also:
  • Constructor Details

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