|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.impl.basic.TMObject
net.ontopia.topicmaps.impl.basic.AssociationRole
net.ontopia.topicmaps.impl.remote.DynamicAssociationRole
public class DynamicAssociationRole
INTERNAL: PRIVATE:
| Field Summary |
|---|
| Fields inherited from class net.ontopia.topicmaps.impl.basic.AssociationRole |
|---|
player, reifier, type |
| Fields inherited from class net.ontopia.topicmaps.impl.basic.TMObject |
|---|
MSG_NULL_ARGUMENT, sources |
| Constructor Summary | |
|---|---|
DynamicAssociationRole(TopicMap tm)
|
|
| Method Summary | |
|---|---|
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 |
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()
|
| Methods inherited from class net.ontopia.topicmaps.impl.basic.AssociationRole |
|---|
fireEvent, getReifier, remove, setReifier |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicAssociationRole(TopicMap tm)
tm - | Method Detail |
|---|
public AssociationIF getAssociation()
AssociationRoleIF
getAssociation in interface AssociationRoleIFgetAssociation in class AssociationRolepublic TopicIF getPlayer()
AssociationRoleIF
getPlayer in interface AssociationRoleIFgetPlayer in class AssociationRolepublic TopicIF getType()
TypedIF
getType in interface TypedIFgetType in class AssociationRolepublic boolean isConnected()
isConnected in class AssociationRolepublic void setPlayer(TopicIF player)
AssociationRoleIF
setPlayer 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)
TypedIF
setType 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 AssociationRole
public void addItemIdentifier(LocatorIF source_locator)
throws ConstraintViolationException
TMObjectIF
addItemIdentifier 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()
TMObjectIF
getObjectId in interface TMObjectIFgetObjectId in class TMObjectpublic Collection 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()
TMObjectIF
getTopicMap in interface TMObjectIFgetTopicMap in class TMObjectpublic boolean isReadOnly()
TMObjectIF
isReadOnly in interface TMObjectIFisReadOnly in class TMObjectpublic void removeItemIdentifier(LocatorIF source_locator)
TMObjectIF
removeItemIdentifier in interface TMObjectIFremoveItemIdentifier in class TMObjectsource_locator - The item identifier to be removed; an object implementing LocatorIF.public boolean equals(Object obj)
equals in class Objectpublic boolean equals(DynamicAssociationRole obj)
public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||