C# Класс hoTools.Utils.Util

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetSingleSqlValue ( EA rep, string query, string attributeName ) : string

Описание методов

AddSequenceNumber() публичный статический Метод

public static AddSequenceNumber ( EA rep, EA dia ) : void
rep EA
dia EA
Результат void

ChangeClassNameToSynonyms() публичный статический Метод

public static ChangeClassNameToSynonyms ( EA rep, EA el ) : void
rep EA
el EA
Результат void

ChangePackageClassNameToSynonyms() публичный статический Метод

public static ChangePackageClassNameToSynonyms ( EA rep, EA pkg ) : void
rep EA
pkg EA
Результат void

GetClassifierGuid() публичный статический Метод

public static GetClassifierGuid ( EA rep, string guid ) : string
rep EA
guid string
Результат string

GetConnectionString() публичный статический Метод

public static GetConnectionString ( EA rep ) : string
rep EA
Результат string

GetDiagramLinkFromConnector() публичный статический Метод

public static GetDiagramLinkFromConnector ( EA dia, int connectorId ) : EA.DiagramLink
dia EA
connectorId int
Результат EA.DiagramLink

GetDiagramObjectById() публичный статический Метод

public static GetDiagramObjectById ( EA rep, EA dia, int elementId ) : EA.DiagramObject
rep EA
dia EA
elementId int
Результат EA.DiagramObject

GetDiagramObjectLabel() публичный статический Метод

public static GetDiagramObjectLabel ( EA rep, int objectId, int diagramId, int instanceId ) : string
rep EA
objectId int
diagramId int
instanceId int
Результат string

GetElementFromCompositeDiagram() публичный статический Метод

public static GetElementFromCompositeDiagram ( EA rep, string diagramGuid ) : string
rep EA
diagramGuid string
Результат string

GetElementFromContextObject() публичный статический Метод

Get element from Context element. Possible inputs are: Attribute, Operation, Element, Package
public static GetElementFromContextObject ( EA rep ) : EA.Element
rep EA
Результат EA.Element

GetFirstControlledPackage() публичный статический Метод

public static GetFirstControlledPackage ( EA rep, EA pkg ) : EA.Package
rep EA
pkg EA
Результат EA.Package

GetGenFilePath() публичный статический Метод

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
Результат string

GetHighestSequenceNoFromDiagram() публичный статический Метод

public static GetHighestSequenceNoFromDiagram ( EA rep, EA dia ) : int
rep EA
dia EA
Результат int

GetLatest() публичный статический Метод

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
Результат bool

GetModelDocumentFromPackage() публичный статический Метод

public static GetModelDocumentFromPackage ( EA rep, EA pkg ) : EA.Package
rep EA
pkg EA
Результат EA.Package

GetOperationFromAction() публичный статический Метод

public static GetOperationFromAction ( EA rep, EA action ) : Method
rep EA
action EA
Результат Method

GetOperationFromBrehavior() публичный статический Метод

public static GetOperationFromBrehavior ( EA rep, EA el ) : Method
rep EA
el EA
Результат Method

GetOperationFromCallAction() публичный статический Метод

public static GetOperationFromCallAction ( EA rep, EA obj ) : Method
rep EA
obj EA
Результат Method

GetOperationFromConnector() публичный статический Метод

public static GetOperationFromConnector ( EA rep, EA con ) : Method
rep EA
con EA
Результат Method

GetParameterFromActivity() публичный статический Метод

public static GetParameterFromActivity ( EA rep, EA par, EA act, bool isReturn = false ) : EA.Element
rep EA
par EA
act EA
isReturn bool
Результат EA.Element

GetParameterType() публичный статический Метод

public static GetParameterType ( EA rep, string actionPinGuid ) : string
rep EA
actionPinGuid string
Результат string

GetSignal() публичный статический Метод

public static GetSignal ( EA rep, string guid ) : string
rep EA
guid string
Результат string

GetTrigger() публичный статический Метод

public static GetTrigger ( EA rep, string guid ) : string
rep EA
guid string
Результат string

GetTypeFromName() публичный статический Метод

public static GetTypeFromName ( EA rep, string &name, string &type ) : int
rep EA
name string
type string
Результат int

GetTypeId() публичный статический Метод

public static GetTypeId ( EA rep, string name ) : int
rep EA
name string
Результат int

GetVCstate() публичный статический Метод

public static GetVCstate ( EA rep, EA pkg, bool isLong ) : string
rep EA
pkg EA
isLong bool
Результат string

GetVccFilePath() публичный статический Метод

public static GetVccFilePath ( EA rep, EA pkg ) : string
rep EA
pkg EA
Результат string

GetVccRootPath() публичный статический Метод

public static GetVccRootPath ( EA rep, EA pkg ) : string
rep EA
pkg EA
Результат string

