de.deepamehta.core
Interface Association
- 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
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 |
getRole1
Role getRole1()
getRole2
Role getRole2()
getPlayer1
DeepaMehtaObject getPlayer1()
getPlayer2
DeepaMehtaObject getPlayer2()
getTopic
Topic getTopic(String roleTypeUri)
getTopics
List<Topic> getTopics(String roleTypeUri)
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 © 2014. All Rights Reserved.