C# Class hoTools.Utils.Util

Mostra file Open project: Helmut-Ortmann/EnterpriseArchitect_hoTools

Public Methods

Method 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

Method Description
GetSingleSqlValue ( EA rep, string query, string attributeName ) : string

Method Details

AddSequenceNumber() public static method

public static AddSequenceNumber ( EA rep, EA dia ) : void
rep EA
dia EA
return void

ChangeClassNameToSynonyms() public static method

public static ChangeClassNameToSynonyms ( EA rep, EA el ) : void
rep EA
el EA
return void

ChangePackageClassNameToSynonyms() public static method

public static ChangePackageClassNameToSynonyms ( EA rep, EA pkg ) : void
rep EA
pkg EA
return void

GetClassifierGuid() public static method

public static GetClassifierGuid ( EA rep, string guid ) : string
rep EA
guid string
return string

GetConnectionString() public static method

public static GetConnectionString ( EA rep ) : string
rep EA
return string

GetDiagramLinkFromConnector() public static method

public static GetDiagramLinkFromConnector ( EA dia, int connectorId ) : EA.DiagramLink
dia EA
connectorId int
return EA.DiagramLink

GetDiagramObjectById() public static method

public static GetDiagramObjectById ( EA rep, EA dia, int elementId ) : EA.DiagramObject
rep EA
dia EA
elementId int
return EA.DiagramObject

GetDiagramObjectLabel() public static method

public static GetDiagramObjectLabel ( EA rep, int objectId, int diagramId, int instanceId ) : string
rep EA
objectId int
diagramId int
instanceId int
return string

GetElementFromCompositeDiagram() public static method

public static GetElementFromCompositeDiagram ( EA rep, string diagramGuid ) : string
rep EA
diagramGuid string
return string

GetElementFromContextObject() public static method

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

GetFirstControlledPackage() public static method

public static GetFirstControlledPackage ( EA rep, EA pkg ) : EA.Package
rep EA
pkg EA
return EA.Package

GetGenFilePath() public static method

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
return string

GetHighestSequenceNoFromDiagram() public static method

public static GetHighestSequenceNoFromDiagram ( EA rep, EA dia ) : int
rep EA
dia EA
return int

GetLatest() public static method

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
return bool

GetModelDocumentFromPackage() public static method

public static GetModelDocumentFromPackage ( EA rep, EA pkg ) : EA.Package
rep EA
pkg EA
return EA.Package

GetOperationFromAction() public static method

public static GetOperationFromAction ( EA rep, EA action ) : Method
rep EA
action EA
return Method

GetOperationFromBrehavior() public static method

public static GetOperationFromBrehavior ( EA rep, EA el ) : Method
rep EA
el EA
return Method

GetOperationFromCallAction() public static method

public static GetOperationFromCallAction ( EA rep, EA obj ) : Method
rep EA
obj EA
return Method

GetOperationFromConnector() public static method

public static GetOperationFromConnector ( EA rep, EA con ) : Method
rep EA
con EA
return Method

GetParameterFromActivity() public static method

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

GetParameterType() public static method

public static GetParameterType ( EA rep, string actionPinGuid ) : string
rep EA
actionPinGuid string
return string

GetSignal() public static method

public static GetSignal ( EA rep, string guid ) : string
rep EA
guid string
return string

GetTrigger() public static method

public static GetTrigger ( EA rep, string guid ) : string
rep EA
guid string
return string

GetTypeFromName() public static method

public static GetTypeFromName ( EA rep, string &name, string &type ) : int
rep EA
name string
type string
return int

GetTypeId() public static method

public static GetTypeId ( EA rep, string name ) : int
rep EA
name string
return int

GetVCstate() public static method

public static GetVCstate ( EA rep, EA pkg, bool isLong ) : string
rep EA
pkg EA
isLong bool
return string

GetVccFilePath() public static method

public static GetVccFilePath ( EA rep, EA pkg ) : string
rep EA
pkg EA
return string

GetVccRootPath() public static method

public static GetVccRootPath ( EA rep, EA pkg ) : string
rep EA
pkg EA
return string

