FileDocCategorySizeDatePackage
Role.javaAPI DocExample637Thu Jan 30 20:27:58 GMT 2003com.mediamania.content

Role

public class Role extends Object

Fields Summary
private String
name
private MediaPerson
actor
private Movie
movie
Constructors Summary
private Role()

 
public Role(String name, MediaPerson actor, Movie movie)

        this.name = name;
        this.actor = actor;
        this.movie = movie;
        actor.addRole(this);
        movie.addRole(this);
    
Methods Summary
public MediaPersongetActor()

        return actor;
    
public MoviegetMovie()

        return movie;
    
public java.lang.StringgetName()

        return name;
    
public voidsetMovie(Movie theMovie)

        movie = theMovie;