public class AssociationRole extends TMObject implements AssociationRoleIF
Modifier and Type | Field and Description |
---|---|
protected TopicIF |
player |
protected TopicIF |
reifier |
protected TopicIF |
type |
oid, parent, sources, topicmap
EVENT_ADDED, EVENT_REMOVED, EVENT_SET_PLAYER, EVENT_SET_TYPE
EVENT_SET_REIFIER
EVENT_ADD_ITEMIDENTIFIER, EVENT_REMOVE_ITEMIDENTIFIER, MSG_NULL_ARGUMENT
Modifier | Constructor and Description |
---|---|
protected |
AssociationRole(TopicMap tm) |
Modifier and Type | Method and Description |
---|---|
protected void |
fireEvent(String event,
Object new_value,
Object old_value)
INTERNAL: Fires an event, so that listeners can be informed about
the event.
|
AssociationIF |
getAssociation()
PUBLIC: Gets the association to which this association role
belongs.
|
TopicIF |
getPlayer()
PUBLIC: Gets the topic that plays this association role (this member of the association).
|
TopicIF |
getReifier()
PUBLIC: Returns the topic that reifies this object.
|
TopicIF |
getType()
PUBLIC: Gets the type that this object is an instance of.
|
boolean |
isConnected() |
void |
remove()
PUBLIC: Removes the object from its parent.
|
protected void |
setAssociation(Association parent)
INTERNAL: Sets the association that the association role belongs to.
|
void |
setPlayer(TopicIF player)
PUBLIC: Sets the topic that plays this association role.
|
void |
setReifier(TopicIF _reifier)
PUBLIC: Sets the reifier of this object.
|
void |
setType(TopicIF type)
PUBLIC: Sets the type that this object is an instance of.
|
String |
toString() |
addItemIdentifier, getItemIdentifiers, getObjectId, getTopicMap, isReadOnly, removeItemIdentifier
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addItemIdentifier, getItemIdentifiers, getObjectId, getTopicMap, isReadOnly, removeItemIdentifier
protected TopicIF reifier
protected TopicIF type
protected TopicIF player
protected AssociationRole(TopicMap tm)
public AssociationIF getAssociation()
AssociationRoleIF
getAssociation
in interface AssociationRoleIF
protected void setAssociation(Association parent)
public TopicIF getPlayer()
AssociationRoleIF
getPlayer
in interface AssociationRoleIF
public void setPlayer(TopicIF player)
AssociationRoleIF
setPlayer
in interface AssociationRoleIF
player
- The topic (member) which plays this role in the association.
Can be null; if null, then the effect is that there is no player
of this role in this association.public void remove()
TMObjectIF
remove
in interface TMObjectIF
public TopicIF getType()
TypedIF
public void setType(TopicIF type)
TypedIF
public TopicIF getReifier()
ReifiableIF
getReifier
in interface ReifiableIF
public void setReifier(TopicIF _reifier)
ReifiableIF
setReifier
in interface ReifiableIF
protected void fireEvent(String event, Object new_value, Object old_value)
TMObject
public boolean isConnected()
isConnected
in class TMObject