C# Class Org.Openengsb.XLinkCSharpClient.SearchLogic.DirectoryBrowser

Specifies the file-browse functionality, in the defined working directory.
Afficher le fichier Open project: openengsb/sample-xlink-csharp-client Class Usage Examples

Méthodes publiques

Méthode Description
changeFileType ( String newFileType ) : void

Switches the fileType to the supplied one. Reloads the Files of the Working Directory if the switch was successfull.

createXLinkFromFileString ( string fileName ) : void

Creates the XLink to the given File with the given name and copies it to the Clipborad.

displayListOfWorkingDirectoryFiles ( ) : void

Prints the list of currently loaded Directory Files

displaySupportedFileTypes ( ) : void

Displays the set of supported FileTypes

displayWorkingDirectory ( ) : void

Displays the current Working Directory

displaycurrentFileType ( ) : void

Displays the current File Type

getFilesFromWorkingDirectory ( ) : List

Reloads the Files from the WorkingDirectory and Returns them.

openFile ( string fileName ) : void

Opens the File with the given name

reloadListOfWorkingDirectoryFiles ( ) : void

Reloads List of Directory Files

searchForFile ( String fileName ) : WorkingDirectoryFile

Returns the FileEntry with the given Name or null

searchForXLinkMatches ( OOClass potentialMatch ) : void

Searches through the Files for the most potential Match. First searches for matching filesnames. If no files where found or if more than one file was found, search for matching variables.

setWorkingDirectory ( String newWorkingDirectory ) : bool

Sets the new WorkingDirectory to browse with the given Directory

Private Methods

Méthode Description
matchValueOfClass ( WorkingDirectoryFile wdFileToCheck, OOClass potentialMatch ) : int

Returns an int value which indicates, how many many SQLFiels are alike between the two given statements.

outputLine ( string line ) : void
setFileType ( String newFileType ) : bool

Switches the fileType to the supplied one. Returns false if the supplied fileType is not supported.

Method Details

changeFileType() public méthode

Switches the fileType to the supplied one. Reloads the Files of the Working Directory if the switch was successfull.
public changeFileType ( String newFileType ) : void
newFileType String
Résultat void

createXLinkFromFileString() public méthode

Creates the XLink to the given File with the given name and copies it to the Clipborad.
public createXLinkFromFileString ( string fileName ) : void
fileName string
Résultat void

displayListOfWorkingDirectoryFiles() public méthode

Prints the list of currently loaded Directory Files
public displayListOfWorkingDirectoryFiles ( ) : void
Résultat void

displaySupportedFileTypes() public méthode

Displays the set of supported FileTypes
public displaySupportedFileTypes ( ) : void
Résultat void

displayWorkingDirectory() public méthode

Displays the current Working Directory
public displayWorkingDirectory ( ) : void
Résultat void

displaycurrentFileType() public méthode

Displays the current File Type
public displaycurrentFileType ( ) : void
Résultat void

getFilesFromWorkingDirectory() public méthode

Reloads the Files from the WorkingDirectory and Returns them.
public getFilesFromWorkingDirectory ( ) : List
Résultat List

openFile() public méthode

Opens the File with the given name
public openFile ( string fileName ) : void
fileName string
Résultat void

reloadListOfWorkingDirectoryFiles() public méthode

Reloads List of Directory Files
public reloadListOfWorkingDirectoryFiles ( ) : void
Résultat void

searchForFile() public méthode

Returns the FileEntry with the given Name or null
public searchForFile ( String fileName ) : WorkingDirectoryFile
fileName String
Résultat Org.Openengsb.XLinkCSharpClient.Model.WorkingDirectoryFile

searchForXLinkMatches() public méthode

Searches through the Files for the most potential Match. First searches for matching filesnames. If no files where found or if more than one file was found, search for matching variables.
public searchForXLinkMatches ( OOClass potentialMatch ) : void
potentialMatch OOClass
Résultat void

setWorkingDirectory() public méthode

Sets the new WorkingDirectory to browse with the given Directory
public setWorkingDirectory ( String newWorkingDirectory ) : bool
newWorkingDirectory String
Résultat bool