C# Class SecureDelete.FileSearch.FileFilter

Inheritance: ICloneable
Show file Open project: gratianlup/SecureDelete Class Usage Examples

Public Methods

Method 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

Method Description
DisposeHelperObject ( ) : void
EvaluateTree ( string file ) : bool
EvaluateTreeRecursive ( ExpressionNode node, string file ) : bool
ValidateTree ( ) : bool

Method Details

AddFilter() public method

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

AllowFile() public method

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

Clone() public method

public Clone ( ) : object
return object

FileFilter() public method

public FileFilter ( ) : System
return System

GetFilter() public method

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

GetFilters() public method

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

RemoveAllFilters() public method

Remove all filters
public RemoveAllFilters ( ) : void
return void

RemoveFilter() public method

Remove the Filter
public RemoveFilter ( FilterBase filter ) : bool
filter FilterBase
return bool