C# Class hoTools.Find.FindAndReplace

Afficher le fichier Open project: Helmut-Ortmann/EnterpriseArchitect_hoTools Class Usage Examples

Méthodes publiques

Méthode Description
ChangeString ( string stringToChange, string newString = "" ) : string

Change strings of items to the stored 'newString' value. Optional you may use your own 'newString' parameter.

FindAndReplace ( EA rep, EA pkg, string findString, string replaceString, bool isCaseSensitive, bool isRegularExpression, bool isIgnoreWhiteSpace, bool isNameSearch, bool isDescriptionSearch, bool isStereotypeSearch, bool isTagSearch, string taggedValueNames, bool isPackageSearch, bool isElementSearch, bool isDiagramSearch, bool isAttributeSearch, bool isOperationSearch ) : System
FindInPackageRecursive ( ) : void

Find all choosen items beneath selected package (recursive). - Create item list (l_items) The task is delegated doRecursivePackage

FindNext ( ) : void
FindPrevious ( ) : void
FindStringInItem ( EA object_type, string GUID ) : int

Find the count of found searches in item: - add item to l_items - update item to l_items if item is already available

ItemShortDescription ( ) : string
LocateCurrentElement ( ) : void
ReplaceAll ( ) : void
ReplaceItem ( ) : int

Replace all occurences of "Search string" by "Replace String" in current selected item.

SetRtfBoxText ( System.Windows.Forms.RichTextBox rtfBox, string from ) : int

Output 'from' string to rtfBox and mark all possible changes. It returns the count of possible changes

currentItem ( ) : FindAndReplaceItem
lastItem ( ) : FindAndReplaceItem

Private Methods

Méthode Description
PrepareRegexp ( ) : Regex

Prepare a regular expression and returns it

Method Details

ChangeString() public méthode

Change strings of items to the stored 'newString' value. Optional you may use your own 'newString' parameter.
public ChangeString ( string stringToChange, string newString = "" ) : string
stringToChange string
newString string "Change the found values to 'neString'."
Résultat string

FindAndReplace() public méthode

public FindAndReplace ( EA rep, EA pkg, string findString, string replaceString, bool isCaseSensitive, bool isRegularExpression, bool isIgnoreWhiteSpace, bool isNameSearch, bool isDescriptionSearch, bool isStereotypeSearch, bool isTagSearch, string taggedValueNames, bool isPackageSearch, bool isElementSearch, bool isDiagramSearch, bool isAttributeSearch, bool isOperationSearch ) : System
rep EA
pkg EA
findString string
replaceString string
isCaseSensitive bool
isRegularExpression bool
isIgnoreWhiteSpace bool
isNameSearch bool
isDescriptionSearch bool
isStereotypeSearch bool
isTagSearch bool
taggedValueNames string
isPackageSearch bool
isElementSearch bool
isDiagramSearch bool
isAttributeSearch bool
isOperationSearch bool
Résultat System

FindInPackageRecursive() public méthode

Find all choosen items beneath selected package (recursive). - Create item list (l_items) The task is delegated doRecursivePackage
public FindInPackageRecursive ( ) : void
Résultat void

FindNext() public méthode

public FindNext ( ) : void
Résultat void

FindPrevious() public méthode

public FindPrevious ( ) : void
Résultat void

FindStringInItem() public méthode

Find the count of found searches in item: - add item to l_items - update item to l_items if item is already available
public FindStringInItem ( EA object_type, string GUID ) : int
object_type EA
GUID string
Résultat int

ItemShortDescription() public méthode

public ItemShortDescription ( ) : string
Résultat string

LocateCurrentElement() public méthode

public LocateCurrentElement ( ) : void
Résultat void

ReplaceAll() public méthode

public ReplaceAll ( ) : void
Résultat void

ReplaceItem() public méthode

Replace all occurences of "Search string" by "Replace String" in current selected item.
public ReplaceItem ( ) : int
Résultat int

SetRtfBoxText() public méthode

Output 'from' string to rtfBox and mark all possible changes. It returns the count of possible changes
public SetRtfBoxText ( System.Windows.Forms.RichTextBox rtfBox, string from ) : int
rtfBox System.Windows.Forms.RichTextBox
from string
Résultat int

currentItem() public méthode

public currentItem ( ) : FindAndReplaceItem
Résultat FindAndReplaceItem

lastItem() public méthode

public lastItem ( ) : FindAndReplaceItem
Résultat FindAndReplaceItem