C# Class hoTools.Utils.Util

Afficher le fichier Open project: Helmut-Ortmann/EnterpriseArchitect_hoTools

Méthodes publiques

Méthode Description
AddSequenceNumber ( EA rep, EA dia ) : void
ChangeClassNameToSynonyms ( EA rep, EA el ) : void
ChangePackageClassNameToSynonyms ( EA rep, EA pkg ) : void
GetClassifierGuid ( EA rep, string guid ) : string
GetConnectionString ( EA rep ) : string
GetDiagramLinkFromConnector ( EA dia, int connectorId ) : EA.DiagramLink
GetDiagramObjectById ( EA rep, EA dia, int elementId ) : EA.DiagramObject
GetDiagramObjectLabel ( EA rep, int objectId, int diagramId, int instanceId ) : string
GetElementFromCompositeDiagram ( EA rep, string diagramGuid ) : string
GetElementFromContextObject ( EA rep ) : EA.Element

Get element from Context element. Possible inputs are: Attribute, Operation, Element, Package

GetFirstControlledPackage ( EA rep, EA pkg ) : EA.Package
GetGenFilePath ( EA rep, EA el ) : string

Get file path for an implementation file which uses code generation. It transforms the path into the local path. Note: A file might have one or no implementation language.

GetHighestSequenceNoFromDiagram ( EA rep, EA dia ) : int
GetLatest ( EA rep, EA pkg, bool recursive, int &count, int level, int &errorCount ) : bool
GetModelDocumentFromPackage ( EA rep, EA pkg ) : EA.Package
GetOperationFromAction ( EA rep, EA action ) : Method
GetOperationFromBrehavior ( EA rep, EA el ) : Method
GetOperationFromCallAction ( EA rep, EA obj ) : Method
GetOperationFromConnector ( EA rep, EA con ) : Method
GetParameterFromActivity ( EA rep, EA par, EA act, bool isReturn = false ) : EA.Element
GetParameterType ( EA rep, string actionPinGuid ) : string
GetSignal ( EA rep, string guid ) : string
GetTrigger ( EA rep, string guid ) : string
GetTypeFromName ( EA rep, string &name, string &type ) : int
GetTypeId ( EA rep, string name ) : int
GetVCstate ( EA rep, EA pkg, bool isLong ) : string
GetVccFilePath ( EA rep, EA pkg ) : string
GetVccRootPath ( EA rep, EA pkg ) : string
GetWildCard ( Repository rep ) : string
ObjectTypeToString ( EA objectType ) : string
OpenBehaviorForElement ( EA repository, EA el ) : void
ResetVc ( EA rep, EA pkg ) : void
ResetVcRecursive ( EA rep, EA pkg ) : void
SetActivityCompositeDiagram ( EA rep, EA el, string s ) : bool
SetBehaviorForOperation ( EA rep, Method op, EA act ) : bool
SetConnectorGuard ( EA rep, int connectorId, string connectorGuard ) : bool
SetDiagramHasAttchaedLink ( EA rep, EA el ) : bool
SetDiagramObjectLabel ( EA rep, int objectId, int diagramId, int instanceId, string s ) : bool
SetElementHasAttchaedLink ( EA rep, EA el, EA elNote ) : bool
SetElementPdata1 ( EA rep, EA el, string s ) : bool
SetFrameLinksToDiagram ( EA rep, EA frm, EA dia ) : bool
SetLineStyleDiagram ( EA rep, EA d, string lineStyle ) : void
SetLineStyleDiagramObjectsAndConnectors ( EA rep, EA d, string lineStyle ) : void
SetLineStyleForDiagramLink ( string lineStyle, EA link ) : void
SetReadOnlyAttribute ( string fullName, bool readOnly ) : void
SetSequenceNumber ( EA rep, EA dia, EA obj, string sequence ) : void
SetShowBehaviorInDiagram ( EA rep, Method m ) : bool
SetVcFlags ( EA rep, EA pkg, string flags ) : bool
SetXmlPath ( EA rep, string guid, string path ) : bool
StartApp ( string app, string par ) : void
StartFile ( string filePath ) : void

Start file

UpdateAttribute ( EA rep, EA a ) : bool
UpdateClass ( EA rep, EA el ) : bool
UpdateMethod ( EA rep, Method m ) : bool
UpdatePackage ( EA rep, EA pkg ) : bool
UpdateVc ( EA rep, EA pkg ) : string

