Interface AssociationInterface

Description

Interface AssociationInterface: Represents the topic map association construct.

Interface AssociationInterface: Represents the topic map association construct.

Located in /org.phptmapi.core/Association.interface.php (line 12)

TopicMapObjectInterface
   |
   --ScopedObjectInterface
      |
      --AssociationInterface
Method Summary
Methods
createAssociationRole (line 20)

createAssociationRole: Creates a new AssociationRoleInterface representing a role in this association.

createAssociationRole: Creates a new AssociationRoleInterface representing a role in this association.

  • return: The newly created association role.
  • access: public
  • object TopicInterface $player: The topic playing the role or null if there is no player of this role.
  • object TopicInterface $type: The topic defining the role of the new association role, or null if the role is untyped.
getAssociationRoles (line 27)

getAssociationRoles: Returns the AssociationRoleInterface objects representing all of the roles in this association.

getAssociationRoles: Returns the AssociationRoleInterface objects representing all of the roles in this association.

  • access: public
array getAssociationRoles ()
getReifier (line 34)

getReifier: Returns the TopicInterface that reifies this association.

getReifier: Returns the TopicInterface that reifies this association.

  • return: A TopicInterface instance or null if the association is not reified.
  • access: public
object TopicInterface getReifier ()
setReifier (line 48)

setReifier: Sets the reifiying topic of this association.

setReifier: Sets the reifiying topic of this association.

  • 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 ScopedObjectInterface

ScopedObjectInterface::addScopingTopic()
ScopedObjectInterface::getScope()
ScopedObjectInterface::removeScopingTopic()

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:46 +0200 by phpDocumentor 1.3.0RC4