public class BiographyItem extends Object
Person
object, and
establishes a link to a movie on which that person worked. Thus, the movie
is one item that this person would list on their biography (or filmography).
If the person was an actor or actress on a movie, Role
(a subclass
of BiographyItem
) is used instead. If the person was a writer,
ScriptWriter
(another subclass) is used. For all other ways that a
person can be credited on a movie, this class is used.
This object does not have the full information about the movie on which
the person worked -- it only has the ID (getMovieId()
) and the
title (getTitle()
). If you need to find more properties of the movie,
you can use MovieDB.getMovieById(int)
to fetch the full Movie
object.
When you look at a Movie
object, the people who worked on that movie
are given as lists of CreditPerson
objects. So CreditPerson
is
like BiographyItem
, but in the opposite direction (from a movie to a
person).
Constructor and Description |
---|
BiographyItem() |
Modifier and Type | Method and Description |
---|---|
int |
getMovieId()
Gets the unique numerical ID of the movie on which the person worked.
|
String |
getNote()
Gets an informational
attribute about the job that this person did on this movie, or about how they were
credited.
|
String |
getTitle()
Gets the title of the movie on which the person worked.
|
String |
toString()
Generates a JSON string representing this BiographyItem.
|
public int getMovieId()
Movie.getId()
for more information about IDs.public String getTitle()
Movie.getTitle()
for more information about titles.public String getNote()
Copyright © 2017. All rights reserved.