C# Class TSF.UmlToolingFramework.Wrappers.EA.ConnectorWrapper

Inheritance: Element, TSF.UmlToolingFramework.UML.Classes.Kernel.Relationship
Mostrar archivo Open project: GeertBellekens/Enterprise-Architect-Add-in-Framework Class Usage Examples

Private Properties

Property Type Description
getLinkedFeature TSF.UmlToolingFramework.UML.Extended.UMLItem
saveElement void

Public Methods

Method Description
ConnectorWrapper ( Model model, global connector ) : System
Equals ( object obj ) : bool
GetHashCode ( ) : int
addRelatedElement ( TSF.UmlToolingFramework.UML relatedElement ) : void

adds a related element to this connector. This operation checks if the source or target is empty and then adds the related element to the empty spot. If none of the two are empty then the target is being replaced

addToCurrentDiagram ( ) : void

adding both the start and the end element to the diagram will automatically add the connector to the diagram

deleteOwnedElement ( Element ownedElement ) : void
getDependentDiagrams ( ) : List

getInformationFlows ( ) : HashSet

convenience method to return the information flows that realize this Relationship

getItemFromRelativePath ( List relativePath ) : TSF.UmlToolingFramework.TSF.UmlToolingFramework.UML.Extended.UMLItem
getLockedUser ( ) : string
getLockedUserID ( ) : string
getReferencingTaggedValues ( ) : HashSet
makeWritable ( bool overrideLocks ) : bool
open ( ) : void
save ( ) : void

Due to a bug in EA we first need to save the end with aggregation kind none, and then the other end. If not then the aggregationkind of the other set is reset to none.

Private Methods

Method Description
getLinkedFeature ( bool start ) : TSF.UmlToolingFramework.UML.Extended.UMLItem
saveElement ( ) : void

Method Details

ConnectorWrapper() public method

public ConnectorWrapper ( Model model, global connector ) : System
model Model
connector global
return System

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

addRelatedElement() public method

adds a related element to this connector. This operation checks if the source or target is empty and then adds the related element to the empty spot. If none of the two are empty then the target is being replaced
public addRelatedElement ( TSF.UmlToolingFramework.UML relatedElement ) : void
relatedElement TSF.UmlToolingFramework.UML
return void

addToCurrentDiagram() public method

adding both the start and the end element to the diagram will automatically add the connector to the diagram
public addToCurrentDiagram ( ) : void
return void

deleteOwnedElement() public method

public deleteOwnedElement ( Element ownedElement ) : void
ownedElement Element
return void

getDependentDiagrams() public method

public getDependentDiagrams ( ) : List
return List

getInformationFlows() public method

convenience method to return the information flows that realize this Relationship
public getInformationFlows ( ) : HashSet
return HashSet

getItemFromRelativePath() public method

public getItemFromRelativePath ( List relativePath ) : TSF.UmlToolingFramework.TSF.UmlToolingFramework.UML.Extended.UMLItem
relativePath List
return TSF.UmlToolingFramework.TSF.UmlToolingFramework.UML.Extended.UMLItem

getLockedUser() public method

public getLockedUser ( ) : string
return string

getLockedUserID() public method

public getLockedUserID ( ) : string
return string

getReferencingTaggedValues() public method

public getReferencingTaggedValues ( ) : HashSet
return HashSet

makeWritable() public method

public makeWritable ( bool overrideLocks ) : bool
overrideLocks bool
return bool

open() public method

public open ( ) : void
return void

save() public method

Due to a bug in EA we first need to save the end with aggregation kind none, and then the other end. If not then the aggregationkind of the other set is reset to none.
public save ( ) : void
return void