de.deepamehta.core.impl
Class AttachedRole

Show UML class diagram
java.lang.Object
  extended by de.deepamehta.core.impl.AttachedRole
All Implemented Interfaces:
JSONEnabled, Role
Direct Known Subclasses:
AttachedAssociationRole, AttachedTopicRole

abstract class AttachedRole
extends Object
implements Role


Field Summary
private  Association assoc
           
protected  EmbeddedService dms
           
private  RoleModel model
           
 
Constructor Summary
protected AttachedRole(RoleModel model, Association assoc, EmbeddedService dms)
           
 
Method Summary
 RoleModel getModel()
           
 long getPlayerId()
           
 String getRoleTypeUri()
           
 void setRoleTypeUri(String roleTypeUri)
           
private  void storeRoleTypeUri()
           
 JSONObject toJSON()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.deepamehta.core.Role
getPlayer
 

Field Detail

model

private RoleModel model

assoc

private Association assoc

dms

protected final EmbeddedService dms
Constructor Detail

AttachedRole

protected AttachedRole(RoleModel model,
                       Association assoc,
                       EmbeddedService dms)
Method Detail

getRoleTypeUri

public String getRoleTypeUri()
Specified by:
getRoleTypeUri in interface Role

getPlayerId

public long getPlayerId()
Specified by:
getPlayerId in interface Role

setRoleTypeUri

public void setRoleTypeUri(String roleTypeUri)
Specified by:
setRoleTypeUri in interface Role

getModel

public RoleModel getModel()
Specified by:
getModel in interface Role

toJSON

public JSONObject toJSON()
Specified by:
toJSON in interface JSONEnabled

storeRoleTypeUri

private void storeRoleTypeUri()


Copyright © 2014. All Rights Reserved.