C# Class EAAddinFramework.SchemaBuilder.EASchemaElement

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

Private Properties

Свойство Type Description
copyGeneralizations void
getMatchingSchemaLiteral EASchemaLiteral
getSchemaProperties List
setAssociationClassProperties void

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

addAttributeTypeDependencies() public méthode

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

addGeneralizations() public méthode

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

createSubsetAssociations() public méthode

duplicates the asociations in the schema to associations between schema elements
public createSubsetAssociations ( ) : void
Résultat void

createSubsetAttributes() public méthode

duplicates the attributes in the schema as attributes in the subset element
public createSubsetAttributes ( ) : void
Résultat void

createSubsetElement() public méthode

public createSubsetElement ( TSF.UmlToolingFramework.UML destinationPackage ) : TSF.UmlToolingFramework.UML.Classes.Kernel.Classifier
destinationPackage TSF.UmlToolingFramework.UML
Résultat TSF.UmlToolingFramework.UML.Classes.Kernel.Classifier

createSubsetLiterals() public méthode

public createSubsetLiterals ( ) : void
Résultat void

getMatchingSchemaAssociation() public méthode

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
Résultat EASchemaAssociation

getMatchingSchemaProperty() public méthode

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

matchSubsetAssociations() public méthode

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

matchSubsetAttributes() public méthode

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
Résultat void

matchSubsetElement() public méthode

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
Résultat void

matchSubsetLiterals() public méthode

public matchSubsetLiterals ( ) : void
Résultat void