FileDocCategorySizeDatePackage
MediaPerson.javaAPI DocExample1565Sun Nov 03 21:10:58 GMT 2002com.mediamania.content

MediaPerson

public class MediaPerson extends Object

Fields Summary
private String
mediaName
private String
firstName
private String
lastName
private Date
birthDate
private Set
actingRoles
private Set
moviesDirected
Constructors Summary
private MediaPerson()

 
public MediaPerson(String mediaName)

        this.mediaName = mediaName;
        actingRoles = new HashSet();
        moviesDirected = new HashSet();
    
public MediaPerson(String mediaName, String firstName, String lastName, Date birthDate)

        this.mediaName = mediaName;
        this.firstName = firstName;
        this.lastName  = lastName;
        this.birthDate = birthDate;
        actingRoles = new HashSet();
        moviesDirected = new HashSet();
    
Methods Summary
public voidaddMoviesDirected(Movie movie)

        moviesDirected.add(movie);
    
public voidaddRole(Role role)

        actingRoles.add(role);
    
public java.util.DategetBirthDate()

        return birthDate;
    
public java.lang.StringgetFirstName()

        return firstName;
    
public java.lang.StringgetLastName()

        return lastName;
    
public java.util.SetgetMoviesDirected()

        return Collections.unmodifiableSet(moviesDirected);
    
public java.lang.StringgetName()

        return mediaName;
    
public java.util.SetgetRoles()

        return Collections.unmodifiableSet(actingRoles);