de.deepamehta.core.model
Class AssociationModel
java.lang.Object
de.deepamehta.core.model.DeepaMehtaObjectModel
de.deepamehta.core.model.AssociationModel
- All Implemented Interfaces:
- Identifiable, JSONEnabled, Cloneable
- Direct Known Subclasses:
- AssociationDefinitionModel, AssociationViewmodel, RelatedAssociationModel
public class AssociationModel
- extends DeepaMehtaObjectModel
Collection of the data that makes up an Association
.
- Author:
- Jörg Richter
Constructor Summary |
AssociationModel(AssociationModel model)
|
AssociationModel(JSONObject assocModel)
|
AssociationModel(long id)
|
AssociationModel(long id,
String uri,
String typeUri,
RoleModel roleModel1,
RoleModel roleModel2)
|
AssociationModel(long id,
String uri,
String typeUri,
RoleModel roleModel1,
RoleModel roleModel2,
SimpleValue value,
CompositeValueModel composite)
|
AssociationModel(String typeUri,
RoleModel roleModel1,
RoleModel roleModel2)
|
AssociationModel(String typeUri,
RoleModel roleModel1,
RoleModel roleModel2,
CompositeValueModel composite)
|
Methods inherited from class de.deepamehta.core.model.DeepaMehtaObjectModel |
equals, getCompositeValueModel, getId, getSimpleValue, getTypeUri, getUri, hashCode, set, setCompositeValue, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri |
roleModel1
private RoleModel roleModel1
roleModel2
private RoleModel roleModel2
AssociationModel
public AssociationModel(String typeUri,
RoleModel roleModel1,
RoleModel roleModel2)
AssociationModel
public AssociationModel(String typeUri,
RoleModel roleModel1,
RoleModel roleModel2,
CompositeValueModel composite)
AssociationModel
public AssociationModel(long id)
AssociationModel
public AssociationModel(long id,
String uri,
String typeUri,
RoleModel roleModel1,
RoleModel roleModel2)
AssociationModel
public AssociationModel(long id,
String uri,
String typeUri,
RoleModel roleModel1,
RoleModel roleModel2,
SimpleValue value,
CompositeValueModel composite)
AssociationModel
public AssociationModel(AssociationModel model)
AssociationModel
public AssociationModel(JSONObject assocModel)
getRoleModel1
public RoleModel getRoleModel1()
getRoleModel2
public RoleModel getRoleModel2()
getRoleModel
public RoleModel getRoleModel(String roleTypeUri)
getOtherPlayerId
public long getOtherPlayerId(long id)
hasSameRoleTypeUris
public boolean hasSameRoleTypeUris()
createRoleModel
public RoleModel createRoleModel(String roleTypeUri)
- Specified by:
createRoleModel
in class DeepaMehtaObjectModel
toJSON
public JSONObject toJSON()
- Specified by:
toJSON
in interface JSONEnabled
- Overrides:
toJSON
in class DeepaMehtaObjectModel
clone
public AssociationModel clone()
- Overrides:
clone
in class DeepaMehtaObjectModel
toString
public String toString()
- Overrides:
toString
in class DeepaMehtaObjectModel
parseRole
private RoleModel parseRole(JSONObject roleModel)
Copyright © 2013. All Rights Reserved.