Interface
IFindExpression

Interface implemented by all FindExpression.

Definition

Namespace:ArtOfTest.Common

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public interface IFindExpression

Derived Classes: FindExpression<T>DummyFindExpressionHtmlFindExpressionDesktopFindExpressionXamlFindExpression

Properties

ChainStops

Get the list of chain stops.

Declaration

cs-api-definition
IList<int> ChainStops { get; }

Property Value

IList<int>

Clauses

Gets the list of clauses as a string array

Declaration

cs-api-definition
string[] Clauses { get; }

Property Value

string[]

Constraints

Get the list of hierarchy constraints.

Declaration

cs-api-definition
IList<HierarchyConstraint> Constraints { get; }

Property Value

IList<HierarchyConstraint>

HasHierarchicalDependency

Gets whether this expression has a hierarchical dependency (i.e. IsChained or has a FindClause that has IsHierarchical set)

Declaration

cs-api-definition
bool HasHierarchicalDependency { get; }

Property Value

bool

IsChained

Gets whether this expression is a chained search.

Declaration

cs-api-definition
bool IsChained { get; }

Property Value

bool

StringRepresentation

Get the string representation of this expression

Declaration

cs-api-definition
string StringRepresentation { get; }

Property Value

string

SupportedSearchType

Gets the supported search type

Declaration

cs-api-definition
Type SupportedSearchType { get; }

Property Value

Type

Methods

AppendChain(IFindExpression)

Append an expression as a chain.

Declaration

cs-api-definition
void AppendChain(IFindExpression expression)

Parameters

expression

IFindExpression

The expression to append.

AppendClauses(bool, params string[])

Append a set of clauses

Declaration

cs-api-definition
void AppendClauses(bool asChain, params string[] clausesToAppend)

Parameters

asChain

bool

Whether to append as a chain or simply to the end of the expression

clausesToAppend

string[]

The clauses to append.

GetClauses(int)

Get the list of FindClauses contained in this FindExpression.

Declaration

cs-api-definition
IList<FindClause> GetClauses(int chainIndex)

Parameters

chainIndex

int

The chain index clauses. -1 to get everything.

Returns

IList<FindClause>

The list of clauses.

Initialize(string[])

Initialize this expression with a set of clauses

Declaration

cs-api-definition
void Initialize(string[] clauses)

Parameters

clauses

string[]

The set of clauses to use.

Match(ITargetElement)

Match this expression with a target.

Declaration

cs-api-definition
bool Match(ITargetElement target)

Parameters

target

ITargetElement

The target.

Returns

bool

True/False whether the target matches the expression.

Match(ITargetElement, IList<FindClause>, bool)

Match a specific set of clauses.

Declaration

cs-api-definition
bool Match(ITargetElement target, IList<FindClause> clauses, bool ignoreConstraints)

Parameters

target

ITargetElement

The target element to match.

clauses

IList<FindClause>

A list of clauses to test for a match.

ignoreConstraints

bool

Whether or not to ignore any constraints attached to the clauses.

Returns

bool

Match(ITargetElement, IList<FindClause>, bool, ITargetElement)

Match a specific set of clauses.

Declaration

cs-api-definition
bool Match(ITargetElement target, IList<FindClause> clauses, bool ignoreConstraints, ITargetElement root)

Parameters

target

ITargetElement

The target element to match.

clauses

IList<FindClause>

A list of clauses to test for a match.

ignoreConstraints

bool

Whether or not to ignore any constraints attached to the clauses.

root

ITargetElement

Root element of search tree.

Returns

bool

Update(string[])

Update the expression with the passed in values.

Declaration

cs-api-definition
void Update(string[] expression)

Parameters

expression

string[]