Class MovieEY
java.lang.Object
MovieEY
A Movie Object
A Movie object contains all the parameters used to define
a movie in the project
-
Constructor Summary
ConstructorsConstructorDescriptionMovieEY(String movieID, String name, String movieLanguage, MovieTypeEN movieType, MovieRatingEN movieRating, ShowStatusEN showStatus, String synopsis, String director, ArrayList<String> cast, ArrayList<String> ratingsID) Movie Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddViewerRatingsID(String ratingsID) Set method for the ratingsID of the movieGet method for the type of the movie in booleangetCast()Get method for the cast of the movieGet method for the director of the movieGet method for the spoken language in the movieGet method for the ID of the movieGet method for the rating of the movieget method to get the movie typegetName()Get method for the name of the movieGet method for the current status of the movieGet method for the description of the moviegetType()Get method for the type of the movieGet method for the ratingsID of the movievoidSet method for the cast of the movievoidsetDirector(String director) Set method for the director of the movievoidsetLanguage(String lang) Set method for the language of the movievoidsetMovieRating(MovieRatingEN movieRating) Set method for the name of the movievoidSet method for the name of the movievoidsetReviews(ArrayList<ReviewEY> reviews) Method to set reviewsvoidsetShowStatus(ShowStatusEN showStatus) Set method for the status of the movievoidsetSynopsis(String synopsis) Set method for the description of the movievoidsetType(MovieTypeEN type) Set method for the type of the movietoString()Method return a string representation/ also overriding toString method
-
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 moviename- Movie NamemovieLanguage- The language spoken in the moviemovieType- 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 plotdirector- The director of the moviecast- The cast of the movieratingsID- The ratings given by users to the movie
-
-
Method Details
-
setReviews
Method to set reviews- Parameters:
reviews- The review object
-
getMovieID
Get method for the ID of the movie- Returns:
- The movieID of the current movie object
-
getName
Get method for the name of the movie- Returns:
- The name of the movie
-
setName
Set method for the name of the movie- Parameters:
name- The new name of the movie
-
getLanguage
Get method for the spoken language in the movie- Returns:
- The spoken language in the movie
-
setLanguage
Set method for the language of the movie- Parameters:
lang- The new langauge for the movie
-
getType
Get method for the type of the movie- Returns:
- The type of the movie
-
getBoolType
Get method for the type of the movie in boolean- Returns:
- The boolean type of the movie
-
setType
Set method for the type of the movie- Parameters:
type- The type of the movie
-
getMovieRating
Get method for the rating of the movie- Returns:
- The movie rating
-
setMovieRating
Set method for the name of the movie- Parameters:
movieRating- The new rating of the movie
-
getShowStatus
Get method for the current status of the movie- Returns:
- the current show status
-
setShowStatus
Set method for the status of the movie- Parameters:
showStatus- The new show status of the movie
-
getSynopsis
Get method for the description of the movie- Returns:
- The brief description of the movie
-
setSynopsis
Set method for the description of the movie- Parameters:
synopsis- The new brief description of the movie
-
getDirector
Get method for the director of the movie- Returns:
- The director of the movie
-
setDirector
Set method for the director of the movie- Parameters:
director- The new director of the movie
-
getCast
Get method for the cast of the movie- Returns:
- The cast of the movie
-
setCast
Set method for the cast of the movie- Parameters:
cast- The new cast of the movie
-
getViewerRatingsID
Get method for the ratingsID of the movie- Returns:
- The ratings IDs
-
addViewerRatingsID
Set method for the ratingsID of the movie- Parameters:
ratingsID- The ratings IDs of the movie
-
getMovieType
get method to get the movie type- Returns:
- movie type (BLOCKBUSTER,THREEDIMENSION,DOCUMENTAR)
-
toString
Method return a string representation/ also overriding toString method
-