public interface AssociationModel extends DMXObjectModel
Association
.Modifier and Type | Method and Description |
---|---|
AssociationModel |
clone() |
long |
getOtherPlayerId(long id) |
RoleModel |
getRoleModel(String roleTypeUri) |
RoleModel |
getRoleModel1() |
RoleModel |
getRoleModel2() |
boolean |
hasSameRoleTypeUris() |
boolean |
matches(String roleTypeUri1,
long playerId1,
String roleTypeUri2,
long playerId2)
Checks if the given players match this association.
|
void |
setRoleModel1(RoleModel roleModel1) |
void |
setRoleModel2(RoleModel roleModel2) |
createRoleModel, getChildTopicsModel, getId, getSimpleValue, getTypeUri, getUri, set, setChildTopicsModel, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri
toJSON
RoleModel getRoleModel1()
RoleModel getRoleModel2()
void setRoleModel1(RoleModel roleModel1)
void setRoleModel2(RoleModel roleModel2)
RoleModel getRoleModel(String roleTypeUri)
boolean hasSameRoleTypeUris()
boolean matches(String roleTypeUri1, long playerId1, String roleTypeUri2, long playerId2)
IllegalArgumentException
- if both given role type URIs are identical.long getOtherPlayerId(long id)
AssociationModel clone()
clone
in interface DMXObjectModel
Copyright © 2018. All Rights Reserved.