FileDocCategorySizeDatePackage
Role.javaAPI DocExample472Fri Aug 23 09:55:50 BST 2002com.mediamania.prototype

Role

public class Role extends Object

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

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

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

    return actor;
public MoviegetMovie()

    return movie;
public java.lang.StringgetName()

    return name;