org.stanwood.media.model
Class Actor

java.lang.Object
  extended by org.stanwood.media.model.Actor
All Implemented Interfaces:
java.io.Serializable

public class Actor
extends java.lang.Object
implements java.io.Serializable

Used to store information on actors

See Also:
Serialized Form

Constructor Summary
Actor()
          The constructor
Actor(java.lang.String name, java.lang.String role)
          The constructor used to create a instance of the class
 
Method Summary
 java.lang.String getName()
          Used to get the name of the actor
 java.lang.String getRole()
          Used to get the role the actor played
 void setName(java.lang.String name)
          Used to set the actor name
 void setRole(java.lang.String role)
          Used to set the actor role
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Actor

public Actor(java.lang.String name,
             java.lang.String role)
The constructor used to create a instance of the class

Parameters:
name - The name of the actor
role - The role the actor played

Actor

public Actor()
The constructor

Method Detail

getName

public java.lang.String getName()
Used to get the name of the actor

Returns:
The name of the actor

getRole

public java.lang.String getRole()
Used to get the role the actor played

Returns:
the role the actor played

setName

public void setName(java.lang.String name)
Used to set the actor name

Parameters:
name - The actor name

setRole

public void setRole(java.lang.String role)
Used to set the actor role

Parameters:
role - The actor role