public class AssociationDefinitionModel extends AssociationModel
Modifier and Type | Field and Description |
---|---|
private String |
childCardinalityUri |
private String |
childTypeUri |
private String |
customAssocTypeUri |
private Logger |
logger |
private String |
parentCardinalityUri |
private String |
parentTypeUri |
private ViewConfigurationModel |
viewConfigModel |
childTopics, id, typeUri, uri, value
Constructor and Description |
---|
AssociationDefinitionModel(org.codehaus.jettison.json.JSONObject assocDef) |
AssociationDefinitionModel(long id,
String uri,
String assocTypeUri,
String customAssocTypeUri,
String parentTypeUri,
String childTypeUri,
String parentCardinalityUri,
String childCardinalityUri,
ViewConfigurationModel viewConfigModel) |
AssociationDefinitionModel(String assocTypeUri,
String parentTypeUri,
String childTypeUri,
String parentCardinalityUri,
String childCardinalityUri) |
AssociationDefinitionModel(String assocTypeUri,
String customAssocTypeUri,
String parentTypeUri,
String childTypeUri,
String parentCardinalityUri,
String childCardinalityUri) |
Modifier and Type | Method and Description |
---|---|
private static TopicRoleModel |
childRoleModel(org.codehaus.jettison.json.JSONObject assocDef) |
private static TopicRoleModel |
childRoleModel(String childTypeUri) |
private String |
childTypeUri() |
private String |
defaultInstanceLevelAssocTypeUri() |
String |
getChildCardinalityUri() |
String |
getChildTypeUri() |
String |
getCustomAssocTypeUri() |
String |
getInstanceLevelAssocTypeUri()
The type to be used to create an association instance based on this association definition.
|
String |
getParentCardinalityUri() |
String |
getParentTypeUri() |
ViewConfigurationModel |
getViewConfigModel() |
private static TopicRoleModel |
parentRoleModel(org.codehaus.jettison.json.JSONObject assocDef) |
private static TopicRoleModel |
parentRoleModel(String parentTypeUri) |
private String |
parentTypeUri() |
void |
setChildCardinalityUri(String childCardinalityUri) |
void |
setCustomAssocTypeUri(String customAssocTypeUri) |
void |
setParentCardinalityUri(String parentCardinalityUri) |
void |
setViewConfigModel(ViewConfigurationModel viewConfigModel) |
org.codehaus.jettison.json.JSONObject |
toJSON() |
(package private) static void |
toJSON(Collection<AssociationDefinitionModel> assocDefs,
org.codehaus.jettison.json.JSONObject o) |
String |
toString() |
clone, createRoleModel, getOtherPlayerId, getRoleModel, getRoleModel1, getRoleModel2, hasSameRoleTypeUris, setRoleModel1, setRoleModel2
equals, getChildTopicsModel, getId, getSimpleValue, getTypeUri, getUri, hashCode, set, setChildTopicsModel, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri
private String customAssocTypeUri
private String parentTypeUri
private String childTypeUri
private String parentCardinalityUri
private String childCardinalityUri
private ViewConfigurationModel viewConfigModel
public AssociationDefinitionModel(String assocTypeUri, String parentTypeUri, String childTypeUri, String parentCardinalityUri, String childCardinalityUri)
public AssociationDefinitionModel(String assocTypeUri, String customAssocTypeUri, String parentTypeUri, String childTypeUri, String parentCardinalityUri, String childCardinalityUri)
public AssociationDefinitionModel(long id, String uri, String assocTypeUri, String customAssocTypeUri, String parentTypeUri, String childTypeUri, String parentCardinalityUri, String childCardinalityUri, ViewConfigurationModel viewConfigModel)
customAssocTypeUri
- if null no custom association type will be set.AssociationDefinitionModel(org.codehaus.jettison.json.JSONObject assocDef) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
public String getCustomAssocTypeUri()
public String getInstanceLevelAssocTypeUri()
public String getParentTypeUri()
public String getChildTypeUri()
public String getParentCardinalityUri()
public String getChildCardinalityUri()
public ViewConfigurationModel getViewConfigModel()
public void setCustomAssocTypeUri(String customAssocTypeUri)
public void setParentCardinalityUri(String parentCardinalityUri)
public void setChildCardinalityUri(String childCardinalityUri)
public void setViewConfigModel(ViewConfigurationModel viewConfigModel)
public org.codehaus.jettison.json.JSONObject toJSON()
toJSON
in interface JSONEnabled
toJSON
in class AssociationModel
public String toString()
toString
in class AssociationModel
static void toJSON(Collection<AssociationDefinitionModel> assocDefs, org.codehaus.jettison.json.JSONObject o) throws Exception
Exception
private static TopicRoleModel parentRoleModel(org.codehaus.jettison.json.JSONObject assocDef) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
private static TopicRoleModel childRoleModel(org.codehaus.jettison.json.JSONObject assocDef) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
private static TopicRoleModel parentRoleModel(String parentTypeUri)
private static TopicRoleModel childRoleModel(String childTypeUri)
private String parentTypeUri()
private String childTypeUri()
private String defaultInstanceLevelAssocTypeUri()
Copyright © 2015. All Rights Reserved.