GetWildCard() public static method

public static GetWildCard ( Repository rep ) : string
rep Repository
return string

ObjectTypeToString() public static method

public static ObjectTypeToString ( EA objectType ) : string
objectType EA
return string

OpenBehaviorForElement() public static method

public static OpenBehaviorForElement ( EA repository, EA el ) : void
repository EA
el EA
return void

ResetVc() public static method

public static ResetVc ( EA rep, EA pkg ) : void
rep EA
pkg EA
return void

ResetVcRecursive() public static method

public static ResetVcRecursive ( EA rep, EA pkg ) : void
rep EA
pkg EA
return void

SetActivityCompositeDiagram() public static method

public static SetActivityCompositeDiagram ( EA rep, EA el, string s ) : bool
rep EA
el EA
s string
return bool

SetBehaviorForOperation() public static method

public static SetBehaviorForOperation ( EA rep, Method op, EA act ) : bool
rep EA
op Method
act EA
return bool

SetConnectorGuard() public static method

public static SetConnectorGuard ( EA rep, int connectorId, string connectorGuard ) : bool
rep EA
connectorId int
connectorGuard string
return bool

SetDiagramHasAttchaedLink() public static method

public static SetDiagramHasAttchaedLink ( EA rep, EA el ) : bool
rep EA
el EA
return bool

SetDiagramObjectLabel() public static method

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

SetElementHasAttchaedLink() public static method

public static SetElementHasAttchaedLink ( EA rep, EA el, EA elNote ) : bool
rep EA
el EA
elNote EA
return bool

SetElementPdata1() public static method

public static SetElementPdata1 ( EA rep, EA el, string s ) : bool
rep EA
el EA
s string
return bool

SetFrameLinksToDiagram() public static method

public static SetFrameLinksToDiagram ( EA rep, EA frm, EA dia ) : bool
rep EA
frm EA
dia EA
return bool

SetLineStyleDiagram() public static method

public static SetLineStyleDiagram ( EA rep, EA d, string lineStyle ) : void
rep EA
d EA
lineStyle string
return void

SetLineStyleDiagramObjectsAndConnectors() public static method

public static SetLineStyleDiagramObjectsAndConnectors ( EA rep, EA d, string lineStyle ) : void
rep EA
d EA
lineStyle string
return void

SetLineStyleForDiagramLink() public static method

public static SetLineStyleForDiagramLink ( string lineStyle, EA link ) : void
lineStyle string
link EA
return void

SetReadOnlyAttribute() public static method

public static SetReadOnlyAttribute ( string fullName, bool readOnly ) : void
fullName string
readOnly bool
return void

SetSequenceNumber() public static method

public static SetSequenceNumber ( EA rep, EA dia, EA obj, string sequence ) : void
rep EA
dia EA
obj EA
sequence string
return void

SetShowBehaviorInDiagram() public static method

public static SetShowBehaviorInDiagram ( EA rep, Method m ) : bool
rep EA
m Method
return bool

SetVcFlags() public static method

public static SetVcFlags ( EA rep, EA pkg, string flags ) : bool
rep EA
pkg EA
flags string
return bool

SetXmlPath() public static method

public static SetXmlPath ( EA rep, string guid, string path ) : bool
rep EA
guid string
path string
return bool

StartApp() public static method

public static StartApp ( string app, string par ) : void
app string
par string
return void

StartFile() public static method

Start file
public static StartFile ( string filePath ) : void
filePath string
return void

UpdateAttribute() public static method

public static UpdateAttribute ( EA rep, EA a ) : bool
rep EA
a EA
return bool

UpdateClass() public static method

public static UpdateClass ( EA rep, EA el ) : bool
rep EA
el EA
return bool

UpdateMethod() public static method

public static UpdateMethod ( EA rep, Method m ) : bool
rep EA
m Method
return bool

UpdatePackage() public static method

public static UpdatePackage ( EA rep, EA pkg ) : bool
rep EA
pkg EA
return bool

UpdateVc() public static method

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
return string

VisualizePortForDiagramobject() public static method

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
return void