Package net.ontopia.topicmaps.core
Interface AssociationIF
- All Superinterfaces:
ReifiableIF,ScopedIF,TMObjectIF,TypedIF
- All Known Subinterfaces:
MAssociation
- All Known Implementing Classes:
Association,Association,DynamicAssociation,PhantomAssociation,ReadOnlyAssociation
PUBLIC: Implemented by objects representing associations in the
topic map model.
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 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 TypeMethodDescriptiongetRoles()PUBLIC: Gets all the association roles of the association.getRolesByType(TopicIF roletype) PUBLIC: Gets the association roles in this association which are of the given role type.PUBLIC: Gets a Collection of association role types found in this association.Methods inherited from interface net.ontopia.topicmaps.core.ReifiableIF
getReifier, setReifierMethods inherited from interface net.ontopia.topicmaps.core.ScopedIF
addTheme, getScope, removeThemeMethods 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_ADD_ROLE
- See Also:
-
EVENT_REMOVE_ROLE
- See Also:
-
EVENT_ADD_THEME
- See Also:
-
EVENT_REMOVE_THEME
- See Also:
-
-
Method Details
-
getRoleTypes
Collection<TopicIF> getRoleTypes()PUBLIC: Gets a Collection of association role types found in this association. The returned collection does not contain any duplicates. Even if some roles have no type, null will not be returned as one of the role types in the returned set.- Returns:
- A Collection of TopicIF objects.
-
getRolesByType
PUBLIC: Gets the association roles in this association which are of the given role type.- Parameters:
roletype- The type of the roles returned; an object implementing TopicIF. If null the method will return the roles that have no type.- Returns:
- A Collection of AssociationRoleIF objects.
-
getRoles
Collection<AssociationRoleIF> getRoles()PUBLIC: Gets all the association roles of the association. The returned roles may appear in any order.- Returns:
- A collection of AssociationRoleIF objects.
-