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) |
AssociationType |
getType() |
boolean |
isPlayer(TopicRoleModel roleModel) |
Association |
loadChildTopics() |
Association |
loadChildTopics(String assocDefUri) |
void |
removeProperty(String propUri)
Removes this object's property associated with the given property URI.
|
void |
setProperty(String propUri,
Object propValue,
boolean addToIndex) |
void |
update(AssociationModel newModel) |
className, delete, equals, getChildTopics, getDatabaseVendorObject, getId, getProperty, getRelatedTopic, getRelatedTopics, getRelatedTopics, getSimpleValue, getTypeUri, getUri, hashCode, hasProperty, setChildTopics, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, toJSON, toString, update, updateChildTopic, updateChildTopicsclone, finalize, getClass, notify, notifyAll, wait, wait, waitdelete, getChildTopics, getDatabaseVendorObject, getId, getProperty, getRelatedTopic, getRelatedTopics, getRelatedTopics, getSimpleValue, getTypeUri, getUri, hasProperty, setChildTopics, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, update, updateChildTopic, updateChildTopicstoJSONAssociationImpl(AssociationModelImpl model, PersistenceLayer pl)
public Role getRole1()
getRole1 in interface Associationpublic Role getRole2()
getRole2 in interface Associationpublic DeepaMehtaObject getPlayer1()
getPlayer1 in interface Associationpublic DeepaMehtaObject getPlayer2()
getPlayer2 in interface Associationpublic Topic getTopic(String roleTypeUri)
getTopic in interface Associationpublic Topic getTopicByType(String topicTypeUri)
getTopicByType in interface Associationpublic Role getRole(RoleModel roleModel)
AssociationIf the object refered by the given role model is not a player in this association an exception is thrown.
getRole in interface Associationpublic boolean isPlayer(TopicRoleModel roleModel)
isPlayer in interface Associationpublic void update(AssociationModel newModel)
update in interface Associationpublic Association loadChildTopics()
loadChildTopics in interface AssociationloadChildTopics in interface DeepaMehtaObjectloadChildTopics in class DeepaMehtaObjectImplpublic Association loadChildTopics(String assocDefUri)
loadChildTopics in interface AssociationloadChildTopics in interface DeepaMehtaObjectloadChildTopics in class DeepaMehtaObjectImplpublic AssociationType getType()
getType in interface DeepaMehtaObjectpublic AssociationModelImpl getModel()
getModel in interface AssociationgetModel in interface DeepaMehtaObjectgetModel in class DeepaMehtaObjectImplpublic List<RelatedTopic> getRelatedTopics(List assocTypeUris, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
getRelatedTopics in interface DeepaMehtaObjectassocTypeUris - 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 DeepaMehtaObjectassocTypeUri - 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 DeepaMehtaObjectassocTypeUri - 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 DeepaMehtaObjectpublic List<Association> getAssociations()
getAssociations in interface DeepaMehtaObjectpublic void setProperty(String propUri, Object propValue, boolean addToIndex)
setProperty in interface DeepaMehtaObjectpublic void removeProperty(String propUri)
DeepaMehtaObjectremoveProperty in interface DeepaMehtaObjectprivate TopicRole filterRole(Role role, TopicRoleModel roleModel)
Copyright © 2016. All Rights Reserved.