Interface IVirtualWildcardMatcher
Provides functionality for wildcard matching.
Namespace: AkiraNetwork.VirtualStorageLibrary
Assembly: VirtualStorageLibrary.dll
Syntax
public interface IVirtualWildcardMatcher
Properties
Count
Gets the number of wildcards.
Declaration
int Count { get; }
Property Value
Type | Description |
---|---|
int | An integer representing the number of wildcards available. |
Patterns
Gets a collection of available patterns.
Declaration
IEnumerable<string> Patterns { get; }
Property Value
Type | Description |
---|---|
IEnumerable<string> | An enumerable collection of strings representing the available patterns. |
WildcardDictionary
Gets a dictionary of wildcards and their corresponding regex patterns.
Declaration
ReadOnlyDictionary<string, string> WildcardDictionary { get; }
Property Value
Type | Description |
---|---|
ReadOnlyDictionary<string, string> | A read-only dictionary containing wildcards as keys and their corresponding regex patterns as values. |
Wildcards
Gets a collection of available wildcards.
Declaration
IEnumerable<string> Wildcards { get; }
Property Value
Type | Description |
---|---|
IEnumerable<string> | An enumerable collection of strings representing the available wildcards. |
Methods
IsValidWildcardPattern(string)
Checks if the provided wildcard pattern is valid.
Declaration
bool IsValidWildcardPattern(string pattern)
Parameters
Type | Name | Description |
---|---|---|
string | pattern | The wildcard pattern to validate. |
Returns
Type | Description |
---|---|
bool | True if the pattern is valid; otherwise, false. |
PatternMatcher(string, string)
Determines whether the specified node name matches the specified pattern.
Declaration
bool PatternMatcher(string nodeName, string pattern)
Parameters
Type | Name | Description |
---|---|---|
string | nodeName | The node name to check. |
string | pattern | The pattern to compare against. |
Returns
Type | Description |
---|---|
bool | True if the node name matches the pattern; otherwise, false. |