org.tm4j.topicmap .Association

Description

This interface describes an association between one or more topics, subject indicators, or resources. The type of the Association is defined by an optional typing Topic, and its validity may or may not be restricted to a particular scope, defined by a set of Topics. An association contains one or more Member objects whose roles may be defined by role-specifying Topics.

Implementations of this interface

Method Summary
void addMember(org.tm4j.topicmap.Member member)
Adds a new Member to the association.
Member createMember(java.lang.String id)
Creates a new Member and adds it to this Association.
Member createMember(java.lang.String id,org.tm4j.net.Locator resourceLoc,org.tm4j.topicmap.Topic roleSpec,java.util.Collection players)
Creates a new Member and adds it to this Association.
void dispose()
java.util.Collection getMembers()
Returns the Members that the Association contains.
java.util.Collection getMembersOfRole(org.tm4j.topicmap.Topic roleSpec)
Returns the Member objects which play the specified role in this association.
TopicMap getParent()
Returns the TopicMap object which contains this Association object.
Topic getType()
Gets the Topic defining the type of the Association.
void isOfType(org.tm4j.topicmap.Topic type)
Determines whether the type of the association is described by type.
void removeMember(org.tm4j.topicmap.Member member)
Removes a member from this association.
void setMembers(org.tm4j.topicmap.Member[] members)
Defines the member constructs which are members of this association.
void setType(org.tm4j.topicmap.Topic type)
Sets the Topic defining the type of this Association.

Related Topics

Is Contained By
Is Imported By
Is Type For