C# 클래스 TSF.UmlToolingFramework.Wrappers.EA.Model

상속: TSF.UmlToolingFramework.UML.UMLModel
파일 보기 프로젝트 열기: GeertBellekens/Enterprise-Architect-Add-in-Framework 1 사용 예제들

공개 메소드들

메소드 설명
Model ( ) : System
Model ( global eaRepository ) : System
SQLQuery ( string sqlQuery ) : XmlDocument
addTab ( string title, string fullControlName ) : UserControl
addTaggedValueType ( string tagName, string tagDescription, string tagDetail ) : void
addWindow ( string title, string fullControlName ) : UserControl
adviseChange ( TSF.UmlToolingFramework.UML element ) : void
escapeSQLString ( string sqlString ) : string

escapes a literal string so it can be inserted using sql

executeSQL ( string SQLString ) : void
formatXPath ( string xpath ) : string

formats an xpath accordign to the type of database. For Oracle and Firebird it should be ALL CAPS

getAttributeByID ( int attributID ) : Attribute

gets the Attribute with the given ID

getAttributeTagByGUID ( string GUID ) : AttributeTag
getAttributeTagsWithValue ( string value ) : List
getAttributeWrapperByGUID ( string GUID ) : AttributeWrapper

gets the Attribute with the given GUID

getAttributesByQuery ( string SQLQuery ) : List
getCurrentRootPackage ( ) : TSF.UmlToolingFramework.UML.Classes.Kernel.Package
getDiagramByGUID ( string diagramGUID ) : Diagram
getDiagramByID ( int diagramID ) : Diagram
getDiagramsByQuery ( string sqlGetDiagrams ) : List
getElementByGUID ( string GUIDstring ) : TSF.UmlToolingFramework.UML.Classes.Kernel.Element
getElementTagByGUID ( string GUID ) : ElementTag
getElementTagsWithValue ( string value ) : HashSet
getElementWrapperByGUID ( string GUID ) : ElementWrapper

Finds the EA.Element with the given GUID and returns an EAElementwrapper wrapping this element.

getElementWrapperByID ( int id ) : ElementWrapper
getElementWrapperByPackageID ( int packageID ) : ElementWrapper
getElementWrappersByQuery ( string sqlQuery ) : List

returns the elementwrappers that are identified by the Object_ID's returned by the given query

getItemFromFQN ( string FQN ) : TSF.UmlToolingFramework.UML.Extended.UMLItem
getItemFromGUID ( string guidString ) : TSF.UmlToolingFramework.UML.Extended.UMLItem

finds the item with the given guid

getOperationByGUID ( string guid ) : Operation
getOperationByID ( int operationID ) : Operation
getOperationTagByGUID ( string GUID ) : OperationTag
getOperationTagsWithValue ( string value ) : List
getOperationsByQuery ( string SQLQuery ) : List
getParameterByGUID ( string GUID ) : ParameterWrapper

gets the parameter by its GUID. This is a tricky one since EA doesn't provide a getParameterByGUID operation we have to first get the operation, then loop the pamarameters to find the one with the GUID

getParameterTagByGUID ( string GUID ) : ParameterTag
getParameterTagsWithValue ( string value ) : List
getParametersByQuery ( string SQLQuery ) : List
getQuickSearchResults ( string searchText, int maxResults, bool elements, bool operations, bool attributes, bool diagrams ) : List

returns the first [maxresults] items who's name starts with the given searchText

getRelationByGUID ( string relationGUID ) : ConnectorWrapper
getRelationByID ( int relationID ) : ConnectorWrapper
getRelationTagByGUID ( string GUID ) : RelationTag
getRelationTagsWithValue ( string value ) : List
getRelationsByQuery ( string SQLQuery ) : List
getRepositoryType ( ) : RepositoryType

Gets the Repository type for this model

getRoootPackage ( TSF.UmlToolingFramework.UML item ) : RootPackage
getTaggedValuesWithValue ( string value ) : HashSet
getUserSelectedElement ( List allowedTypes ) : TSF.UmlToolingFramework.UML.Classes.Kernel.Element

Lets the user select an element from the model and return that

getUserSelectedPackage ( ) : TSF.UmlToolingFramework.UML.Classes.Kernel.Package

Show a dialog to the user that allows him to select a package from the model

