public class Person extends Object
MovieDB.getPersonById(int)
, and search
for people by name using MovieDB.getByNamePrefix(String)
.Constructor and Description |
---|
Person() |
Modifier and Type | Method and Description |
---|---|
static Person |
fromJson(String json)
Parses a JSON string into a
Person object. |
List<Role> |
getActorIn()
If this person is an actor or actress, gets the list of movies
in which they played a
role, sorted by year.
|
List<BiographyItem> |
getCinematographerIn()
If this person is a cinematographer
or director of photography, gets a list of movies that they worked on, sorted by year.
|
List<BiographyItem> |
getComposerIn()
If this person is a composer, gets the
list of movies on which
they composed the main background score, sorted by year.
|
List<BiographyItem> |
getCostumeDesignerIn()
If this person is a costume
designer, gets a list of movies that they worked on, sorted by year.
|
List<BiographyItem> |
getDirectorIn()
If this person is a director, gets the
list of movies they
directed, sorted by year.
|
List<BiographyItem> |
getEditorIn()
If this person is a picture
editor, gets a list of movies that they worked on, sorted by year.
|
String |
getGender()
Gets the gender of
this person, either "male" or "female".
|
int |
getId()
Gets the unique numerical ID of this person.
|
String |
getName()
|
List<BiographyItem> |
getProducerIn()
If this person is a producer
(including executive producer, line producer, etc.), gets the list of movies that they
produced, sorted by year.
|
List<BiographyItem> |
getProductionDesignerIn()
If this person is a production
designer, gets the list of movies that they worked on, sorted by year.
|
List<ScriptWriter> |
getWriterIn()
If this person is a screenplay
or story writer, gets a list of movies that they wrote, sorted by year.
|
String |
toString()
Generates a JSON string representing this person.
|
public static Person fromJson(String json)
Person
object.json
- JSON data representing a person.public String toString()
public int getId()
public String getName()
public String getGender()
public List<Role> getActorIn()
public List<BiographyItem> getCinematographerIn()
public List<BiographyItem> getComposerIn()
public List<BiographyItem> getCostumeDesignerIn()
public List<BiographyItem> getDirectorIn()
public List<BiographyItem> getEditorIn()
public List<BiographyItem> getProducerIn()
public List<BiographyItem> getProductionDesignerIn()
public List<ScriptWriter> getWriterIn()
Copyright © 2016. All rights reserved.