InterfaceIFindExpression
Interface implemented by all FindExpression.
Definition
Namespace:ArtOfTest.Common
Assembly:ArtOfTest.WebAii.dll
Syntax:
public interface IFindExpression
Derived Classes:
Properties
ChainStops
Get the list of chain stops.
Clauses
Gets the list of clauses as a string array
Constraints
Get the list of hierarchy constraints.
Declaration
IList<HierarchyConstraint> Constraints { get; }
Property Value
HasHierarchicalDependency
Gets whether this expression has a hierarchical dependency (i.e. IsChained or has a FindClause that has IsHierarchical set)
IsChained
Gets whether this expression is a chained search.
StringRepresentation
Get the string representation of this expression
SupportedSearchType
Gets the supported search type
Methods
AppendChain(IFindExpression)
Append an expression as a chain.
Declaration
void AppendChain(IFindExpression expression)
Parameters
expression
The expression to append.
AppendClauses(bool, params string[])
Append a set of clauses
GetClauses(int)
Get the list of FindClauses contained in this FindExpression.
Declaration
IList<FindClause> GetClauses(int chainIndex)
Parameters
chainIndex
The chain index clauses. -1 to get everything.
Returns
The list of clauses.
Initialize(string[])
Initialize this expression with a set of clauses
Declaration
void Initialize(string[] clauses)
Parameters
clauses
string[]
The set of clauses to use.
Match(ITargetElement)
Match this expression with a target.
Declaration
bool Match(ITargetElement target)
Parameters
target
The target.
Returns
True/False whether the target matches the expression.
Match(ITargetElement, IList<FindClause>, bool)
Match a specific set of clauses.
Declaration
bool Match(ITargetElement target, IList<FindClause> clauses, bool ignoreConstraints)
Parameters
target
The target element to match.
clauses
A list of clauses to test for a match.
ignoreConstraints
Whether or not to ignore any constraints attached to the clauses.
Returns
Match(ITargetElement, IList<FindClause>, bool, ITargetElement)
Match a specific set of clauses.
Declaration
bool Match(ITargetElement target, IList<FindClause> clauses, bool ignoreConstraints, ITargetElement root)
Parameters
target
The target element to match.
clauses
A list of clauses to test for a match.
ignoreConstraints
Whether or not to ignore any constraints attached to the clauses.
root
Root element of search tree.
Returns
Update(string[])
Update the expression with the passed in values.