public class AssociationRoleModel extends RoleModel
A AssociationRoleModel object is a pair of an association ID and a role type URI.
Assertion: both, the association ID and the role type URI are set.
In the database a role type is represented by a topic of type "dm4.core.role_type".
playerId, roleTypeUri
Constructor and Description |
---|
AssociationRoleModel(org.codehaus.jettison.json.JSONObject assocRoleModel) |
AssociationRoleModel(long assocId,
String roleTypeUri) |
Modifier and Type | Method and Description |
---|---|
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() |
String |
toString() |
clone, getPlayerId, getRoleTypeUri, setPlayerId, setRoleTypeUri
public AssociationRoleModel(long assocId, String roleTypeUri)
public AssociationRoleModel(org.codehaus.jettison.json.JSONObject assocRoleModel)
public boolean refsSameObject(RoleModel model)
RoleModel
refsSameObject
in class RoleModel
public org.codehaus.jettison.json.JSONObject toJSON()
Copyright © 2015. All Rights Reserved.