de.deepamehta.core.impl
Class AttachedAssociationDefinition
java.lang.Object
de.deepamehta.core.impl.AttachedDeepaMehtaObject
de.deepamehta.core.impl.AttachedAssociation
de.deepamehta.core.impl.AttachedAssociationDefinition
- All Implemented Interfaces:
- Association, AssociationDefinition, DeepaMehtaObject, Identifiable, JSONEnabled
class AttachedAssociationDefinition
- extends AttachedAssociation
- implements AssociationDefinition
An association definition that is attached to the DeepaMehtaService
.
Methods inherited from class de.deepamehta.core.impl.AttachedAssociation |
className, delete, fetchRelatedTopic, fetchRelatedTopics, getAssociation, getAssociations, getPlayer1, getPlayer2, getRelatedAssociation, getRelatedAssociations, getRelatedTopics, getRole, getRole1, getRole2, getTopic, getTopicByType, getType, getUpdateDirective, isPlayer, loadChildTopics, loadChildTopics, removeProperty, setProperty, storeTypeUri, storeUri, update, updateChildTopics |
Methods inherited from class de.deepamehta.core.impl.AttachedDeepaMehtaObject |
equals, getChildTopics, getDatabaseVendorObject, getId, getProperty, getRelatedTopic, getRelatedTopics, getRelatedTopics, getSimpleValue, getTypeUri, getUri, hashCode, hasProperty, setChildTopics, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, toJSON, toString, update, updateChildTopic, updateChildTopics |
Methods inherited from interface de.deepamehta.core.Association |
getPlayer1, getPlayer2, getRole, getRole1, getRole2, getTopic, getTopicByType, isPlayer, loadChildTopics, loadChildTopics, update |
Methods inherited from interface de.deepamehta.core.DeepaMehtaObject |
delete, getAssociation, getAssociations, getChildTopics, getDatabaseVendorObject, getId, getProperty, getRelatedAssociation, getRelatedAssociations, getRelatedTopic, getRelatedTopics, getRelatedTopics, getRelatedTopics, getSimpleValue, getTypeUri, getUri, hasProperty, removeProperty, setChildTopics, setProperty, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, update, updateChildTopic, updateChildTopics |
viewConfig
private AttachedViewConfiguration viewConfig
logger
private Logger logger
AttachedAssociationDefinition
AttachedAssociationDefinition(AssociationDefinitionModel model,
EmbeddedService dms)
getCustomAssocTypeUri
public String getCustomAssocTypeUri()
- Specified by:
getCustomAssocTypeUri
in interface AssociationDefinition
- Returns:
- The custom association type, or
null
if not set.
getInstanceLevelAssocTypeUri
public String getInstanceLevelAssocTypeUri()
- Specified by:
getInstanceLevelAssocTypeUri
in interface AssociationDefinition
- Returns:
- The type to be used to create an association instance based on this association definition.
This is the custom association type if set, otherwise this is
dm4.core.composition
or dm4.core.aggregation
depending on this association definition's type.
Is never null
.
getParentTypeUri
public String getParentTypeUri()
- Specified by:
getParentTypeUri
in interface AssociationDefinition
getChildTypeUri
public String getChildTypeUri()
- Specified by:
getChildTypeUri
in interface AssociationDefinition
getParentCardinalityUri
public String getParentCardinalityUri()
- Specified by:
getParentCardinalityUri
in interface AssociationDefinition
getChildCardinalityUri
public String getChildCardinalityUri()
- Specified by:
getChildCardinalityUri
in interface AssociationDefinition
getViewConfig
public ViewConfiguration getViewConfig()
- Specified by:
getViewConfig
in interface AssociationDefinition
getModel
public AssociationDefinitionModel getModel()
- Specified by:
getModel
in interface Association
- Specified by:
getModel
in interface AssociationDefinition
- Specified by:
getModel
in interface DeepaMehtaObject
- Overrides:
getModel
in class AttachedAssociation
setCustomAssocTypeUri
public void setCustomAssocTypeUri(String customAssocTypeUri)
- Specified by:
setCustomAssocTypeUri
in interface AssociationDefinition
setParentCardinalityUri
public void setParentCardinalityUri(String parentCardinalityUri)
- Specified by:
setParentCardinalityUri
in interface AssociationDefinition
setChildCardinalityUri
public void setChildCardinalityUri(String childCardinalityUri)
- Specified by:
setChildCardinalityUri
in interface AssociationDefinition
update
public void update(AssociationDefinitionModel newModel)
- Specified by:
update
in interface AssociationDefinition
updateAssocTypeUri
private void updateAssocTypeUri(AssociationDefinitionModel newModel)
updateCustomAssocTypeUri
private void updateCustomAssocTypeUri(String newCustomAssocTypeUri)
updateParentCardinality
private void updateParentCardinality(String newParentCardinalityUri)
updateChildCardinality
private void updateChildCardinality(String newChildCardinalityUri)
initViewConfig
private void initViewConfig()
Copyright © 2015. All Rights Reserved.