de.deepamehta.core
Interface Association

Show UML class diagram
All Superinterfaces:
DeepaMehtaObject, Identifiable, JSONEnabled
All Known Subinterfaces:
AssociationDefinition, RelatedAssociation
All Known Implementing Classes:
AttachedAssociation, AttachedAssociationDefinition, AttachedRelatedAssociation

public interface Association
extends DeepaMehtaObject

### FIXDOC: Specification of an association -- A n-ary connection between topics and other associations.

Author:
Jörg Richter

Method Summary
 AssociationModel getModel()
           
 DeepaMehtaObject getPlayer1()
           
 DeepaMehtaObject getPlayer2()
           
 Role getRole(RoleModel roleModel)
          Returns this association's role which refers to the same object as the given role model.
 Role getRole1()
           
 Role getRole2()
           
 Topic getTopic(String roleTypeUri)
           
 Topic getTopicByType(String topicTypeUri)
           
 boolean isPlayer(TopicRoleModel roleModel)
           
 Association loadChildTopics()
           
 Association loadChildTopics(String childTypeUri)
           
 void update(AssociationModel model)
           
 
Methods inherited from interface de.deepamehta.core.DeepaMehtaObject
delete, getAssociation, getAssociations, getChildTopics, getDatabaseVendorObject, getId, getProperty, getRelatedAssociation, getRelatedAssociations, getRelatedTopic, getRelatedTopics, getRelatedTopics, getRelatedTopics, getSimpleValue, getTypeUri, getUri, hasProperty, removeProperty, setChildTopics, setProperty, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, update, updateChildTopic, updateChildTopics
 
Methods inherited from interface de.deepamehta.core.JSONEnabled
toJSON
 

Method Detail

getRole1

Role getRole1()

getRole2

Role getRole2()

getPlayer1

DeepaMehtaObject getPlayer1()

getPlayer2

DeepaMehtaObject getPlayer2()

getTopic

Topic getTopic(String roleTypeUri)

getTopicByType

Topic getTopicByType(String topicTypeUri)

getRole

Role getRole(RoleModel roleModel)
Returns this association's role which refers to the same object as the given role model. The role returned is found by comparing topic IDs, topic URIs, or association IDs. The role types are not compared.

If the object refered by the given role model is not a player in this association an exception is thrown.


isPlayer

boolean isPlayer(TopicRoleModel roleModel)

loadChildTopics

Association loadChildTopics()
Specified by:
loadChildTopics in interface DeepaMehtaObject

loadChildTopics

Association loadChildTopics(String childTypeUri)
Specified by:
loadChildTopics in interface DeepaMehtaObject

getModel

AssociationModel getModel()
Specified by:
getModel in interface DeepaMehtaObject

update

void update(AssociationModel model)


Copyright © 2015. All Rights Reserved.