GetWildCard() публичный статический Метод

public static GetWildCard ( Repository rep ) : string
rep Repository
Результат string

ObjectTypeToString() публичный статический Метод

public static ObjectTypeToString ( EA objectType ) : string
objectType EA
Результат string

OpenBehaviorForElement() публичный статический Метод

public static OpenBehaviorForElement ( EA repository, EA el ) : void
repository EA
el EA
Результат void

ResetVc() публичный статический Метод

public static ResetVc ( EA rep, EA pkg ) : void
rep EA
pkg EA
Результат void

ResetVcRecursive() публичный статический Метод

public static ResetVcRecursive ( EA rep, EA pkg ) : void
rep EA
pkg EA
Результат void

SetActivityCompositeDiagram() публичный статический Метод

public static SetActivityCompositeDiagram ( EA rep, EA el, string s ) : bool
rep EA
el EA
s string
Результат bool

SetBehaviorForOperation() публичный статический Метод

public static SetBehaviorForOperation ( EA rep, Method op, EA act ) : bool
rep EA
op Method
act EA
Результат bool

SetConnectorGuard() публичный статический Метод

public static SetConnectorGuard ( EA rep, int connectorId, string connectorGuard ) : bool
rep EA
connectorId int
connectorGuard string
Результат bool

SetDiagramHasAttchaedLink() публичный статический Метод

public static SetDiagramHasAttchaedLink ( EA rep, EA el ) : bool
rep EA
el EA
Результат bool

SetDiagramObjectLabel() публичный статический Метод

public static SetDiagramObjectLabel ( EA rep, int objectId, int diagramId, int instanceId, string s ) : bool
rep EA
objectId int
diagramId int
instanceId int
s string
Результат bool

SetElementHasAttchaedLink() публичный статический Метод

public static SetElementHasAttchaedLink ( EA rep, EA el, EA elNote ) : bool
rep EA
el EA
elNote EA
Результат bool

SetElementPdata1() публичный статический Метод

public static SetElementPdata1 ( EA rep, EA el, string s ) : bool
rep EA
el EA
s string
Результат bool

SetFrameLinksToDiagram() публичный статический Метод

public static SetFrameLinksToDiagram ( EA rep, EA frm, EA dia ) : bool
rep EA
frm EA
dia EA
Результат bool

SetLineStyleDiagram() публичный статический Метод

public static SetLineStyleDiagram ( EA rep, EA d, string lineStyle ) : void
rep EA
d EA
lineStyle string
Результат void

SetLineStyleDiagramObjectsAndConnectors() публичный статический Метод

public static SetLineStyleDiagramObjectsAndConnectors ( EA rep, EA d, string lineStyle ) : void
rep EA
d EA
lineStyle string
Результат void

SetLineStyleForDiagramLink() публичный статический Метод

public static SetLineStyleForDiagramLink ( string lineStyle, EA link ) : void
lineStyle string
link EA
Результат void

SetReadOnlyAttribute() публичный статический Метод

public static SetReadOnlyAttribute ( string fullName, bool readOnly ) : void
fullName string
readOnly bool
Результат void

SetSequenceNumber() публичный статический Метод

public static SetSequenceNumber ( EA rep, EA dia, EA obj, string sequence ) : void
rep EA
dia EA
obj EA
sequence string
Результат void

SetShowBehaviorInDiagram() публичный статический Метод

public static SetShowBehaviorInDiagram ( EA rep, Method m ) : bool
rep EA
m Method
Результат bool

SetVcFlags() публичный статический Метод

public static SetVcFlags ( EA rep, EA pkg, string flags ) : bool
rep EA
pkg EA
flags string
Результат bool

SetXmlPath() публичный статический Метод

public static SetXmlPath ( EA rep, string guid, string path ) : bool
rep EA
guid string
path string
Результат bool

StartApp() публичный статический Метод

public static StartApp ( string app, string par ) : void
app string
par string
Результат void

StartFile() публичный статический Метод

Start file
public static StartFile ( string filePath ) : void
filePath string
Результат void

UpdateAttribute() публичный статический Метод

public static UpdateAttribute ( EA rep, EA a ) : bool
rep EA
a EA
Результат bool

UpdateClass() публичный статический Метод

public static UpdateClass ( EA rep, EA el ) : bool
rep EA
el EA
Результат bool

UpdateMethod() публичный статический Метод

public static UpdateMethod ( EA rep, Method m ) : bool
rep EA
m Method
Результат bool

UpdatePackage() публичный статический Метод

public static UpdatePackage ( EA rep, EA pkg ) : bool
rep EA
pkg EA
Результат bool

UpdateVc() публичный статический Метод

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
Результат string

VisualizePortForDiagramobject() публичный статический Метод

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
Результат void