public class DynamicAssociationRole extends AssociationRole
player, reifier, typeoid, parent, sources, topicmapEVENT_ADDED, EVENT_REMOVED, EVENT_SET_PLAYER, EVENT_SET_TYPEEVENT_SET_REIFIEREVENT_ADD_ITEMIDENTIFIER, EVENT_REMOVE_ITEMIDENTIFIER, MSG_NULL_ARGUMENT| Constructor and Description |
|---|
DynamicAssociationRole(TopicMap tm) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItemIdentifier(LocatorIF source_locator)
PUBLIC: Adds the given item identifier to the set of item
item identifiers for this object.
|
boolean |
equals(DynamicAssociationRole obj) |
boolean |
equals(Object obj) |
AssociationIF |
getAssociation()
PUBLIC: Gets the association to which this association role
belongs.
|
Collection<LocatorIF> |
getItemIdentifiers()
PUBLIC: Gets the item identifiers of this object.
|
String |
getObjectId()
PUBLIC: Gets the id of this object.
|
TopicIF |
getPlayer()
PUBLIC: Gets the topic that plays this association role (this member of the association).
|
TopicMapIF |
getTopicMap()
PUBLIC: Gets the topic map that this object belongs to.
|
TopicIF |
getType()
PUBLIC: Gets the type that this object is an instance of.
|
int |
hashCode() |
boolean |
isConnected() |
boolean |
isReadOnly()
PUBLIC: Returns true if this object is read-only, otherwise false.
|
void |
removeItemIdentifier(LocatorIF source_locator)
PUBLIC: Removes the given item identifier from the set of item
identifiers.
|
void |
setPlayer(TopicIF player)
PUBLIC: Sets the topic that plays this association role.
|
void |
setTarget(AssociationRole aRole) |
void |
setType(TopicIF type)
PUBLIC: Sets the type that this object is an instance of.
|
String |
toString() |
fireEvent, getReifier, remove, setAssociation, setReifierpublic DynamicAssociationRole(TopicMap tm)
tm - public AssociationIF getAssociation()
AssociationRoleIFgetAssociation in interface AssociationRoleIFgetAssociation in class AssociationRolepublic TopicIF getPlayer()
AssociationRoleIFgetPlayer in interface AssociationRoleIFgetPlayer in class AssociationRolepublic TopicIF getType()
TypedIFgetType in interface TypedIFgetType in class AssociationRolepublic boolean isConnected()
isConnected in class AssociationRolepublic void setPlayer(TopicIF player)
AssociationRoleIFsetPlayer in interface AssociationRoleIFsetPlayer in class AssociationRoleplayer - 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 setType(TopicIF type)
TypedIFsetType in interface TypedIFsetType in class AssociationRoletype - The type for this object; an object implementing TopicIF.public void setTarget(AssociationRole aRole)
public String toString()
toString in class AssociationRolepublic void addItemIdentifier(LocatorIF source_locator) throws ConstraintViolationException
TMObjectIFaddItemIdentifier in interface TMObjectIFaddItemIdentifier in class TMObjectsource_locator - The item identifier to be added; an object implementing LocatorIF.ConstraintViolationException - Thrown if another object
in the same topic map already has the given item
identifier.public String getObjectId()
TMObjectIFgetObjectId in interface TMObjectIFgetObjectId in class TMObjectpublic Collection<LocatorIF> getItemIdentifiers()
TMObjectIFThe purpose is to enable the engine to detect when references to external objects refer to objects that are already present within the system, such as topic maps which are already loaded.
getItemIdentifiers in interface TMObjectIFgetItemIdentifiers in class TMObjectpublic TopicMapIF getTopicMap()
TMObjectIFgetTopicMap in interface TMObjectIFgetTopicMap in class TMObjectpublic boolean isReadOnly()
TMObjectIFisReadOnly in interface TMObjectIFisReadOnly in class TMObjectpublic void removeItemIdentifier(LocatorIF source_locator)
TMObjectIFremoveItemIdentifier in interface TMObjectIFremoveItemIdentifier in class TMObjectsource_locator - The item identifier to be removed; an object implementing LocatorIF.public boolean equals(DynamicAssociationRole obj)