C# Class EAAddinFramework.SchemaBuilder.EASchemaElement

Description of EASchemaElement.
Inheritance: SchemaBuilderFramework.SchemaElement
Exibir arquivo Open project: GeertBellekens/Enterprise-Architect-Add-in-Framework Class Usage Examples

Private Properties

Property Type Description
copyGeneralizations void
getMatchingSchemaLiteral EASchemaLiteral
getSchemaProperties List
setAssociationClassProperties void

Public Methods

Method Description
EASchemaElement ( TSF.UmlToolingFramework.Wrappers.EA model, EASchema owner, EA objectToWrap ) : System
addAttributeTypeDependencies ( ) : void

adds a dependency from the attributes owner to the type of the attributes

addGeneralizations ( ) : void

Adds generalizations if the parent of the generalization is in the subset elements as well

createSubsetAssociations ( ) : void

duplicates the asociations in the schema to associations between schema elements

createSubsetAttributes ( ) : void

duplicates the attributes in the schema as attributes in the subset element

createSubsetElement ( TSF.UmlToolingFramework.UML destinationPackage ) : TSF.UmlToolingFramework.UML.Classes.Kernel.Classifier
createSubsetLiterals ( ) : void

getMatchingSchemaAssociation ( TSF.UmlToolingFramework.Wrappers.EA association ) : EASchemaAssociation

returns the matching SchemaAssociation for the given Association. the match is made based on the tagged value sourceAssociation on the subset assocation, which references the source association fo the SchemaAssociation

getMatchingSchemaProperty ( TSF.UmlToolingFramework.Wrappers.EA attribute ) : EASchemaProperty

finds the corresponding Schema property for the given attribut

matchSubsetAssociations ( ) : void

matches the association of the subset element with the schema associations. If an association cannot be matched, it is deleted.

matchSubsetAttributes ( ) : void

checks all attributes of the subset element and tries to match it with a SchemaProperty. It it can't be matches te subset attribute is deleted.

matchSubsetElement ( TSF.UmlToolingFramework.UML subsetElement ) : void

matches the given subset element with the schema element, matching attributes and association all attributes or associations that do not exist in the schema are deleted

matchSubsetLiterals ( ) : void

Private Methods

Method Description
copyGeneralizations ( ) : void

copy the generalizations from the source elemnt to the subset element, removing the generalizations that are not present in the source element

getMatchingSchemaLiteral ( TSF.UmlToolingFramework.Wrappers.EA literal ) : EASchemaLiteral

gets the SchemaLiteral that corresponds with the given literal value

getSchemaProperties ( ) : List
setAssociationClassProperties ( ) : void

Method Details

EASchemaElement() public method

public EASchemaElement ( TSF.UmlToolingFramework.Wrappers.EA model, EASchema owner, EA objectToWrap ) : System
model TSF.UmlToolingFramework.Wrappers.EA
owner EASchema
objectToWrap EA
return System

addAttributeTypeDependencies() public method

adds a dependency from the attributes owner to the type of the attributes
public addAttributeTypeDependencies ( ) : void
return void

addGeneralizations() public method

Adds generalizations if the parent of the generalization is in the subset elements as well
public addGeneralizations ( ) : void
return void

createSubsetAssociations() public method

duplicates the asociations in the schema to associations between schema elements
public createSubsetAssociations ( ) : void
return void

createSubsetAttributes() public method

duplicates the attributes in the schema as attributes in the subset element
public createSubsetAttributes ( ) : void
return void

createSubsetElement() public method

public createSubsetElement ( TSF.UmlToolingFramework.UML destinationPackage ) : TSF.UmlToolingFramework.UML.Classes.Kernel.Classifier
destinationPackage TSF.UmlToolingFramework.UML
return TSF.UmlToolingFramework.UML.Classes.Kernel.Classifier

createSubsetLiterals() public method

public createSubsetLiterals ( ) : void
return void

getMatchingSchemaAssociation() public method

returns the matching SchemaAssociation for the given Association. the match is made based on the tagged value sourceAssociation on the subset assocation, which references the source association fo the SchemaAssociation
public getMatchingSchemaAssociation ( TSF.UmlToolingFramework.Wrappers.EA association ) : EASchemaAssociation
association TSF.UmlToolingFramework.Wrappers.EA the association to match
return EASchemaAssociation

getMatchingSchemaProperty() public method

finds the corresponding Schema property for the given attribut
public getMatchingSchemaProperty ( TSF.UmlToolingFramework.Wrappers.EA attribute ) : EASchemaProperty
attribute TSF.UmlToolingFramework.Wrappers.EA attribute
return EASchemaProperty

matchSubsetAssociations() public method

matches the association of the subset element with the schema associations. If an association cannot be matched, it is deleted.
public matchSubsetAssociations ( ) : void
return void

matchSubsetAttributes() public method

checks all attributes of the subset element and tries to match it with a SchemaProperty. It it can't be matches te subset attribute is deleted.
public matchSubsetAttributes ( ) : void
return void

matchSubsetElement() public method

matches the given subset element with the schema element, matching attributes and association all attributes or associations that do not exist in the schema are deleted
public matchSubsetElement ( TSF.UmlToolingFramework.UML subsetElement ) : void
subsetElement TSF.UmlToolingFramework.UML the subset element to match
return void

matchSubsetLiterals() public method

public matchSubsetLiterals ( ) : void
return void