C# Class SecureDelete.FileSearch.FileFilter

Inheritance: ICloneable
Afficher le fichier Open project: gratianlup/SecureDelete Class Usage Examples

Méthodes publiques

Méthode Description
AddFilter ( FilterBase filter ) : void

Add the Filter

Trows an exception if the Filter is already in added.

AllowFile ( string file ) : bool

Checks if the file matches the conditions imposed by the filters

Clone ( ) : object
FileFilter ( ) : System
GetFilter ( int index ) : FilterBase

Get the Filter

GetFilters ( Type filterType ) : SecureDelete.FileSearch.FilterBase[]

Get all filters matching the specified Type

RemoveAllFilters ( ) : void

Remove all filters

RemoveFilter ( FilterBase filter ) : bool

Remove the Filter

Private Methods

Méthode Description
DisposeHelperObject ( ) : void
EvaluateTree ( string file ) : bool
EvaluateTreeRecursive ( ExpressionNode node, string file ) : bool
ValidateTree ( ) : bool

Method Details

AddFilter() public méthode

Add the Filter
Trows an exception if the Filter is already in added.
public AddFilter ( FilterBase filter ) : void
filter FilterBase
Résultat void

AllowFile() public méthode

Checks if the file matches the conditions imposed by the filters
public AllowFile ( string file ) : bool
file string The file to check.
Résultat bool

Clone() public méthode

public Clone ( ) : object
Résultat object

FileFilter() public méthode

public FileFilter ( ) : System
Résultat System

GetFilter() public méthode

Get the Filter
public GetFilter ( int index ) : FilterBase
index int The index where the Filter is located.
Résultat FilterBase

GetFilters() public méthode

Get all filters matching the specified Type
public GetFilters ( Type filterType ) : SecureDelete.FileSearch.FilterBase[]
filterType System.Type The Type of the Filter.
Résultat SecureDelete.FileSearch.FilterBase[]

RemoveAllFilters() public méthode

Remove all filters
public RemoveAllFilters ( ) : void
Résultat void

RemoveFilter() public méthode

Remove the Filter
public RemoveFilter ( FilterBase filter ) : bool
filter FilterBase
Résultat bool