initialize ( global eaRepository ) : void

(re)initialises this model with the given ea repository object

openProperties ( TSF.UmlToolingFramework.UML item ) : void

opens the properties dialog for this item

refreshDiagram ( Diagram diagram ) : void
reloadDiagrams ( ) : void

reload the open diagrams

saveDiagram ( TSF.UmlToolingFramework.UML diagram ) : void
saveElement ( TSF.UmlToolingFramework.UML element ) : void
saveOpenedDiagram ( TSF.UmlToolingFramework.UML diagram ) : void

saves unsaved changes to an opened diagram

selectDiagram ( Diagram diagram ) : void
showTab ( string title ) : void
showWindow ( string title ) : void
taggedValueTypeExists ( string tagName ) : bool

checks if a tagged value type with the given name exists in the current model

toArrayList ( IEnumerable collection ) : ArrayList
toObject ( object someObject ) : Object

비공개 메소드들

메소드 설명
convertFromEANotes ( string EANotes, string newFormat ) : string
convertToEANotes ( string externalNotes, string externalFormat ) : string
formatSQL ( string sqlQuery ) : string

sets the correct wildcards depending on the database type. changes '%' into '*' if on ms access and _ into ? on msAccess

formatSQLFunctions ( string sqlQuery ) : string

Operation to translate SQL functions in there equivalents in different sql syntaxes supported functions: - lcase -> lower in T-SQL (SQLSVR and ASA)

formatSQLTop ( string sqlQuery ) : string

limiting the number of results in an sql query is different on different platforms. "SELECT TOP N" is used on SQLSVR ADOJET ASA OPENEDGE ACCESS2007 "WHERE rowcount <= N" is used on ORACLE "LIMIT N" is used on MYSQL POSTGRES This operation will replace the SELECT TOP N by the appropriate sql syntax depending on the repositorytype

replaceSQLWildCards ( string sqlQuery ) : string

replace the wildcards in the given sql query string to match either MSAccess or ANSI syntax

메소드 상세

Model() 공개 메소드

public Model ( ) : System
리턴 System

Model() 공개 메소드

public Model ( global eaRepository ) : System
eaRepository global
리턴 System

SQLQuery() 공개 메소드

public SQLQuery ( string sqlQuery ) : XmlDocument
sqlQuery string
리턴 System.Xml.XmlDocument

addTab() 공개 메소드

public addTab ( string title, string fullControlName ) : UserControl
title string
fullControlName string
리턴 System.Windows.Forms.UserControl

addTaggedValueType() 공개 메소드

public addTaggedValueType ( string tagName, string tagDescription, string tagDetail ) : void
tagName string
tagDescription string
tagDetail string
리턴 void

addWindow() 공개 메소드

public addWindow ( string title, string fullControlName ) : UserControl
title string
fullControlName string
리턴 System.Windows.Forms.UserControl

adviseChange() 공개 메소드

public adviseChange ( TSF.UmlToolingFramework.UML element ) : void
element TSF.UmlToolingFramework.UML
리턴 void

escapeSQLString() 공개 메소드

escapes a literal string so it can be inserted using sql
public escapeSQLString ( string sqlString ) : string
sqlString string the string to be escaped
리턴 string

executeSQL() 공개 메소드

public executeSQL ( string SQLString ) : void
SQLString string
리턴 void

formatXPath() 공개 메소드

formats an xpath accordign to the type of database. For Oracle and Firebird it should be ALL CAPS
public formatXPath ( string xpath ) : string
xpath string the xpath to format
리턴 string

getAttributeByID() 공개 메소드

gets the Attribute with the given ID
public getAttributeByID ( int attributID ) : Attribute
attributID int the attribute's ID
리턴 Attribute

getAttributeTagByGUID() 공개 메소드

public getAttributeTagByGUID ( string GUID ) : AttributeTag
GUID string
리턴 AttributeTag

getAttributeTagsWithValue() 공개 메소드

public getAttributeTagsWithValue ( string value ) : List
value string
리턴 List

getAttributeWrapperByGUID() 공개 메소드

gets the Attribute with the given GUID
public getAttributeWrapperByGUID ( string GUID ) : AttributeWrapper
GUID string the attribute's GUID
리턴 AttributeWrapper

getAttributesByQuery() 공개 메소드

