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 interface AssociationRoleIF extends TypedIF, ReifiableIF
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
Fields Modifier and Type Field Description static String
EVENT_ADDED
static String
EVENT_REMOVED
static String
EVENT_SET_PLAYER
static String
EVENT_SET_TYPE
-
Fields inherited from interface net.ontopia.topicmaps.core.ReifiableIF
EVENT_SET_REIFIER
-
Fields inherited from interface net.ontopia.topicmaps.core.TMObjectIF
EVENT_ADD_ITEMIDENTIFIER, EVENT_REMOVE_ITEMIDENTIFIER, MSG_NULL_ARGUMENT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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).void
setPlayer(TopicIF player)
PUBLIC: Sets the topic that plays this association role.-
Methods inherited from interface net.ontopia.topicmaps.core.ReifiableIF
getReifier, setReifier
-
Methods inherited from interface net.ontopia.topicmaps.core.TMObjectIF
addItemIdentifier, getItemIdentifiers, getObjectId, getTopicMap, isReadOnly, remove, removeItemIdentifier
-
-
-
-
Field Detail
-
EVENT_ADDED
static final String EVENT_ADDED
- See Also:
- Constant Field Values
-
EVENT_REMOVED
static final String EVENT_REMOVED
- See Also:
- Constant Field Values
-
EVENT_SET_TYPE
static final String EVENT_SET_TYPE
- See Also:
- Constant Field Values
-
EVENT_SET_PLAYER
static final String EVENT_SET_PLAYER
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
void setPlayer(TopicIF player)
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.
-
-