Class MovieEY


public class MovieEY extends Object
A Movie Object

A Movie object contains all the parameters used to define a movie in the project

  • Constructor Details

    • MovieEY

      public MovieEY(String movieID, String name, String movieLanguage, MovieTypeEN movieType, MovieRatingEN movieRating, ShowStatusEN showStatus, String synopsis, String director, ArrayList<String> cast, ArrayList<String> ratingsID)
      Movie Constructor
      Parameters:
      movieID - The ID of the movie
      name - Movie Name
      movieLanguage - The language spoken in the movie
      movieType - The type of movie (Blockbuster/3D/Documentary)
      movieRating - The rating of the movie (G/PG/PG-13/R/X)
      showStatus - The current status of the movie (ComingSoon/NowShowing/Preview/EndOfShowing)
      synopsis - A brief description of the movie plot
      director - The director of the movie
      cast - The cast of the movie
      ratingsID - The ratings given by users to the movie
  • Method Details

    • setReviews

      public void setReviews(ArrayList<ReviewEY> reviews)
      Method to set reviews
      Parameters:
      reviews - The review object
    • getMovieID

      public String getMovieID()
      Get method for the ID of the movie
      Returns:
      The movieID of the current movie object
    • getName

      public String getName()
      Get method for the name of the movie
      Returns:
      The name of the movie
    • setName

      public void setName(String name)
      Set method for the name of the movie
      Parameters:
      name - The new name of the movie
    • getLanguage

      public String getLanguage()
      Get method for the spoken language in the movie
      Returns:
      The spoken language in the movie
    • setLanguage

      public void setLanguage(String lang)
      Set method for the language of the movie
      Parameters:
      lang - The new langauge for the movie
    • getType

      public MovieTypeEN getType()
      Get method for the type of the movie
      Returns:
      The type of the movie
    • getBoolType

      public Boolean getBoolType()
      Get method for the type of the movie in boolean
      Returns:
      The boolean type of the movie
    • setType

      public void setType(MovieTypeEN type)
      Set method for the type of the movie
      Parameters:
      type - The type of the movie
    • getMovieRating

      public MovieRatingEN getMovieRating()
      Get method for the rating of the movie
      Returns:
      The movie rating
    • setMovieRating

      public void setMovieRating(MovieRatingEN movieRating)
      Set method for the name of the movie
      Parameters:
      movieRating - The new rating of the movie
    • getShowStatus

      public ShowStatusEN getShowStatus()
      Get method for the current status of the movie
      Returns:
      the current show status
    • setShowStatus

      public void setShowStatus(ShowStatusEN showStatus)
      Set method for the status of the movie
      Parameters:
      showStatus - The new show status of the movie
    • getSynopsis

      public String getSynopsis()
      Get method for the description of the movie
      Returns:
      The brief description of the movie
    • setSynopsis

      public void setSynopsis(String synopsis)
      Set method for the description of the movie
      Parameters:
      synopsis - The new brief description of the movie
    • getDirector

      public String getDirector()
      Get method for the director of the movie
      Returns:
      The director of the movie
    • setDirector

      public void setDirector(String director)
      Set method for the director of the movie
      Parameters:
      director - The new director of the movie
    • getCast

      public ArrayList<String> getCast()
      Get method for the cast of the movie
      Returns:
      The cast of the movie
    • setCast

      public void setCast(ArrayList<String> cast)
      Set method for the cast of the movie
      Parameters:
      cast - The new cast of the movie
    • getViewerRatingsID

      public ArrayList<String> getViewerRatingsID()
      Get method for the ratingsID of the movie
      Returns:
      The ratings IDs
    • addViewerRatingsID

      public void addViewerRatingsID(String ratingsID)
      Set method for the ratingsID of the movie
      Parameters:
      ratingsID - The ratings IDs of the movie
    • getMovieType

      public MovieTypeEN getMovieType()
      get method to get the movie type
      Returns:
      movie type (BLOCKBUSTER,THREEDIMENSION,DOCUMENTAR)
    • toString

      public String toString()
      Method return a string representation/ also overriding toString method
      Overrides:
      toString in class Object