Constructors
SiteRule
#Constructs a new rule set for testing data trees.
Parameters:
| pathRules (IEnumerable<IRule>) | A collection of path rules. |
| indexRule (IRule) | Optional integer type (may be null). |
Fields
RangeCode
#Defines the range separator in rule notation. Any rule which contains this string is considered to be a RangeRule.
RangeSymbol
#Defines the range separator in rule notation. Any rule which contains this char is considered to be a RangeRule.
SequenceCode
#Defines the sequence identifier in rule notation. Any rule which contains this string is considered to be a SequenceRule.
Properties
IsVariableLength
#Gets whether this rule complex supports variable length paths by virtue of having at least a single '*' wildcard.
Methods
IsMatch
#Test the item rule on a single index.
Parameters:
| item (int) | Index to test. |
Returns: True if index pass all the item test.
IsMatch
#Test all the local rules to a path+integer combination.
IsMatch
#Test all the local rules to a path.
Parameters:
| path (Path) | Path to test. |
Returns: True if path passes all the type tests.