public class CreditPerson extends Object
Movie
object, and
establishes links to all the people who worked on that movie, as part of the
cast (actors and actresses) or crew (directors, producers, composers, etc).
For actors and actresses on a movie, CreditActor
(a subclass of
CreditPerson
) is used instead. For writers of a movie,
CreditWriter
(another subclass) is used. For all other people who
worked on the movie, this class is used.
This object does not have the full information about the person in question
-- it only has the ID (getPersonId()
) and the name (getName()
)
of the person. If you need to find more properties of the person, you can use
MovieDB.getPersonById(int)
to fetch the full Person
object.
When you look at a Person
object, the movies that person has worked on
are given as lists of BiographyItem
objects. So BiographyItem
is
like CreditPerson
, but in the opposite direction (from a person to a movie).
Constructor and Description |
---|
CreditPerson() |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name of the person who worked on this movie.
|
String |
getNote()
Gets an informational
attribute about the job that this person did on this movie, or about how they were
credited.
|
int |
getPersonId()
Gets the unique numerical ID of the person who worked on this movie.
|
String |
toString()
Generates a JSON string representing this CreditPerson.
|
public int getPersonId()
Person.getId()
for more information about IDs.public String getName()
Person.getName()
for more information about names.public String getNote()
Copyright © 2017. All rights reserved.