class TopicRoleModelImpl extends RoleModelImpl implements TopicRoleModel
Modifier and Type | Field and Description |
---|---|
private boolean |
topicIdentifiedByUri |
private String |
topicUri |
mf, pl, playerId, roleTypeUri
Constructor and Description |
---|
TopicRoleModelImpl(long topicId,
String roleTypeUri,
PersistenceLayer pl) |
TopicRoleModelImpl(String topicUri,
String roleTypeUri,
PersistenceLayer pl) |
Modifier and Type | Method and Description |
---|---|
(package private) RelatedTopicModelImpl |
getPlayer(AssociationModelImpl assoc) |
long |
getPlayerId() |
String |
getTopicUri() |
(package private) Role |
instantiate(AssociationModelImpl assoc) |
boolean |
refsSameObject(RoleModel model)
Checks weather the given role model refers to the same object as this role model.
|
org.codehaus.jettison.json.JSONObject |
toJSON() |
boolean |
topicIdentifiedByUri() |
clone, getRoleTypeUri, setPlayerId, setRoleTypeUri, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, getRoleTypeUri, setPlayerId, setRoleTypeUri
private boolean topicIdentifiedByUri
TopicRoleModelImpl(long topicId, String roleTypeUri, PersistenceLayer pl)
TopicRoleModelImpl(String topicUri, String roleTypeUri, PersistenceLayer pl)
public long getPlayerId()
getPlayerId
in interface RoleModel
getPlayerId
in class RoleModelImpl
public String getTopicUri()
getTopicUri
in interface TopicRoleModel
public boolean topicIdentifiedByUri()
topicIdentifiedByUri
in interface TopicRoleModel
public boolean refsSameObject(RoleModel model)
RoleModel
refsSameObject
in interface RoleModel
public org.codehaus.jettison.json.JSONObject toJSON()
toJSON
in interface JSONEnabled
Role instantiate(AssociationModelImpl assoc)
instantiate
in class RoleModelImpl
assoc
- the association this role is involved inRelatedTopicModelImpl getPlayer(AssociationModelImpl assoc)
getPlayer
in class RoleModelImpl
assoc
- the association this role is involved inCopyright © 2018. All Rights Reserved.