public getAttributesByQuery ( string SQLQuery ) : List
SQLQuery string
리턴 List

getCurrentRootPackage() 공개 메소드

public getCurrentRootPackage ( ) : TSF.UmlToolingFramework.UML.Classes.Kernel.Package
리턴 TSF.UmlToolingFramework.UML.Classes.Kernel.Package

getDiagramByGUID() 공개 메소드

public getDiagramByGUID ( string diagramGUID ) : Diagram
diagramGUID string
리턴 Diagram

getDiagramByID() 공개 메소드

public getDiagramByID ( int diagramID ) : Diagram
diagramID int
리턴 Diagram

getDiagramsByQuery() 공개 메소드

public getDiagramsByQuery ( string sqlGetDiagrams ) : List
sqlGetDiagrams string
리턴 List

getElementByGUID() 공개 메소드

public getElementByGUID ( string GUIDstring ) : TSF.UmlToolingFramework.UML.Classes.Kernel.Element
GUIDstring string
리턴 TSF.UmlToolingFramework.UML.Classes.Kernel.Element

getElementTagByGUID() 공개 메소드

public getElementTagByGUID ( string GUID ) : ElementTag
GUID string
리턴 ElementTag

getElementTagsWithValue() 공개 메소드

public getElementTagsWithValue ( string value ) : HashSet
value string
리턴 HashSet

getElementWrapperByGUID() 공개 메소드

Finds the EA.Element with the given GUID and returns an EAElementwrapper wrapping this element.
public getElementWrapperByGUID ( string GUID ) : ElementWrapper
GUID string the GUID of the element
리턴 ElementWrapper

getElementWrapperByID() 공개 메소드

public getElementWrapperByID ( int id ) : ElementWrapper
id int
리턴 ElementWrapper

getElementWrapperByPackageID() 공개 메소드

public getElementWrapperByPackageID ( int packageID ) : ElementWrapper
packageID int
리턴 ElementWrapper

getElementWrappersByQuery() 공개 메소드

returns the elementwrappers that are identified by the Object_ID's returned by the given query
public getElementWrappersByQuery ( string sqlQuery ) : List
sqlQuery string query returning the Object_ID's
리턴 List

getItemFromFQN() 공개 메소드

public getItemFromFQN ( string FQN ) : TSF.UmlToolingFramework.UML.Extended.UMLItem
FQN string
리턴 TSF.UmlToolingFramework.UML.Extended.UMLItem

getItemFromGUID() 공개 메소드

finds the item with the given guid
public getItemFromGUID ( string guidString ) : TSF.UmlToolingFramework.UML.Extended.UMLItem
guidString string the string with the guid
리턴 TSF.UmlToolingFramework.UML.Extended.UMLItem

getOperationByGUID() 공개 메소드

public getOperationByGUID ( string guid ) : Operation
guid string
리턴 Operation

getOperationByID() 공개 메소드

public getOperationByID ( int operationID ) : Operation
operationID int
리턴 Operation

getOperationTagByGUID() 공개 메소드

public getOperationTagByGUID ( string GUID ) : OperationTag
GUID string
리턴 OperationTag

getOperationTagsWithValue() 공개 메소드

public getOperationTagsWithValue ( string value ) : List
value string
리턴 List

getOperationsByQuery() 공개 메소드

public getOperationsByQuery ( string SQLQuery ) : List
SQLQuery string
리턴 List

getParameterByGUID() 공개 메소드

gets the parameter by its GUID. This is a tricky one since EA doesn't provide a getParameterByGUID operation we have to first get the operation, then loop the pamarameters to find the one with the GUID
public getParameterByGUID ( string GUID ) : ParameterWrapper
GUID string the parameter's GUID
리턴 ParameterWrapper

getParameterTagByGUID() 공개 메소드

public getParameterTagByGUID ( string GUID ) : ParameterTag
GUID string
리턴 ParameterTag

getParameterTagsWithValue() 공개 메소드

public getParameterTagsWithValue ( string value ) : List
value string
리턴 List

getParametersByQuery() 공개 메소드

public getParametersByQuery ( string SQLQuery ) : List
SQLQuery string
리턴 List

getQuickSearchResults() 공개 메소드

