class AssociationImpl extends DeepaMehtaObjectImpl implements Association
Modifier and Type | Field and Description |
---|---|
private Logger |
logger |
mf, model, pl
Constructor and Description |
---|
AssociationImpl(AssociationModelImpl model,
PersistenceLayer pl) |
Modifier and Type | Method and Description |
---|---|
private TopicRole |
filterRole(Role role,
TopicRoleModel roleModel) |
Association |
getAssociation(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
long othersTopicId) |
List<Association> |
getAssociations() |
AssociationModelImpl |
getModel() |
DeepaMehtaObject |
getPlayer1() |
DeepaMehtaObject |
getPlayer2() |
RelatedAssociation |
getRelatedAssociation(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri) |
List<RelatedAssociation> |
getRelatedAssociations(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri) |
List<RelatedTopic> |
getRelatedTopics(List assocTypeUris,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri) |
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 assocDefUri) |
void |
update(AssociationModel updateModel) |
className, delete, equals, getChildTopics, getDatabaseVendorObject, getId, getProperty, getRelatedTopic, getRelatedTopics, getRelatedTopics, getSimpleValue, getType, getTypeUri, getUri, hashCode, hasProperty, removeProperty, setChildTopics, setProperty, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, toJSON, toString, update, updateChildTopic, updateChildTopics
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
delete, getChildTopics, getDatabaseVendorObject, getId, getProperty, getRelatedTopic, getRelatedTopics, getRelatedTopics, getSimpleValue, getType, getTypeUri, getUri, hasProperty, removeProperty, setChildTopics, setProperty, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, update, updateChildTopic, updateChildTopics
toJSON
AssociationImpl(AssociationModelImpl model, PersistenceLayer pl)
public Role getRole1()
getRole1
in interface Association
public Role getRole2()
getRole2
in interface Association
public DeepaMehtaObject getPlayer1()
getPlayer1
in interface Association
public DeepaMehtaObject getPlayer2()
getPlayer2
in interface Association
public Topic getTopic(String roleTypeUri)
getTopic
in interface Association
public Topic getTopicByType(String topicTypeUri)
getTopicByType
in interface Association
public Role getRole(RoleModel roleModel)
Association
If the object refered by the given role model is not a player in this association an exception is thrown.
getRole
in interface Association
public boolean isPlayer(TopicRoleModel roleModel)
isPlayer
in interface Association
public void update(AssociationModel updateModel)
update
in interface Association
public Association loadChildTopics()
loadChildTopics
in interface Association
loadChildTopics
in interface DeepaMehtaObject
loadChildTopics
in class DeepaMehtaObjectImpl
public Association loadChildTopics(String assocDefUri)
loadChildTopics
in interface Association
loadChildTopics
in interface DeepaMehtaObject
loadChildTopics
in class DeepaMehtaObjectImpl
public AssociationModelImpl getModel()
getModel
in interface Association
getModel
in interface DeepaMehtaObject
getModel
in class DeepaMehtaObjectImpl
public List<RelatedTopic> getRelatedTopics(List assocTypeUris, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
getRelatedTopics
in interface DeepaMehtaObject
assocTypeUris
- may *not* be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullpublic RelatedAssociation getRelatedAssociation(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
getRelatedAssociation
in interface DeepaMehtaObject
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersAssocTypeUri
- may be nullpublic List<RelatedAssociation> getRelatedAssociations(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
getRelatedAssociations
in interface DeepaMehtaObject
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersAssocTypeUri
- may be nullpublic Association getAssociation(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, long othersTopicId)
getAssociation
in interface DeepaMehtaObject
public List<Association> getAssociations()
getAssociations
in interface DeepaMehtaObject
private TopicRole filterRole(Role role, TopicRoleModel roleModel)
Copyright © 2017. All Rights Reserved.