public interface AssocModel extends DMXObjectModel
Assoc
.
An AssocModel
can also be used to provide the data for an association create or update
operation. To instantiate an AssocModel
use the ModelFactory
.
Modifier and Type | Method and Description |
---|---|
AssocModel |
clone() |
long |
getOtherPlayerId(long id) |
PlayerModel |
getPlayer1() |
PlayerModel |
getPlayer2() |
PlayerModel |
getPlayerByRole(String roleTypeUri) |
boolean |
hasSameRoleTypeUris() |
boolean |
matches(String roleTypeUri1,
long playerId1,
String roleTypeUri2,
long playerId2)
Checks if the given players match this association.
|
int |
playerCount(String roleTypeUri) |
void |
setPlayer1(PlayerModel player1) |
void |
setPlayer2(PlayerModel player2) |
createPlayerModel, getChildTopics, getId, getSimpleValue, getTypeUri, getUri, set, setChildTopics, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri
dump, toJSON
PlayerModel getPlayer1()
PlayerModel getPlayer2()
void setPlayer1(PlayerModel player1)
void setPlayer2(PlayerModel player2)
PlayerModel getPlayerByRole(String roleTypeUri)
int playerCount(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)
AssocModel clone()
clone
in interface DMXObjectModel
Copyright © 2023. All Rights Reserved.