Package net.ontopia.topicmaps.core
Interface AssociationRoleIF
- All Superinterfaces:
ReifiableIF,TMObjectIF,TypedIF
- All Known Subinterfaces:
MAssociationRole,MAssociationRoleWithoutAssociation
- All Known Implementing Classes:
AssociationRole,AssociationRole,DynamicAssociationRole,ReadOnlyAssociationRole
PUBLIC: Implemented by objects representing association roles in
the topic map model. Association roles are first-class objects
which represent a topic playing a role in an association.
Note: in XTM 1.0 terminology, associations have members playing
roles in the association. In ISO 13250 terminology, playing a role
in an association is a characteristic of a topic. These notions are
intended to be equivalent.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface net.ontopia.topicmaps.core.ReifiableIF
EVENT_SET_REIFIERFields inherited from interface net.ontopia.topicmaps.core.TMObjectIF
EVENT_ADD_ITEMIDENTIFIER, EVENT_REMOVE_ITEMIDENTIFIER, MSG_NULL_ARGUMENT -
Method Summary
Modifier and TypeMethodDescriptionPUBLIC: Gets the association to which this association role belongs.PUBLIC: Gets the topic that plays this association role (this member of the association).voidPUBLIC: Sets the topic that plays this association role.Methods inherited from interface net.ontopia.topicmaps.core.ReifiableIF
getReifier, setReifierMethods inherited from interface net.ontopia.topicmaps.core.TMObjectIF
addItemIdentifier, getItemIdentifiers, getObjectId, getTopicMap, isReadOnly, remove, removeItemIdentifier
-
Field Details
-
EVENT_ADDED
- See Also:
-
EVENT_REMOVED
- See Also:
-
EVENT_SET_TYPE
- See Also:
-
EVENT_SET_PLAYER
- See Also:
-
-
Method Details
-
getAssociation
AssociationIF getAssociation()PUBLIC: Gets the association to which this association role belongs.- Returns:
- The association to which this association role belongs; an object implementing AssociationIF.
-
getPlayer
TopicIF getPlayer()PUBLIC: Gets the topic that plays this association role (this member of the association).- Returns:
- The topic (member) which plays this role in the association.
-
setPlayer
PUBLIC: Sets the topic that plays this association role. Note that this has the side-effect of removing the role from its current player, if any, and inserting it on the new player, if any.- Parameters:
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.
-