class AssociationDefinitionModelImpl extends AssociationModelImpl implements AssociationDefinitionModel
| Modifier and Type | Field and Description |
|---|---|
private String |
childCardinalityUri |
private Logger |
logger |
private String |
parentCardinalityUri |
private ViewConfigurationModelImpl |
viewConfig |
childTopics, em, id, mf, pl, typeUri, uri, value| Constructor and Description |
|---|
AssociationDefinitionModelImpl(AssociationModelImpl assoc,
String parentCardinalityUri,
String childCardinalityUri,
ViewConfigurationModelImpl viewConfig)
### TODO: add include-in-label parameter?
|
_delete, clone, createRoleModel, getAssociations, getDeleteDirective, getOtherPlayerId, getPostDeleteEvent, getPostUpdateEvent, getPreDeleteEvent, getPreUpdateEvent, getReadAccessEvent, getRelatedTopic, getRelatedTopics, getRelatedTopics, getRoleModel, getRoleModel1, getRoleModel2, getTopic, getTopicByType, getType, getUpdateDirective, hasSameRoleTypeUris, indexSimpleValue, preCreate, preDelete, setRoleModel1, setRoleModel2, storeSimpleValue, storeTypeUri, storeUri, updateChildTopics, updateRoleTypeUri_updateChildTopics, calculateLabel, calculateLabelAndUpdate, delete, equals, getChildTopicsModel, getId, getIndexValue, getSimpleValue, getTypeUri, getUri, hashCode, isSimple, loadChildTopics, loadChildTopics, postCreate, postDelete, preUpdate, set, setChildTopicsModel, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, update, updateChildTopics, updateSimpleValue, updateTypeUri, updateUri, uriChangefinalize, getClass, notify, notifyAll, wait, wait, waitclone, getOtherPlayerId, getRoleModel, getRoleModel1, getRoleModel2, hasSameRoleTypeUris, setRoleModel1, setRoleModel2createRoleModel, getChildTopicsModel, getId, getSimpleValue, getTypeUri, getUri, set, setChildTopicsModel, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUriprivate String parentCardinalityUri
private String childCardinalityUri
private ViewConfigurationModelImpl viewConfig
AssociationDefinitionModelImpl(AssociationModelImpl assoc, String parentCardinalityUri, String childCardinalityUri, ViewConfigurationModelImpl viewConfig)
customAssocTypeUri - if null no custom association type will be set.public String getAssocDefUri()
getAssocDefUri in interface AssociationDefinitionModelpublic String getCustomAssocTypeUri()
getCustomAssocTypeUri in interface AssociationDefinitionModelpublic String getInstanceLevelAssocTypeUri()
getInstanceLevelAssocTypeUri in interface AssociationDefinitionModelpublic String getParentTypeUri()
getParentTypeUri in interface AssociationDefinitionModelpublic String getChildTypeUri()
getChildTypeUri in interface AssociationDefinitionModelpublic String getParentCardinalityUri()
getParentCardinalityUri in interface AssociationDefinitionModelpublic String getChildCardinalityUri()
getChildCardinalityUri in interface AssociationDefinitionModelpublic ViewConfigurationModelImpl getViewConfigModel()
getViewConfigModel in interface AssociationDefinitionModelpublic void setParentCardinalityUri(String parentCardinalityUri)
setParentCardinalityUri in interface AssociationDefinitionModelpublic void setChildCardinalityUri(String childCardinalityUri)
setChildCardinalityUri in interface AssociationDefinitionModelpublic void setViewConfigModel(ViewConfigurationModel viewConfig)
setViewConfigModel in interface AssociationDefinitionModelpublic org.codehaus.jettison.json.JSONObject toJSON()
toJSON in interface JSONEnabledtoJSON in class AssociationModelImplpublic String toString()
toString in class AssociationModelImplString className()
className in class AssociationModelImplAssociationDefinitionImpl instantiate()
instantiate in class AssociationModelImplvoid postUpdate(DeepaMehtaObjectModel newModel, DeepaMehtaObjectModel oldModel)
postUpdate in class AssociationModelImplvoid updateParentCardinalityUri(String parentCardinalityUri)
void updateChildCardinalityUri(String childCardinalityUri)
boolean isReadable()
String getCustomAssocTypeUriOrNull()
null if this assoc def's custom assoc type model is null or represents a deletion ref.
Otherwise returns the custom assoc type URI.TypeModelImpl getParentType()
private void updateCardinality(AssociationDefinitionModel newModel)
private void updateParentCardinality(String newParentCardinalityUri)
private void updateChildCardinality(String newChildCardinalityUri)
private boolean customAssocTypeChange(AssociationDefinitionModel newModel, AssociationDefinitionModel oldModel)
private TopicModelImpl getCustomAssocType()
private String defaultInstanceLevelAssocTypeUri()
Copyright © 2016. All Rights Reserved.