The LiteralFilter represents a filter over literal values.
This class is used to filter the results of a Select using the SemWeb.SelectFilter type. This is an abstract base class for filters, which are defined in the SemWeb.Filters namespace.
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.0, 1.0.6.2
See Also: Inherited members from object.
⊟ Protected Constructors
This is the protected constructor used by subclasses. ⊟ Public Methods
staticCreate (LiteralFilter.CompType, object) : LiteralFilter Creates a comparison filter. abstractFilter (Literal, SelectableSource) : bool Filters a literal value. staticMatchesFilters (Resource, LiteralFilter[], SelectableSource) : bool Filters a literal value against multiple filters.
⊟ LiteralFilter Constructor
This is the protected constructor used by subclasses.
protected LiteralFilter ()⊟ Remarks
None.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ Create Method
Creates a comparison filter.
⊟ Parameters
- type
- The type of comparison: less than (or equal), equal, not equal, or greater than (or equal).
- value
- The value to compare literals against.
⊟ Returns
A LiteralFilter that compares literals against value.⊟ Remarks
None.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ Filter Method
Filters a literal value.
⊟ Parameters
- value
- The literal value to be filtered.
- targetModel
- The model over which the literal was selected from.
⊟ Returns
True if the literal matches the filter; false otherwise.⊟ Remarks
None.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ MatchesFilters Method
Filters a literal value against multiple filters.
public static bool MatchesFilters (Resource literal, LiteralFilter[] filters, SelectableSource targetModel)⊟ Parameters
- literal
- Documentation for this section has not yet been entered.
- filters
- An array of filters to test.
- targetModel
- The model over which the literal was selected from.
⊟ Returns
True if the literal value matches all of the filters; false otherwise.⊟ Remarks
None.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2