Interface AssociationRoleInterface

Description

Interface AssociationRoleInterface: Represents the topic map member / role construct (known as association role in HyTM).

Interface AssociationRoleInterface: Represents the topic map member / role construct (known as association role in HyTM). This class represents a normalised association member / role. In normalising the members / roles of an association, one member must be created for each of the role players of the association. For example the following (XTM) association would result in three Member / Role objects.

  1. <association>
  2. <member>
  3. <instanceOf><topicRef xlink:href="#parent"/></instanceOf>
  4. <topicRef xlink:href="#homer"/>
  5. </member>
  6. <member>
  7. <instanceOf><topicRef xlink:href="#child"/></instanceOf>
  8. <topicRef xlink:href="#bart"/>
  9. <topicRef xlink:href="#lisa"/>
  10. </member>
  11. </association>

Located in /org.phptmapi.core/AssociationRole.interface.php (line 26)

TopicMapObjectInterface
   |
   --AssociationRoleInterface
Method Summary
Methods
getAssociation (line 32)

getAssociation: Returns the association to which this association role belongs.

getAssociation: Returns the association to which this association role belongs.

  • access: public
object AssociationInterface getAssociation ()
getPlayer (line 47)

getPlayer: Returns the player of this association role or null if there is no role player.

getPlayer: Returns the player of this association role or null if there is no role player.

  • access: public
object TopicInterface getPlayer ()
getReifier (line 54)

getReifier: Returns the topic that reifies this association role.

getReifier: Returns the topic that reifies this association role.

  • access: public
object TopicInterface getReifier ()
setPlayer (line 40)

setPlayer: Sets the player of this association role.

setPlayer: Sets the player of this association role. $player overwrites any previous value.

  • access: public
void setPlayer (TopicInterface $player)
  • object TopicInterface $player: The topic which plays this role in the association, or null if no topic plays this role.
setReifier (line 68)

setReifier: Sets the reifiying topic of this association role.

setReifier: Sets the reifiying topic of this association role.

  • access: public
  • throws: ModelConstraintException if the topic already reifies another object.
    1. public function setReifier($reifier){
    2. throw new ModelConstraintException('Exception in '.__method__);
    3. }
void setReifier (object TopicInterface $reifier)

Inherited Methods

Inherited From TopicMapObjectInterface

TopicMapObjectInterface::addItemIdentifier()
TopicMapObjectInterface::getItemIdentifiers()
TopicMapObjectInterface::getObjectId()
TopicMapObjectInterface::getParent()
TopicMapObjectInterface::getTopicMap()
TopicMapObjectInterface::remove()
TopicMapObjectInterface::removeItemIdentifier()

Documentation generated on Fri, 30 Jun 2006 13:06:47 +0200 by phpDocumentor 1.3.0RC4