Update VC (Version Control state of a controlled package: - Returns user name of user who have checked out the package - Updates the package flags

VisualizePortForDiagramobject ( int pos, EA dia, EA diaObjSource, EA port, EA interf, string portBoundTo = "right" ) : void

Private Methods

Méthode Description
GetSingleSqlValue ( EA rep, string query, string attributeName ) : string

Method Details

AddSequenceNumber() public static méthode

public static AddSequenceNumber ( EA rep, EA dia ) : void
rep EA
dia EA
Résultat void

ChangeClassNameToSynonyms() public static méthode

public static ChangeClassNameToSynonyms ( EA rep, EA el ) : void
rep EA
el EA
Résultat void

ChangePackageClassNameToSynonyms() public static méthode

public static ChangePackageClassNameToSynonyms ( EA rep, EA pkg ) : void
rep EA
pkg EA
Résultat void

GetClassifierGuid() public static méthode

public static GetClassifierGuid ( EA rep, string guid ) : string
rep EA
guid string
Résultat string

GetConnectionString() public static méthode

public static GetConnectionString ( EA rep ) : string
rep EA
Résultat string

GetDiagramLinkFromConnector() public static méthode

public static GetDiagramLinkFromConnector ( EA dia, int connectorId ) : EA.DiagramLink
dia EA
connectorId int
Résultat EA.DiagramLink

GetDiagramObjectById() public static méthode

public static GetDiagramObjectById ( EA rep, EA dia, int elementId ) : EA.DiagramObject
rep EA
dia EA
elementId int
Résultat EA.DiagramObject

GetDiagramObjectLabel() public static méthode

public static GetDiagramObjectLabel ( EA rep, int objectId, int diagramId, int instanceId ) : string
rep EA
objectId int
diagramId int
instanceId int
Résultat string

GetElementFromCompositeDiagram() public static méthode

public static GetElementFromCompositeDiagram ( EA rep, string diagramGuid ) : string
rep EA
diagramGuid string
Résultat string

GetElementFromContextObject() public static méthode

Get element from Context element. Possible inputs are: Attribute, Operation, Element, Package
public static GetElementFromContextObject ( EA rep ) : EA.Element
rep EA
Résultat EA.Element

GetFirstControlledPackage() public static méthode

public static GetFirstControlledPackage ( EA rep, EA pkg ) : EA.Package
rep EA
pkg EA
Résultat EA.Package

GetGenFilePath() public static méthode

Get file path for an implementation file which uses code generation. It transforms the path into the local path. Note: A file might have one or no implementation language.
public static GetGenFilePath ( EA rep, EA el ) : string
rep EA
el EA
Résultat string

GetHighestSequenceNoFromDiagram() public static méthode

public static GetHighestSequenceNoFromDiagram ( EA rep, EA dia ) : int
rep EA
dia EA
Résultat int

GetLatest() public static méthode

public static GetLatest ( EA rep, EA pkg, bool recursive, int &count, int level, int &errorCount ) : bool
rep EA
pkg EA
recursive bool
count int
level int
errorCount int
Résultat bool

GetModelDocumentFromPackage() public static méthode

public static GetModelDocumentFromPackage ( EA rep, EA pkg ) : EA.Package
rep EA
pkg EA
Résultat EA.Package

GetOperationFromAction() public static méthode

public static GetOperationFromAction ( EA rep, EA action ) : Method
rep EA
action EA
Résultat Method

GetOperationFromBrehavior() public static méthode

public static GetOperationFromBrehavior ( EA rep, EA el ) : Method
rep EA
el EA
Résultat Method

GetOperationFromCallAction() public static méthode

public static GetOperationFromCallAction ( EA rep, EA obj ) : Method
rep EA
obj EA
Résultat Method

GetOperationFromConnector() public static méthode

public static GetOperationFromConnector ( EA rep, EA con ) : Method
rep EA
con EA
Résultat Method

GetParameterFromActivity() public static méthode

public static GetParameterFromActivity ( EA rep, EA par, EA act, bool isReturn = false ) : EA.Element
rep EA
par EA
act EA
isReturn bool
Résultat EA.Element

GetParameterType() public static méthode

public static GetParameterType ( EA rep, string actionPinGuid ) : string
rep EA
actionPinGuid string
Résultat string

GetSignal() public static méthode

public static GetSignal ( EA rep, string guid ) : string
rep EA
guid string
Résultat string

GetTrigger() public static méthode

public static GetTrigger ( EA rep, string guid ) : string
rep EA
guid string
Résultat string

GetTypeFromName() public static méthode

public static GetTypeFromName ( EA rep, string &name, string &type ) : int
rep EA
name string
type string
Résultat int

GetTypeId() public static méthode

public static GetTypeId ( EA rep, string name ) : int
rep EA
name string
Résultat int

GetVCstate() public static méthode

public static GetVCstate ( EA rep, EA pkg, bool isLong ) : string
rep EA
pkg EA
isLong bool
Résultat string

GetVccFilePath() public static méthode

public static GetVccFilePath ( EA rep, EA pkg ) : string
rep EA
pkg EA
Résultat string

GetVccRootPath() public static méthode

public static GetVccRootPath ( EA rep, EA pkg ) : string
rep EA
pkg EA
Résultat string

GetWildCard() public static méthode

public static GetWildCard ( Repository rep ) : string
rep Repository
Résultat string

ObjectTypeToString() public static méthode

public static ObjectTypeToString ( EA objectType ) : string
objectType EA
Résultat string

OpenBehaviorForElement() public static méthode

public static OpenBehaviorForElement ( EA repository, EA el ) : void
repository EA
el EA
Résultat void

ResetVc() public static méthode

public static ResetVc ( EA rep, EA pkg ) : void
rep EA
pkg EA
Résultat void

ResetVcRecursive() public static méthode

public static ResetVcRecursive ( EA rep, EA pkg ) : void
rep EA
pkg EA
Résultat void

SetActivityCompositeDiagram() public static méthode

public static SetActivityCompositeDiagram ( EA rep, EA el, string s ) : bool
rep EA
el EA
s string
Résultat bool

SetBehaviorForOperation() public static méthode

public static SetBehaviorForOperation ( EA rep, Method op, EA act ) : bool
rep EA
op Method
act EA
Résultat bool

SetConnectorGuard() public static méthode

public static SetConnectorGuard ( EA rep, int connectorId, string connectorGuard ) : bool
rep EA
connectorId int
connectorGuard string
Résultat bool

SetDiagramHasAttchaedLink() public static méthode

public static SetDiagramHasAttchaedLink ( EA rep, EA el ) : bool
rep EA
el EA
Résultat bool

SetDiagramObjectLabel() public static méthode

public static SetDiagramObjectLabel ( EA rep, int objectId, int diagramId, int instanceId, string s ) : bool
rep EA
objectId int
diagramId int
instanceId int
s string
Résultat bool

SetElementHasAttchaedLink() public static méthode

public static SetElementHasAttchaedLink ( EA rep, EA el, EA elNote ) : bool
rep EA
el EA
elNote EA
Résultat bool

SetElementPdata1() public static méthode

public static SetElementPdata1 ( EA rep, EA el, string s ) : bool
rep EA
el EA
s string
Résultat bool

SetFrameLinksToDiagram() public static méthode

public static SetFrameLinksToDiagram ( EA rep, EA frm, EA dia ) : bool
rep EA
frm EA
dia EA
Résultat bool

SetLineStyleDiagram() public static méthode

public static SetLineStyleDiagram ( EA rep, EA d, string lineStyle ) : void
rep EA
d EA
lineStyle string
Résultat void

SetLineStyleDiagramObjectsAndConnectors() public static méthode

public static SetLineStyleDiagramObjectsAndConnectors ( EA rep, EA d, string lineStyle ) : void
rep EA
d EA
lineStyle string
Résultat void

SetLineStyleForDiagramLink() public static méthode

public static SetLineStyleForDiagramLink ( string lineStyle, EA link ) : void
lineStyle string
link EA
Résultat void

SetReadOnlyAttribute() public static méthode

public static SetReadOnlyAttribute ( string fullName, bool readOnly ) : void
fullName string
readOnly bool
Résultat void

SetSequenceNumber() public static méthode

public static SetSequenceNumber ( EA rep, EA dia, EA obj, string sequence ) : void
rep EA
dia EA
obj EA
sequence string
Résultat void

SetShowBehaviorInDiagram() public static méthode

public static SetShowBehaviorInDiagram ( EA rep, Method m ) : bool
rep EA
m Method
Résultat bool

SetVcFlags() public static méthode

public static SetVcFlags ( EA rep, EA pkg, string flags ) : bool
rep EA
pkg EA
flags string
Résultat bool

SetXmlPath() public static méthode

public static SetXmlPath ( EA rep, string guid, string path ) : bool
rep EA
guid string
path string
Résultat bool

StartApp() public static méthode

public static StartApp ( string app, string par ) : void
app string
par string
Résultat void

StartFile() public static méthode

Start file
public static StartFile ( string filePath ) : void
filePath string
Résultat void

UpdateAttribute() public static méthode

public static UpdateAttribute ( EA rep, EA a ) : bool
rep EA
a EA
Résultat bool

UpdateClass() public static méthode

public static UpdateClass ( EA rep, EA el ) : bool
rep EA
el EA
Résultat bool

UpdateMethod() public static méthode

public static UpdateMethod ( EA rep, Method m ) : bool
rep EA
m Method
Résultat bool

UpdatePackage() public static méthode

public static UpdatePackage ( EA rep, EA pkg ) : bool
rep EA
pkg EA
Résultat bool

UpdateVc() public static méthode

Update VC (Version Control state of a controlled package: - Returns user name of user who have checked out the package - Updates the package flags
public static UpdateVc ( EA rep, EA pkg ) : string
rep EA Repository
pkg EA Package to check
Résultat string

VisualizePortForDiagramobject() public static méthode

public static VisualizePortForDiagramobject ( int pos, EA dia, EA diaObjSource, EA port, EA interf, string portBoundTo = "right" ) : void
pos int
dia EA
diaObjSource EA
port EA
interf EA
portBoundTo string
Résultat void