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, topicmapEVENT_ADDED, EVENT_REMOVED, EVENT_SET_PLAYER, EVENT_SET_TYPEEVENT_SET_REIFIEREVENT_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, removeItemIdentifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddItemIdentifier, getItemIdentifiers, getObjectId, getTopicMap, isReadOnly, removeItemIdentifierprotected TopicIF reifier
protected TopicIF type
protected TopicIF player
protected AssociationRole(TopicMap tm)
public AssociationIF getAssociation()
AssociationRoleIFgetAssociation in interface AssociationRoleIFprotected void setAssociation(Association parent)
public TopicIF getPlayer()
AssociationRoleIFgetPlayer in interface AssociationRoleIFpublic void setPlayer(TopicIF player)
AssociationRoleIFsetPlayer in interface AssociationRoleIFplayer - 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()
TMObjectIFremove in interface TMObjectIFpublic TopicIF getType()
TypedIFpublic void setType(TopicIF type)
TypedIFpublic TopicIF getReifier()
ReifiableIFgetReifier in interface ReifiableIFpublic void setReifier(TopicIF _reifier)
ReifiableIFsetReifier in interface ReifiableIFprotected void fireEvent(String event, Object new_value, Object old_value)
TMObjectpublic boolean isConnected()
isConnected in class TMObject