org.tmapi.core
Interface Role

All Superinterfaces:
Construct, Reifiable, Typed

public interface Role
extends Reifiable, Typed

Represents an association role item.

Version:
$Rev: 102 $ - $Date: 2009-03-16 22:41:32 +0100 (Mo, 16 Mrz 2009) $
Author:
The TMAPI Project

Method Summary
 Association getParent()
          Returns the Association to which this role belongs.
 Topic getPlayer()
          Returns the topic playing this role.
 void setPlayer(Topic player)
          Sets the role player.
 
Methods inherited from interface org.tmapi.core.Reifiable
getReifier, setReifier
 
Methods inherited from interface org.tmapi.core.Typed
getType, setType
 
Methods inherited from interface org.tmapi.core.Construct
addItemIdentifier, equals, getId, getItemIdentifiers, getTopicMap, hashCode, remove, removeItemIdentifier
 

Method Detail

getParent

Association getParent()
Returns the Association to which this role belongs.

Specified by:
getParent in interface Construct
Returns:
The association to which this role belongs.
See Also:
Construct.getParent()

getPlayer

Topic getPlayer()
Returns the topic playing this role.

Returns:
The role player.

setPlayer

void setPlayer(Topic player)
Sets the role player. Any previous role player will be overridden by player.

Parameters:
player - The topic which should play this role.
Throws:
ModelConstraintException - If the player is null.