returns the first [maxresults] items who's name starts with the given searchText
public getQuickSearchResults ( string searchText, int maxResults, bool elements, bool operations, bool attributes, bool diagrams ) : List
searchText string the first part of the name to match
maxResults int the number of results required
elements bool indicates whether elements should be selected
operations bool indicates whether operations should be selected
attributes bool indicates whether attributes should be selected
diagrams bool indicates whether diagrams should be selected
리턴 List

getRelationByGUID() 공개 메소드

public getRelationByGUID ( string relationGUID ) : ConnectorWrapper
relationGUID string
리턴 ConnectorWrapper

getRelationByID() 공개 메소드

public getRelationByID ( int relationID ) : ConnectorWrapper
relationID int
리턴 ConnectorWrapper

getRelationTagByGUID() 공개 메소드

public getRelationTagByGUID ( string GUID ) : RelationTag
GUID string
리턴 RelationTag

getRelationTagsWithValue() 공개 메소드

public getRelationTagsWithValue ( string value ) : List
value string
리턴 List

getRelationsByQuery() 공개 메소드

public getRelationsByQuery ( string SQLQuery ) : List
SQLQuery string
리턴 List

getRepositoryType() 공개 메소드

Gets the Repository type for this model
public getRepositoryType ( ) : RepositoryType
리턴 RepositoryType

getRoootPackage() 공개 메소드

public getRoootPackage ( TSF.UmlToolingFramework.UML item ) : RootPackage
item TSF.UmlToolingFramework.UML
리턴 RootPackage

getTaggedValuesWithValue() 공개 메소드

public getTaggedValuesWithValue ( string value ) : HashSet
value string
리턴 HashSet

getUserSelectedElement() 공개 메소드

Lets the user select an element from the model and return that
public getUserSelectedElement ( List allowedTypes ) : TSF.UmlToolingFramework.UML.Classes.Kernel.Element
allowedTypes List the subtypes of UML.Classes.Kernel.Element that should be used as a filter
리턴 TSF.UmlToolingFramework.UML.Classes.Kernel.Element

getUserSelectedPackage() 공개 메소드

Show a dialog to the user that allows him to select a package from the model
public getUserSelectedPackage ( ) : TSF.UmlToolingFramework.UML.Classes.Kernel.Package
리턴 TSF.UmlToolingFramework.UML.Classes.Kernel.Package

initialize() 공개 메소드

(re)initialises this model with the given ea repository object
public initialize ( global eaRepository ) : void
eaRepository global the ea repository object
리턴 void

openProperties() 공개 메소드

opens the properties dialog for this item
public openProperties ( TSF.UmlToolingFramework.UML item ) : void
item TSF.UmlToolingFramework.UML the item to open the properties dialog for
리턴 void

refreshDiagram() 공개 메소드

public refreshDiagram ( Diagram diagram ) : void
diagram Diagram
리턴 void

reloadDiagrams() 공개 메소드

reload the open diagrams
public reloadDiagrams ( ) : void
리턴 void

saveDiagram() 공개 메소드

public saveDiagram ( TSF.UmlToolingFramework.UML diagram ) : void
diagram TSF.UmlToolingFramework.UML
리턴 void

saveElement() 공개 메소드

public saveElement ( TSF.UmlToolingFramework.UML element ) : void
element TSF.UmlToolingFramework.UML
리턴 void

saveOpenedDiagram() 공개 메소드

saves unsaved changes to an opened diagram
public saveOpenedDiagram ( TSF.UmlToolingFramework.UML diagram ) : void
diagram TSF.UmlToolingFramework.UML the diagram that is currently opened
리턴 void

selectDiagram() 공개 메소드

public selectDiagram ( Diagram diagram ) : void
diagram Diagram
리턴 void

showTab() 공개 메소드

public showTab ( string title ) : void
title string
리턴 void

showWindow() 공개 메소드

public showWindow ( string title ) : void
title string
리턴 void

taggedValueTypeExists() 공개 메소드

checks if a tagged value type with the given name exists in the current model
public taggedValueTypeExists ( string tagName ) : bool
tagName string the name of the tagged value type
리턴 bool

toArrayList() 공개 메소드

public toArrayList ( IEnumerable collection ) : ArrayList
collection IEnumerable
리턴 ArrayList

toObject() 공개 메소드

public toObject ( object someObject ) : Object
someObject object
리턴 Object