de.deepamehta.core
Interface AssociationDefinition

Show UML class diagram
All Superinterfaces:
Association, DeepaMehtaObject, Identifiable, JSONEnabled
All Known Implementing Classes:
AttachedAssociationDefinition

public interface AssociationDefinition
extends Association

Definition of an association between 2 topic types -- part of DeepaMehta's type system, like an association in a class diagram. Used to represent both, aggregations and compositions.

Author:
Jörg Richter

Method Summary
 String getChildCardinalityUri()
           
 String getChildTypeUri()
           
 String getCustomAssocTypeUri()
           
 String getInstanceLevelAssocTypeUri()
           
 AssociationDefinitionModel getModel()
           
 String getParentCardinalityUri()
           
 String getParentTypeUri()
           
 ViewConfiguration getViewConfig()
           
 void setChildCardinalityUri(String childCardinalityUri)
           
 void setCustomAssocTypeUri(String customAssocTypeUri)
           
 void setParentCardinalityUri(String parentCardinalityUri)
           
 void update(AssociationDefinitionModel model)
           
 
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
 
Methods inherited from interface de.deepamehta.core.JSONEnabled
toJSON
 

Method Detail

getCustomAssocTypeUri

String getCustomAssocTypeUri()
Returns:
The custom association type, or null if not set.

getInstanceLevelAssocTypeUri

String getInstanceLevelAssocTypeUri()
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

String getParentTypeUri()

getChildTypeUri

String getChildTypeUri()

getParentCardinalityUri

String getParentCardinalityUri()

getChildCardinalityUri

String getChildCardinalityUri()

getViewConfig

ViewConfiguration getViewConfig()

getModel

AssociationDefinitionModel getModel()
Specified by:
getModel in interface Association
Specified by:
getModel in interface DeepaMehtaObject

setCustomAssocTypeUri

void setCustomAssocTypeUri(String customAssocTypeUri)

setParentCardinalityUri

void setParentCardinalityUri(String parentCardinalityUri)

setChildCardinalityUri

void setChildCardinalityUri(String childCardinalityUri)

update

void update(AssociationDefinitionModel model)


Copyright © 2015. All Rights Reserved.