C# Class Beagrep.Daemon.FilterFactory

Datei anzeigen Open project: baohaojun/beagrep Class Usage Examples

Public Methods

Method Description
CreateFilterFromExtension ( string extension ) : ICollection
CreateFiltersFromIndexable ( Indexable indexable ) : ICollection
CreateFiltersFromMimeType ( string mime_type ) : ICollection
CreateFiltersFromPath ( string path ) : ICollection
CreateFiltersFromUri ( Uri uri ) : ICollection
FilterIndexable ( Indexable indexable ) : bool
FilterIndexable ( Indexable indexable, Filter &filter ) : bool
FilterIndexable ( Indexable indexable, Beagrep.Daemon.TextCache text_cache, Filter &filter ) : bool
GetFilterVersion ( string filter_name ) : int

Private Methods

Method Description
CreateFilters ( Uri uri, string extension, string mime_type ) : ICollection
FilterFactory ( ) : System
ScanAssemblyForFilters ( Assembly assembly, FilterCache filter_cache ) : int
ShouldWeFilterThis ( Indexable indexable ) : bool

Method Details

CreateFilterFromExtension() public static method

public static CreateFilterFromExtension ( string extension ) : ICollection
extension string
return ICollection

CreateFiltersFromIndexable() public static method

public static CreateFiltersFromIndexable ( Indexable indexable ) : ICollection
indexable Indexable
return ICollection

CreateFiltersFromMimeType() public static method

public static CreateFiltersFromMimeType ( string mime_type ) : ICollection
mime_type string
return ICollection

CreateFiltersFromPath() public static method

public static CreateFiltersFromPath ( string path ) : ICollection
path string
return ICollection

CreateFiltersFromUri() public static method

public static CreateFiltersFromUri ( Uri uri ) : ICollection
uri System.Uri
return ICollection

FilterIndexable() public static method

public static FilterIndexable ( Indexable indexable ) : bool
indexable Indexable
return bool

FilterIndexable() public static method

public static FilterIndexable ( Indexable indexable, Filter &filter ) : bool
indexable Indexable
filter Filter
return bool

FilterIndexable() public static method

public static FilterIndexable ( Indexable indexable, Beagrep.Daemon.TextCache text_cache, Filter &filter ) : bool
indexable Indexable
text_cache Beagrep.Daemon.TextCache
filter Filter
return bool

GetFilterVersion() public static method

public static GetFilterVersion ( string filter_name ) : int
filter_name string
return int