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, preDelete, setRoleModel1, setRoleModel2, storeSimpleValue, storeTypeUri, storeUri, updateChildTopics, updateRoleTypeUri
_updateChildTopics, delete, equals, getChildTopicsModel, getId, getIndexValue, getSimpleValue, getTypeUri, getUri, hashCode, isSimple, loadChildTopics, loadChildTopics, postDelete, preUpdate, set, setChildTopicsModel, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, update, updateChildTopics, updateSimpleValue, updateTypeUri, updateUri, uriChange
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, getOtherPlayerId, getRoleModel, getRoleModel1, getRoleModel2, hasSameRoleTypeUris, setRoleModel1, setRoleModel2
createRoleModel, getChildTopicsModel, getId, getSimpleValue, getTypeUri, getUri, set, setChildTopicsModel, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri
private 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 AssociationDefinitionModel
public String getCustomAssocTypeUri()
getCustomAssocTypeUri
in interface AssociationDefinitionModel
public String getInstanceLevelAssocTypeUri()
getInstanceLevelAssocTypeUri
in interface AssociationDefinitionModel
public String getParentTypeUri()
getParentTypeUri
in interface AssociationDefinitionModel
public String getChildTypeUri()
getChildTypeUri
in interface AssociationDefinitionModel
public String getParentCardinalityUri()
getParentCardinalityUri
in interface AssociationDefinitionModel
public String getChildCardinalityUri()
getChildCardinalityUri
in interface AssociationDefinitionModel
public ViewConfigurationModelImpl getViewConfigModel()
getViewConfigModel
in interface AssociationDefinitionModel
public void setParentCardinalityUri(String parentCardinalityUri)
setParentCardinalityUri
in interface AssociationDefinitionModel
public void setChildCardinalityUri(String childCardinalityUri)
setChildCardinalityUri
in interface AssociationDefinitionModel
public void setViewConfigModel(ViewConfigurationModel viewConfig)
setViewConfigModel
in interface AssociationDefinitionModel
public org.codehaus.jettison.json.JSONObject toJSON()
toJSON
in interface JSONEnabled
toJSON
in class AssociationModelImpl
public String toString()
toString
in class AssociationModelImpl
String className()
className
in class AssociationModelImpl
AssociationDefinition instantiate()
instantiate
in class AssociationModelImpl
void postUpdate(DeepaMehtaObjectModel newModel, DeepaMehtaObjectModel oldModel)
postUpdate
in class AssociationModelImpl
void updateParentCardinalityUri(String parentCardinalityUri)
void updateChildCardinalityUri(String childCardinalityUri)
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 RelatedTopicModel getCustomAssocType()
private String defaultInstanceLevelAssocTypeUri()
Copyright © 2016. All Rights Reserved.