C# Class EAAddinFramework.SchemaBuilder.EASchema

The EA Specific implementation of the Schema, wrapping the EA.SchemaComposer object
Inheritance: SchemaBuilderFramework.Schema
Exibir arquivo Open project: GeertBellekens/Enterprise-Architect-Add-in-Framework Class Usage Examples

Public Methods

Method Description
copyTaggedValues ( TSF.UmlToolingFramework.Wrappers.EA source, TSF.UmlToolingFramework.Wrappers.EA target ) : void

copies only the tagged values necesarry

createSubsetModel ( TSF.UmlToolingFramework.UML destinationPackage ) : void

creates a subset of the source model with only the properties and associations used in this schema

updateSubsetModel ( Classifier messageElement ) : void

updates the subset model linked to given messageElement

Private Methods

Method Description
EASchema ( TSF.UmlToolingFramework.Wrappers.EA model, EA composer, SchemaBuilderFramework settings ) : System

Constructor of the EASchema. Only to be used by the EASchemaBuilderFactory

addRelatedSubsetElements ( TSF.UmlToolingFramework.UML element, HashSet subsetElements ) : void

adds all the related subset elements to the list recursively

addToSubsetElements ( TSF.UmlToolingFramework.UML element, HashSet subsetElements ) : void

adds the given class to the list of subset elements and then adds all related

getSchemaElementForSubsetElement ( TSF.UmlToolingFramework.UML subsetElement ) : EASchemaElement

finds the Schema Element for which the given element could be the subset element

getSchemaElementForUMLElement ( TSF.UmlToolingFramework.UML umlElement ) : EASchemaElement

returns the SchemaElement that corresponds with the given UML element

getSchemaTypes ( ) : HashSet

gets the EA.SchemaTypes from the enumerator

getSubsetElementsfromMessage ( TSF.UmlToolingFramework.UML messageElement ) : HashSet

gets all the subset elements for a given message element

matchSubsetElements ( TSF.UmlToolingFramework.UML messageElement ) : void

Finds all subset elements linked to the given message element and links those to the schema elements. If a subset element could not be matched, and it is in the same package as the given messageElement, then it is deleted

shouldElementExistAsDatatype ( Classifier subsetElement ) : bool

Method Details

copyTaggedValues() public method

copies only the tagged values necesarry
public copyTaggedValues ( TSF.UmlToolingFramework.Wrappers.EA source, TSF.UmlToolingFramework.Wrappers.EA target ) : void
source TSF.UmlToolingFramework.Wrappers.EA the source element
target TSF.UmlToolingFramework.Wrappers.EA the target element
return void

createSubsetModel() public method

creates a subset of the source model with only the properties and associations used in this schema
public createSubsetModel ( TSF.UmlToolingFramework.UML destinationPackage ) : void
destinationPackage TSF.UmlToolingFramework.UML the package to create the subset in
return void

updateSubsetModel() public method

updates the subset model linked to given messageElement
public updateSubsetModel ( Classifier messageElement ) : void
messageElement Classifier The message element that is the root for the message subset model
return void